14b2094c37
set up reasonable permissions for idled, so that packaging may happen as non-root.
122 lines
3.5 KiB
Plaintext
122 lines
3.5 KiB
Plaintext
--- Makefile.orig Fri May 17 00:05:28 1996
|
|
+++ Makefile Wed Jun 7 03:03:13 2000
|
|
@@ -165,27 +165,28 @@ INCLUDE =
|
|
# If you add it, '-lkvm' must also be added to the SPECLIBS line
|
|
# You will need to delete parse.c before compiling! You can either
|
|
# do so by hand, or do a 'make clean' followed by the normal 'make'.
|
|
-#DEFS += -O -m486
|
|
-#DEFS += -DBSD_OS2 -DHAVE_SETSID -DHAVE_YYRESTART -DPS_HACK
|
|
+DEFS += -O2
|
|
+DEFS += -DBSD_OS2 -DHAVE_SETSID -DHAVE_YYRESTART -DPS_HACK
|
|
#DEFS += -DPROC_SEARCH_1
|
|
#SPECLIBS = -lkvm
|
|
-#INSTTYPE = install1a
|
|
+INSTTYPE = install1a
|
|
#
|
|
-#DEST = /usr/local/libexec
|
|
-#CFDEST = /usr/local/libexec
|
|
-#MDEST = /usr/local/man
|
|
-#LOGDEST = /var/log
|
|
+DEST = ${DESTDIR}${PREFIX}/libexec
|
|
+CFLIB = ${DESTDIR}${PREFIX}/lib
|
|
+CFDEST = ${DESTDIR}/etc
|
|
+MDEST = ${DESTDIR}${PREFIX}/man
|
|
+LOGDEST = /var/log
|
|
#
|
|
-#OWNER = root
|
|
-#CFOWNER = root
|
|
-#MOWNER = man
|
|
+OWNER = root
|
|
+CFOWNER = root
|
|
+MOWNER = root
|
|
#
|
|
-#GROUP = daemon
|
|
-#CFGROUP = daemon
|
|
+GROUP = daemon
|
|
+CFGROUP = daemon
|
|
#
|
|
-#MODE = 750
|
|
-#CFMODE = 664
|
|
-#MMODE = 444
|
|
+MODE = 755
|
|
+CFMODE = 664
|
|
+MMODE = 444
|
|
|
|
######################################################################
|
|
######################################################################
|
|
@@ -215,25 +216,25 @@ INCLUDE =
|
|
# SVR4 -- Solaris 2.x
|
|
# Use install3 for /usr/sbin/install
|
|
# and install1 for /usr/ucb/install
|
|
-DEFS += -DSYSV -DHAVE_PROC_FS -DUTMPPID -DHAVE_SETSID -DHAVE_UTMPX -DUTMPHOST -DRUDEKILL
|
|
-SPECLIBS =
|
|
-INSTTYPE = install3
|
|
-
|
|
-DEST = /usr/local/bin
|
|
-CFDEST = /usr/local/lib
|
|
-MDEST = /usr/local/man
|
|
-LOGDEST = /var/log
|
|
+#DEFS += -DSYSV -DHAVE_PROC_FS -DUTMPPID -DHAVE_SETSID -DHAVE_UTMPX -DUTMPHOST -DRUDEKILL
|
|
+#SPECLIBS =
|
|
+#INSTTYPE = install3
|
|
|
|
-OWNER = root
|
|
-CFOWNER = root
|
|
-MOWNER = root
|
|
+#DEST = /usr/local/bin
|
|
+#CFDEST = /usr/local/lib
|
|
+#MDEST = /usr/local/man
|
|
+#LOGDEST = /var/log
|
|
|
|
-GROUP = root
|
|
-CFGROUP = root
|
|
+#OWNER = root
|
|
+#CFOWNER = root
|
|
+#MOWNER = root
|
|
|
|
-MODE = 750
|
|
-CFMODE = 664
|
|
-MMODE = 644
|
|
+#GROUP = root
|
|
+#CFGROUP = root
|
|
+
|
|
+#MODE = 750
|
|
+#CFMODE = 664
|
|
+#MMODE = 644
|
|
|
|
######################################################################
|
|
######################################################################
|
|
@@ -479,18 +480,16 @@ install1: all
|
|
@echo "file can serve as a guide, as well as the man pages."
|
|
|
|
# BSD like, but with some enhancements like: install -s -> strip binary
|
|
-# gzip manual pages
|
|
install1a: all
|
|
install -s -c -m ${MODE} -o ${OWNER} -g ${GROUP} ${BINARY} ${DEST}
|
|
- install -c -m ${CFMODE} -o ${CFOWNER} -g ${CFGROUP} ${COMMFILE}.template ${CFDEST}
|
|
+ install -c -m ${CFMODE} -o ${CFOWNER} -g ${CFGROUP} ${COMMFILE}.template ${CFLIB}
|
|
install -c -m ${MMODE} -o ${MOWNER} ${CFMAN} ${MDEST}/man5
|
|
- gzip -f ${MDEST}/man5/${CFMAN}
|
|
install -c -m ${MMODE} -o ${MOWNER} ${PMAN} ${MDEST}/man8
|
|
- gzip -f ${MDEST}/man8/${PMAN}
|
|
@echo ""
|
|
- @echo "Be sure to edit/create the file ${CONFIG} based on"
|
|
- @echo "the needs for your system. The ${CONFIG}.template"
|
|
- @echo "file can serve as a guide, as well as the man pages."
|
|
+ @echo "*** Be sure to edit/create the file ${CONFIG} based on"
|
|
+ @echo "*** the needs for your system. The ${CFLIB}/${COMMFILE}.template"
|
|
+ @echo "*** file can serve as a guide, as well as the man pages."
|
|
+ @echo ""
|
|
|
|
# Aix Prefers install2
|
|
install2: all
|
|
@@ -527,7 +526,7 @@ ${MAN}: idled.man.form idled.cf.man.form
|
|
|
|
lint: ${SRC} ${SRCg}
|
|
lint -hxn ${DEFS} ${SRC} ${SRCg}
|
|
-
|
|
+
|
|
print:
|
|
print -n -J "Idled Source" Makefile ${HDR} ${SRCl} ${SRC}
|
|
|