X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/c758e6541ca05409b178dd9629e9337494c49890..9739ca832c87254be70ab15dae461a2540f4a835:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 31e95ae..70b1d71 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with `automake' to generate `Makefile.in' ## -*-makefile-*- ## -## $Id: Makefile.am,v 1.8 1998/01/12 16:45:36 mdw Exp $ +## $Id: Makefile.am,v 1.11 1998/06/18 15:52:05 mdw Exp $ ## ## Makefile for `become' ## @@ -29,6 +29,15 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ +## Revision 1.11 1998/06/18 15:52:05 mdw +## Remove the IDEA test case. +## +## Revision 1.10 1998/04/23 13:17:17 mdw +## New program `bcquery', and `ypstuff' module added. +## +## Revision 1.9 1998/02/20 18:12:35 mdw +## Make the `become' program setuid root when installing. +## ## Revision 1.8 1998/01/12 16:45:36 mdw ## Fix copyright date. ## @@ -63,7 +72,7 @@ ## --- What to make --- -bin_PROGRAMS = become keygen +bin_PROGRAMS = become keygen bcquery noinst_LIBRARIES = bcm ##----- Building the main code ---------------------------------------------- @@ -73,7 +82,7 @@ noinst_LIBRARIES = bcm bcm_SOURCES = \ check.c daemon.c \ lexer.l parser.y \ - class.c name.c netg.c rule.c sym.c userdb.c \ + class.c name.c netg.c rule.c sym.c userdb.c ypstuff.c \ crypt.c \ noise.c rand.c \ icrypt.c blowfish.c md5.c \ @@ -82,7 +91,7 @@ bcm_SOURCES = \ become.h \ check.h daemon.h \ lexer.h parser.h \ - class.h name.h netg.h rule.h sym.h userdb.h \ + class.h name.h netg.h rule.h sym.h userdb.h ypstuff.h \ crypt.h \ noise.h rand.h \ icrypt.h blowfish.h blowfish-sbox.h md5.h \ @@ -109,9 +118,22 @@ LDADD = libbcm.a @LEXLIB@ become_SOURCES = become.c keygen_SOURCES = keygen.c +bcquery_SOURCES = bcquery.c become_DEPENDENCIES = libbcm.a keygen_DEPENDENCIES = libbcm.a +bcquery_DEPENDENCIES = libbcm.a + +##----- Become must be setuid root ------------------------------------------ + +install-data-hook: + become_prog=${bindir}/`echo become|sed '${transform}'`; \ + { chown root $${become_prog} && \ + chmod 4755 $${become_prog}; } || \ + { echo ">>>>>"; \ + echo ">>>>> $${become_prog} must be installed setuid-root"; \ + echo ">>>>>"; \ + } ##----- Testing ------------------------------------------------------------- @@ -143,8 +165,6 @@ crypt-test: crypt.tro libbcm.a $(LINK) crypt.tro libbcm.a $(LIBS) blowfish-test: blowfish.tro libbcm.a $(LINK) blowfish.tro libbcm.a $(LIBS) -idea-test: idea.tro libbcm.a - $(LINK) idea.tro libbcm.a $(LIBS) md5-test: md5.tro libbcm.a $(LINK) md5.tro libbcm.a $(LIBS) netg-test: netg.tro libbcm.a