mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-24 02:03:39 +08:00
Relevant BUGIDs: task 15788, bugs 108297, 117476, 117474
Purpose of commit: merge in the autoconf stuff Commit summary: --------------- this is a merge of the 0-72 autoconf branch to something more up to date. This commit will be followed by merging this Linux-PAM-0-73pre-autoconf branch to the main trunk.
This commit is contained in:
parent
8c7e950878
commit
4757592559
89
Make.Rules.in
Normal file
89
Make.Rules.in
Normal file
@ -0,0 +1,89 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
## @configure_input@
|
||||
##
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
|
||||
absolute_srcdir = @LOCALSRCDIR@
|
||||
|
||||
# major and minor numbers of this release
|
||||
MAJOR_REL=@LIBPAM_VERSION_MAJOR@
|
||||
MINOR_REL=@LIBPAM_VERSION_MINOR@
|
||||
|
||||
# The following is the generic set of compiler options for compiling
|
||||
# Linux-PAM. True, they are a little anal. Pay attention to the comments
|
||||
# they generate.
|
||||
|
||||
HEADER_DIRS=-I./include -I$(absolute_srcdir)/libpam/include -I$(absolute_srcdir)
|
||||
WARNINGS=@WARNINGS@
|
||||
OS_CFLAGS=@OS_CFLAGS@
|
||||
PIC=@PIC@
|
||||
|
||||
# Mode to install shared libraries with
|
||||
SHLIBMODE=@SHLIBMODE@
|
||||
|
||||
NEED_LINK_LIB_C=@PAM_NEEDS_LIBC@
|
||||
HAVE_LCKPWDF=@HAVE_LCKPWDF@
|
||||
HAVE_LIBCRACK=@HAVE_LIBCRACK@
|
||||
HAVE_LIBCRYPT=@HAVE_LIBCRYPT@
|
||||
HAVE_LIBNDBM=@HAVE_LIBNDBM@
|
||||
HAVE_LIBDB=@HAVE_LIBDB@
|
||||
HAVE_LIBFL=@HAVE_LIBFL@
|
||||
HAVE_LIBNSL=@HAVE_LIBNSL@
|
||||
HAVE_LIBPWDB=@HAVE_LIBPWDB@
|
||||
|
||||
# documentation support
|
||||
HAVE_SGML2TXT=@HAVE_SGML2TXT@
|
||||
HAVE_SGML2HTML=@HAVE_SGML2HTML@
|
||||
PSER=@PSER@
|
||||
|
||||
# configuration settings
|
||||
WITH_DEBUG=@WITH_DEBUG@
|
||||
WITH_LIBDEBUG=@WITH_LIBDEBUG@
|
||||
WITH_PAMLOCKING=@WITH_PAMLOCKING@
|
||||
WITH_LCKPWDF=@WITH_LCKPWDF@
|
||||
STATIC_LIBPAM=@STATIC_LIBPAM@
|
||||
DYNAMIC_LIBPAM=@DYNAMIC_LIBPAM@
|
||||
STATIC=@STATIC@
|
||||
DYNAMIC=@DYNAMIC@
|
||||
|
||||
# Location of libraries when installed on the system
|
||||
FAKEROOT=@FAKEROOT@
|
||||
SECUREDIR=@SECUREDIR@
|
||||
SCONFIGD=@SCONFIGDIR@
|
||||
SUPLEMENTED=@SUPLEMENTED@
|
||||
INCLUDED=@INCLUDEDIR@/security
|
||||
CRACKLIB_DICTPATH=@CRACKLIB_DICTPATH@
|
||||
|
||||
# generic build setup
|
||||
OS=@OS@
|
||||
CC=@CC@
|
||||
CFLAGS=$(WARNINGS) -D$(OS) $(OS_CFLAGS) $(HEADER_DIRS) @CONF_CFLAGS@
|
||||
LD=@LD@
|
||||
LD_D=@LD_D@
|
||||
LD_L=@LD_L@
|
||||
DYNTYPE=@DYNTYPE@
|
||||
LIBDL=@LIBDL@
|
||||
MKDIR=@MKDIR@
|
||||
INSTALL=@INSTALL@
|
||||
STRIP=@STRIP@
|
||||
|
||||
LINKLIBS = $(NEED_LINK_LIB_C) $(LIBDL)
|
61
_pam_aconf.h.in
Normal file
61
_pam_aconf.h.in
Normal file
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PAM_ACONF_H
|
||||
#define PAM_ACONF_H
|
||||
|
||||
/* lots of stuff gets written to /tmp/pam-debug.log */
|
||||
#undef DEBUG
|
||||
|
||||
/* build libraries with different names (suffixed with 'd') */
|
||||
#undef WITH_LIBDEBUG
|
||||
|
||||
/* provide a global locking facility within libpam */
|
||||
#undef PAM_LOCKING
|
||||
|
||||
/* GNU systems as a class, all have the feature.h file */
|
||||
#undef HAVE_FEATURES_H
|
||||
#ifdef HAVE_FEATURES_H
|
||||
# define _SVID_SOURCE
|
||||
# define _BSD_SOURCE
|
||||
# define __USE_BSD
|
||||
# define __USE_SVID
|
||||
# define __USE_MISC
|
||||
# define _GNU_SOURCE
|
||||
# include <features.h>
|
||||
#endif /* HAVE_FEATURES_H */
|
||||
|
||||
/* we have libcrack available */
|
||||
#undef HAVE_LIBCRACK
|
||||
|
||||
/* we have libcrypt - its not part of libc (do we need both definitions?) */
|
||||
#undef HAVE_LIBCRYPT
|
||||
#undef HAVE_CRYPT_H
|
||||
|
||||
/* we have libdb */
|
||||
#undef HAVE_LIBDB
|
||||
|
||||
#ifndef HAVE_LIBDB
|
||||
/* we have libndbm - instead of libdb */
|
||||
#undef HAVE_LIBNDBM
|
||||
#endif /* HAVE_LIBDB */
|
||||
|
||||
/* have libfl (Flex) */
|
||||
#undef HAVE_LIBFL
|
||||
|
||||
/* have libnsl - instead of libc support */
|
||||
#undef HAVE_LIBNSL
|
||||
|
||||
/* have libpwdb - don't expect this to be important for much longer */
|
||||
#undef HAVE_LIBPWDB
|
||||
|
||||
/* ugly hack to partially support old pam_strerror syntax */
|
||||
#undef UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT
|
||||
|
||||
/* read both confs - read /etc/pam.d and /etc/pam.conf in serial */
|
||||
#undef PAM_READ_BOTH_CONFS
|
||||
|
||||
#endif /* PAM_ACONF_H */
|
299
configure.in
Normal file
299
configure.in
Normal file
@ -0,0 +1,299 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(conf/pam_conv1/pam_conv.y)
|
||||
|
||||
dnl The configuration header file
|
||||
AC_CONFIG_HEADER(_pam_aconf.h)
|
||||
|
||||
dnl
|
||||
dnl Release specific
|
||||
dnl
|
||||
|
||||
LIBPAM_VERSION_MAJOR=0
|
||||
LIBPAM_VERSION_MINOR=72
|
||||
|
||||
AC_SUBST(LIBPAM_VERSION_MAJOR)
|
||||
AC_SUBST(LIBPAM_VERSION_MINOR)
|
||||
AC_DEFINE(LIBPAM_VERSION_MAJOR)
|
||||
AC_DEFINE(LIBPAM_VERSION_MINOR)
|
||||
|
||||
dnl
|
||||
dnl By default, everything under PAM is installed under the root fs.
|
||||
dnl
|
||||
|
||||
AC_PREFIX_DEFAULT()
|
||||
|
||||
dnl
|
||||
dnl Rules needed for the following (hardcoded Linux defaults for now)
|
||||
dnl
|
||||
|
||||
CC=gcc ; AC_SUBST(CC)
|
||||
CONF_CFLAGS= ; AC_SUBST(CONF_CFLAGS)
|
||||
MKDIR="mkdir -p" ; AC_SUBST(MKDIR)
|
||||
LOCALSRCDIR=`/bin/pwd` ; AC_SUBST(LOCALSRCDIR)
|
||||
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXWZ/abcdefghijklmonpqrstuvwxyz/'`
|
||||
AC_SUBST(OS)
|
||||
|
||||
dnl These are most likely platform specific - I think HPUX differs
|
||||
DYNTYPE=so ; AC_SUBST(DYNTYPE)
|
||||
LIBDL=-ldl ; AC_SUBST(LIBDL)
|
||||
USESONAME=yes ; AC_SUBST(USESONAME)
|
||||
NEEDSONAME=yes ; AC_SUBST(NEEDSONAME)
|
||||
SHLIBMODE=755 ; AC_SUBST(SHLIBMODE)
|
||||
|
||||
dnl ### Should enable this INSTALL detection.
|
||||
dnl ### Would need to distribute GNU's config.guess and config.sub
|
||||
dnl AC_PROG_INSTALL
|
||||
INSTALL=/usr/bin/install ; AC_SUBST(INSTALL)
|
||||
|
||||
dnl
|
||||
dnl options and defaults
|
||||
dnl
|
||||
|
||||
dnl lots of debugging information goes to /tmp/pam-debug.log
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug qspecify you are building with debugging on],
|
||||
WITH_DEBUG=yes ; AC_DEFINE(DEBUG) , WITH_DEBUG=no)
|
||||
AC_SUBST(WITH_DEBUG)
|
||||
|
||||
dnl build specially named libraries (for debugging purposes)
|
||||
AC_ARG_ENABLE(libdebug,
|
||||
[ --enable-libdebug specify you are building debugging libraries],
|
||||
WITH_LIBDEBUG=yes ; AC_DEFINE(WITH_LIBDEBUG) , WITH_LIBDEBUG=no)
|
||||
AC_SUBST(WITH_LIBDEBUG)
|
||||
|
||||
dnl packaging convenience
|
||||
AC_ARG_ENABLE(fakeroot,
|
||||
[ --enable-fakeroot=<path to packaging directory>], FAKEROOT=$enableval)
|
||||
AC_SUBST(FAKEROOT)
|
||||
|
||||
AC_ARG_ENABLE(securedir,
|
||||
[ --enable-securedir=<path to location of PAMs> [default \$libdir/security]],
|
||||
SECUREDIR=$enableval, SECUREDIR=$libdir/security)
|
||||
AC_SUBST(SECUREDIR)
|
||||
|
||||
AC_ARG_ENABLE(sconfigdir,
|
||||
[ --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]],
|
||||
SCONFIGDIR=$enableval, SCONFIGDIR=$sysconfdir/security)
|
||||
AC_SUBST(SCONFIGDIR)
|
||||
|
||||
AC_ARG_ENABLE(suplementedir,
|
||||
[ --enable-suplementedir=<path to module helper binaries> [default \$sbindir]],
|
||||
SUPLEMENTED=$enableval, SUPLEMENTED=$sbindir)
|
||||
AC_SUBST(SUPLEMENTED)
|
||||
|
||||
AC_ARG_ENABLE(includedir,
|
||||
[ --enable-includedir=<path to include location> - where to put <security>],
|
||||
INCLUDEDIR=$enableval, INCLUDEDIR=/usr/include)
|
||||
AC_SUBST(INCLUDEDIR)
|
||||
|
||||
AC_ARG_ENABLE(pamlocking,
|
||||
[ --enable-pamlocking configure libpam to observe a global authentication lock],
|
||||
WITH_PAMLOCKING=yes ; AC_DEFINE(PAM_LOCKING) , WITH_PAMLOCKING=no)
|
||||
AC_SUBST(WITH_PAMLOCKING)
|
||||
|
||||
AC_ARG_ENABLE(uglyhack,
|
||||
[ --enable-uglyhack configure libpam to try to honor old pam_strerror syntax],
|
||||
AC_DEFINE(UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT))
|
||||
|
||||
AC_ARG_ENABLE(read-both-confs,
|
||||
[ --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files],
|
||||
AC_DEFINE(PAM_READ_BOTH_CONFS))
|
||||
AC_SUBST(PAM_READ_BOTH_CONFS)
|
||||
|
||||
AC_ARG_ENABLE(static-libpam, [ --enable-static-libpam build a libpam.a library],
|
||||
STATIC_LIBPAM=yes , STATIC_LIBPAM=no)
|
||||
AC_SUBST(STATIC_LIBPAM)
|
||||
|
||||
AC_ARG_ENABLE(dynamic-libpam,
|
||||
[ --disable-dynamic-libpam do not build a shared libpam library],
|
||||
DYNAMIC_LIBPAM=no, DYNAMIC_LIBPAM=yes)
|
||||
AC_SUBST(DYNAMIC_LIBPAM)
|
||||
|
||||
DYNAMIC=-DPAM_DYNAMIC
|
||||
AC_SUBST(DYNAMIC)
|
||||
|
||||
AC_ARG_ENABLE(static-modules,
|
||||
[ --enable-static-modules do not make the modules dynamically loadable],
|
||||
STATIC=-DPAM_STATIC)
|
||||
AC_SUBST(STATIC)
|
||||
|
||||
AC_ARG_ENABLE(lckpwdf,
|
||||
[ --disable-lckpwdf do not use the lckpwdf function],
|
||||
WITH_LCKPWDF=no, WITH_LCKPWDF=yes)
|
||||
AC_SUBST(WITH_LCKPWDF)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CXX
|
||||
AC_PROG_YACC
|
||||
AC_PROG_LEX
|
||||
AC_PROG_CC
|
||||
dnl AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
dnl Checks for libraries.
|
||||
AC_CHECK_LIB(c, __libc_sched_setscheduler, PAM_NEEDS_LIBC=, PAM_NEEDS_LIBC=-lc)
|
||||
AC_SUBST(PAM_NEEDS_LIBC)
|
||||
|
||||
dnl Checks for the existence of lckpwdf in libc
|
||||
AC_CHECK_LIB(c, lckpwdf, HAVE_LCKPWDF=yes, HAVE_LCKPWDF=no)
|
||||
AC_SUBST(HAVE_LCKPWDF)
|
||||
|
||||
dnl
|
||||
dnl At least on Solaris, the existing libcrack must be dynamic.
|
||||
dnl Ought to introduce a check for this.
|
||||
dnl
|
||||
AC_CHECK_LIB(crack, FascistCheck, HAVE_LIBCRACK=yes ; AC_DEFINE(HAVE_LIBCRACK),
|
||||
HAVE_LIBCRACK=no)
|
||||
AC_SUBST(HAVE_LIBCRACK)
|
||||
|
||||
AC_CHECK_LIB(crypt, fcrypt, HAVE_LIBCRYPT=yes ; AC_DEFINE(HAVE_LIBCRYPT),
|
||||
HAVE_LIBCRYPT=no)
|
||||
AC_SUBST(HAVE_LIBCRYPT)
|
||||
AC_CHECK_LIB(ndbm, dbm_store, HAVE_LIBNDBM=yes ; AC_DEFINE(HAVE_LIBNDBM),
|
||||
HAVE_LIBNDBM=no)
|
||||
AC_SUBST(HAVE_LIBNDBM)
|
||||
AC_CHECK_LIB(db, dbm_store, HAVE_LIBDB=yes ; AC_DEFINE(HAVE_LIBDB),
|
||||
HAVE_LIBDB=no)
|
||||
AC_SUBST(HAVE_LIBDB)
|
||||
AC_CHECK_LIB(fl, yylex, yyterminate, HAVE_LIBFL=yes ; AC_DEFINE(HAVE_LIBFL),
|
||||
HAVE_LIBFL=no)
|
||||
AC_SUBST(HAVE_LIBFL)
|
||||
AC_CHECK_LIB(nsl, yp_maplist, HAVE_LIBNSL=yes ; AC_DEFINE(HAVE_LIBNSL),
|
||||
HAVE_LIBNSL=no)
|
||||
AC_SUBST(HAVE_LIBNSL)
|
||||
AC_CHECK_LIB(pwdb, pwdb_db_name, HAVE_LIBPWDB=yes ; AC_DEFINE(HAVE_LIBPWDB),
|
||||
HAVE_LIBPWDB=no)
|
||||
AC_SUBST(HAVE_LIBPWDB)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h)
|
||||
|
||||
dnl Linux wants features.h in some of the source files.
|
||||
AC_CHECK_HEADERS(features.h)
|
||||
|
||||
dnl For module/pam_cracklib
|
||||
AC_CHECK_HEADERS(crypt.h)
|
||||
|
||||
dnl For module/pam_lastlog
|
||||
AC_CHECK_HEADERS(lastlog.h utmp.h utmpx.h)
|
||||
|
||||
dnl This following rule should be made conditional upon HAVE_LIBCRYPT
|
||||
dnl being found.
|
||||
|
||||
dnl Look for cracklib dictionary
|
||||
AC_MSG_CHECKING(path to cracklib dictionary)
|
||||
DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
|
||||
/usr/local/lib /usr/local/share/lib"
|
||||
DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
|
||||
CRACKLIB_DICTPATH=""
|
||||
for d in $DICT_DIR_CANDIDATES ; do
|
||||
for f in $DICT_FILE_CANDIDATES ; do
|
||||
if test -r $d/$f.hwm ; then
|
||||
CRACKLIB_DICTPATH=$d/$f
|
||||
break 2
|
||||
elif test -r $d/dict/$f.hwm ; then
|
||||
CRACKLIB_DICTPATH=$d/dict/$f
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
if test -z $CRACKLIB_DICTPATH ; then
|
||||
AC_MSG_RESULT(none found)
|
||||
else
|
||||
AC_MSG_RESULT($CRACKLIB_DICTPATH)
|
||||
fi
|
||||
AC_SUBST(CRACKLIB_DICTPATH)
|
||||
|
||||
dnl Set FLAGS, linker options etc. depending on C compiler.
|
||||
dnl gcc is tested and much preferred; others less so, if at all
|
||||
dnl
|
||||
dnl If compiling with gcc, linking is also supposed to be done with gcc;
|
||||
dnl since we use linker-specific arguments, we may not gain anything by
|
||||
dnl switching LD_L over, but I think we can use LD_D as-is.
|
||||
dnl
|
||||
dnl For the moment, gcc is enforced above at "CC=gcc".
|
||||
dnl
|
||||
dnl There is an issue over _POSIX_SOURCE _BSD_SOURCE and _GNU_SOURCE .
|
||||
dnl The original "Linux-PAM" had blanket inclusion. But portability
|
||||
dnl requires their default absence: if particular OSes require them,
|
||||
dnl this should be done selectively.
|
||||
|
||||
GCC_WARNINGS="-Wall -Wwrite-strings \
|
||||
-Wpointer-arith -Wcast-qual -Wcast-align \
|
||||
-Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wnested-externs -Winline -Wshadow"
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
###
|
||||
### Non-Linux needs attention on per-OS basis
|
||||
OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
|
||||
WARNINGS="$GCC_WARNINGS"
|
||||
PIC="-fPIC"
|
||||
#can/should we use LD=gcc ???
|
||||
LD=ld
|
||||
LD_D="gcc -shared -Xlinker -x"
|
||||
LD_L="$LD -x -shared"
|
||||
STRIP=strip
|
||||
else
|
||||
###
|
||||
### Non-gcc needs attention on per-OS basis
|
||||
###
|
||||
### [These are Solaris-C specific...]
|
||||
OS_CFLAGS=""
|
||||
WARNINGS=""
|
||||
PIC="-K pic"
|
||||
LD=ld
|
||||
LD_D="cc -z text -G -R."
|
||||
LD_L="$LD_D"
|
||||
STRIP=strip
|
||||
fi
|
||||
|
||||
AC_SUBST(OS_CFLAGS)
|
||||
AC_SUBST(WARNINGS)
|
||||
AC_SUBST(PIC)
|
||||
AC_SUBST(LD)
|
||||
AC_SUBST(LD_D)
|
||||
AC_SUBST(LD_L)
|
||||
AC_SUBST(STRIP)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_BIGENDIAN
|
||||
AC_C_CONST
|
||||
AC_TYPE_UID_T
|
||||
AC_TYPE_OFF_T
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_TYPE_GETGROUPS
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_MEMCMP
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS(gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname)
|
||||
|
||||
dnl Checks for programs/utilities
|
||||
AC_CHECK_PROG(HAVE_SGML2TXT, sgml2txt, yes, no)
|
||||
AC_CHECK_PROG(HAVE_SGML2HTML, sgml2html, yes, no)
|
||||
AC_CHECK_PROG(HAVE_SGML2LATEX, sgml2latex, yes, no)
|
||||
if test $HAVE_SGML2LATEX = "yes" ; then
|
||||
if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
|
||||
PSER="sgml2latex -o ps"
|
||||
else
|
||||
PSER="sgml2latex -p"
|
||||
fi
|
||||
else
|
||||
AC_CHECK_PROG(HAVE_SGML2PS, sgml2ps, yes, no)
|
||||
if test $HAVE_SGML2PS = yes ; then
|
||||
PSER="sgml2ps"
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(PSER)
|
||||
|
||||
dnl Files to be created from when we run configure
|
||||
AC_OUTPUT(Make.Rules)
|
@ -1,36 +0,0 @@
|
||||
MakeTeXPK cmss17 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmr10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmss10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx12 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmti10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt9 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx12 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmsy10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmmi10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmti9 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmss17 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmr10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmss10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx12 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmbx12 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt9 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmti10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmmi10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmsy10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmss17 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmr10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmss10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx12 720 600 magstep\(1.0\) ljfour
|
||||
MakeTeXPK cmti10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmbx12 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt9 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmtt12 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmti12 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmsy10 600 600 1+0/600 ljfour
|
||||
MakeTeXPK cmmi10 600 600 1+0/600 ljfour
|
90
modules/Simple.Rules
Normal file
90
modules/Simple.Rules
Normal file
@ -0,0 +1,90 @@
|
||||
# $Id$
|
||||
#
|
||||
# For simple modules with no significant dependencies, set $(TITLE)
|
||||
# and include this file.
|
||||
#
|
||||
# There are a few ways to customize this set of rules. Namely, define
|
||||
#
|
||||
# $(MODULE_SIMPLE_EXTRACLEAN)
|
||||
# $(MODULE_SIMPLE_CLEAN)
|
||||
# $(MODULE_SIMPLE_REMOVE)
|
||||
# $(MODULE_SIMPLE_INSTALL)
|
||||
# $(MODULE_SIMPLE_EXTRALIBS) - other things to link with the module
|
||||
#
|
||||
|
||||
LIBSRC = $(TITLE).c
|
||||
LIBOBJ = $(TITLE).o
|
||||
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
|
||||
LIBOBJS = $(addprefix static/,$(LIBOBJ))
|
||||
|
||||
ifdef DYNAMIC
|
||||
LIBSHARED = $(TITLE).so
|
||||
endif
|
||||
|
||||
ifdef STATIC
|
||||
LIBSTATIC = lib$(TITLE).o
|
||||
endif
|
||||
|
||||
####################### don't edit below #######################
|
||||
|
||||
all: dirs $(LIBSHARED) $(LIBSTATIC) register
|
||||
|
||||
dynamic/%.o : %.c
|
||||
$(CC) $(CFLAGS) $(DYNAMIC) $(TARGET_ARCH) -c $< -o $@
|
||||
|
||||
static/%.o : %.c
|
||||
$(CC) $(CFLAGS) $(STATIC) $(TARGET_ARCH) -c $< -o $@
|
||||
|
||||
dirs:
|
||||
ifdef DYNAMIC
|
||||
$(MKDIR) ./dynamic
|
||||
endif
|
||||
ifdef STATIC
|
||||
$(MKDIR) ./static
|
||||
endif
|
||||
|
||||
register:
|
||||
ifdef STATIC
|
||||
( cd .. ; ./register_static $(TITLE) $(TITLE)/$(LIBSTATIC) )
|
||||
endif
|
||||
|
||||
ifdef DYNAMIC
|
||||
$(LIBOBJD): $(LIBSRC)
|
||||
endif
|
||||
|
||||
ifdef DYNAMIC
|
||||
$(LIBSHARED): $(LIBOBJD)
|
||||
$(LD_D) -o $@ $(LIBOBJD) $(MODULE_SIMPLE_EXTRALIBS) $(NEED_LINK_LIB_C)
|
||||
|
||||
endif
|
||||
|
||||
ifdef STATIC
|
||||
$(LIBOBJS): $(LIBSRC)
|
||||
endif
|
||||
|
||||
ifdef STATIC
|
||||
$(LIBSTATIC): $(LIBOBJS)
|
||||
$(LD) -r -o $@ $(LIBOBJS) $(MODULE_SIMPLE_EXTRALIBS)
|
||||
endif
|
||||
|
||||
install: all
|
||||
$(MKDIR) $(FAKEROOT)$(SECUREDIR)
|
||||
ifdef DYNAMIC
|
||||
$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
|
||||
endif
|
||||
$(MODULE_SIMPLE_INSTALL)
|
||||
|
||||
remove:
|
||||
rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
|
||||
$(MODULE_SIMPLE_REMOVE)
|
||||
|
||||
clean:
|
||||
rm -f $(LIBOBJD) $(LIBOBJS) core *~
|
||||
$(MODULE_SIMPLE_CLEAN)
|
||||
rm -f *.a *.o *.so *.bak
|
||||
rm -rf dynamic static
|
||||
$(MODULE_SIMPLE_EXTRACLEAN)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFILE=$FAKEROOT"$CONFILE"
|
||||
FAKEROOT=$1
|
||||
CONFD=$1$2
|
||||
CONFILE=$1$3
|
||||
MODULE=$4
|
||||
CONF=$5
|
||||
|
||||
IGNORE_AGE=./.ignore_age
|
||||
QUIET_INSTALL=../../.quiet_install
|
||||
CONF=./time.conf
|
||||
MODULE=pam_time
|
||||
|
||||
echo
|
||||
|
||||
@ -31,7 +34,7 @@ else
|
||||
fi
|
||||
|
||||
if [ "$yes" = "y" ]; then
|
||||
mkdir -p $FAKEROOT$CONFD
|
||||
mkdir -p $CONFD
|
||||
echo " copying $CONF to $CONFILE"
|
||||
cp $CONF $CONFILE
|
||||
else
|
@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFILE=$FAKEROOT"$CONFILE"
|
||||
IGNORE_AGE=./.ignore_age
|
||||
CONF=./access.conf
|
||||
QUIET_INSTALL=../../.quiet_install
|
||||
MODULE=pam_access
|
||||
|
||||
echo
|
||||
|
||||
if [ -f "$QUIET_INSTALL" ]; then
|
||||
if [ ! -f "$CONFILE" ]; then
|
||||
yes="y"
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
elif [ -f "$IGNORE_AGE" ]; then
|
||||
echo "you don't want to be bothered with the age of your $CONFILE file"
|
||||
yes="n"
|
||||
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
|
||||
if [ -f "$CONFILE" ]; then
|
||||
echo "An older $MODULE configuration file already exists ($CONFILE)"
|
||||
echo "Do you wish to copy the $CONF file in this distribution"
|
||||
echo "to $CONFILE ? (y/n) [skip] "
|
||||
read yes
|
||||
else
|
||||
yes="y"
|
||||
fi
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
|
||||
if [ "$yes" = "y" ]; then
|
||||
mkdir -p $FAKEROOT$CONFD
|
||||
echo " copying $CONF to $CONFILE"
|
||||
cp $CONF $CONFILE
|
||||
else
|
||||
echo " Skipping $CONF installation"
|
||||
if [ "$yes" = "n" ]; then
|
||||
touch "$IGNORE_AGE"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
exit 0
|
@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFILE=$FAKEROOT"$CONFILE"
|
||||
IGNORE_AGE=./.ignore_age
|
||||
QUIET_INSTALL=../../.quiet_install
|
||||
CONF=./pam_env.conf-example
|
||||
MODULE=pam_env
|
||||
|
||||
echo
|
||||
|
||||
if [ -f "$QUIET_INSTALL" ]; then
|
||||
if [ ! -f "$CONFILE" ]; then
|
||||
yes="y"
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
elif [ -f "$IGNORE_AGE" ]; then
|
||||
echo "you don't want to be bothered with the age of your $CONFILE file"
|
||||
yes="n"
|
||||
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
|
||||
if [ -f "$CONFILE" ]; then
|
||||
echo "An older $MODULE configuration file already exists ($CONFILE)"
|
||||
echo "Do you wish to copy the $CONF file in this distribution"
|
||||
echo "to $CONFILE ? (y/n) [skip] "
|
||||
read yes
|
||||
else
|
||||
yes="y"
|
||||
fi
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
|
||||
if [ "$yes" = "y" ]; then
|
||||
mkdir -p $FAKEROOT$CONFD
|
||||
echo " copying $CONF to $CONFILE"
|
||||
cp $CONF $CONFILE
|
||||
else
|
||||
echo " Skipping $CONF installation"
|
||||
if [ "$yes" = "n" ]; then
|
||||
touch "$IGNORE_AGE"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
exit 0
|
@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFILE=$FAKEROOT"$CONFILE"
|
||||
IGNORE_AGE=./.ignore_age
|
||||
QUIET_INSTALL=../../.quiet_install
|
||||
CONF=./group.conf
|
||||
MODULE=pam_group
|
||||
|
||||
echo
|
||||
|
||||
if [ -f "$QUIET_INSTALL" ]; then
|
||||
if [ ! -f "$CONFILE" ]; then
|
||||
yes="y"
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
elif [ -f "$IGNORE_AGE" ]; then
|
||||
echo "you don't want to be bothered with the age of your $CONFILE file"
|
||||
yes="n"
|
||||
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
|
||||
if [ -f "$CONFILE" ]; then
|
||||
echo "An older $MODULE configuration file already exists ($CONFILE)"
|
||||
echo "Do you wish to copy the $CONF file in this distribution"
|
||||
echo "to $CONFILE ? (y/n) [skip] "
|
||||
read yes
|
||||
else
|
||||
yes="y"
|
||||
fi
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
|
||||
if [ "$yes" = "y" ]; then
|
||||
mkdir -p $FAKEROOT$CONFD
|
||||
echo " copying $CONF to $CONFILE"
|
||||
cp $CONF $CONFILE
|
||||
else
|
||||
echo " Skipping $CONF installation"
|
||||
if [ "$yes" = "n" ]; then
|
||||
touch "$IGNORE_AGE"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
exit 0
|
@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFILE=$FAKEROOT"$CONFILE"
|
||||
IGNORE_AGE=./.ignore_age
|
||||
QUIET_INSTALL=../../.quiet_install
|
||||
CONF=./limits.skel
|
||||
MODULE=pam_limits
|
||||
|
||||
echo
|
||||
|
||||
if [ -f "$QUIET_INSTALL" ]; then
|
||||
if [ ! -f "$CONFILE" ]; then
|
||||
yes="y"
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
elif [ -f "$IGNORE_AGE" ]; then
|
||||
echo "you don't want to be bothered with the age of your $CONFILE file"
|
||||
yes="n"
|
||||
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
|
||||
if [ -f "$CONFILE" ]; then
|
||||
echo "An older $MODULE configuration file already exists ($CONFILE)"
|
||||
echo "Do you wish to copy the $CONF file in this distribution"
|
||||
echo "to $CONFILE ? (y/n) [skip] "
|
||||
read yes
|
||||
else
|
||||
yes="y"
|
||||
fi
|
||||
else
|
||||
yes="skip"
|
||||
fi
|
||||
|
||||
if [ "$yes" = "y" ]; then
|
||||
mkdir -p $FAKEROOT$CONFD
|
||||
echo " copying $CONF to $CONFILE"
|
||||
cp $CONF $CONFILE
|
||||
else
|
||||
echo " Skipping $CONF installation"
|
||||
if [ "$yes" = "n" ]; then
|
||||
touch "$IGNORE_AGE"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
exit 0
|
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
list=`/bin/ls /lib/libnsl.so.* 2> /dev/null`
|
||||
if [ -z "$list" ]; then
|
||||
echo no
|
||||
else
|
||||
echo yes
|
||||
fi
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f "/usr/include/ndbm.h" ]; then
|
||||
echo "-DUSE_NDBM_H"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
list=`/bin/ls /lib/libdb.so.* 2> /dev/null`
|
||||
if [ -n "$list" ]; then
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "none"
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user