1998-06-03 23:54:38 -04:00
|
|
|
--- Makefile.orig Fri Jun 27 14:43:10 1997
|
|
|
|
+++ Makefile Thu Jun 4 09:10:31 1998
|
|
|
|
@@ -16,11 +16,13 @@
|
1997-10-13 00:39:10 -04:00
|
|
|
# NEED_STRERROR - your system does NOT support strerror()
|
|
|
|
#
|
|
|
|
|
|
|
|
-CCENV= -DSOLARIS -DFACILITY=LOG_LOCAL1 # -DSNPP_SERVER=\"short\"
|
|
|
|
+#CCENV= -DSOLARIS -DFACILITY=LOG_LOCAL1 # -DSNPP_SERVER=\"short\"
|
|
|
|
+CCENV= -DFACILITY=LOG_DAEMON -DLOCKDIR=\"/var/spool/lock\" -DDAEMONUSER=1 -DDAEMONGROUP=68 -DSYSTEM_CONFIG=\"${PREFIX}/etc/qpage.cf\" -D_PATH_SENDMAIL=\"/usr/sbin/sendmail\"
|
|
|
|
#DEBUG= -g -DDEBUG
|
|
|
|
|
|
|
|
-CFLAGS= -mr $(DEBUG) $(CCENV)
|
|
|
|
-LDLIBS= -lsocket -lnsl
|
|
|
|
+#CFLAGS= -mr $(DEBUG) $(CCENV)
|
1998-06-03 23:54:38 -04:00
|
|
|
+CFLAGS+= $(CCENV)
|
1997-10-13 00:39:10 -04:00
|
|
|
+#LDLIBS= -lsocket -lnsl
|
|
|
|
|
|
|
|
#CC=cc
|
1998-06-03 23:54:38 -04:00
|
|
|
#CC=gcc
|
|
|
|
@@ -54,9 +56,19 @@
|
1997-10-13 00:39:10 -04:00
|
|
|
|
|
|
|
$(OBJS): $(INCL)
|
1998-06-03 23:54:38 -04:00
|
|
|
|
1997-10-13 00:39:10 -04:00
|
|
|
+install: all
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} qpage ${PREFIX}/bin
|
|
|
|
+ ${BSD_INSTALL_MAN} qpage.man ${PREFIX}/man/man1/qpage.1
|
|
|
|
+ ${BSD_INSTALL_DATA} example-qpage.cf ${PREFIX}/etc
|
1998-06-03 23:54:38 -04:00
|
|
|
+ if [ ! -d /var/spool/qpage ]; then \
|
|
|
|
+ mkdir /var/spool/qpage; \
|
|
|
|
+ chown root.dialer /var/spool/qpage; \
|
|
|
|
+ chmod 0775 /var/spool/qpage; \
|
|
|
|
+ fi
|
|
|
|
+
|
1997-10-13 00:39:10 -04:00
|
|
|
$(PROG): $(OBJS)
|
|
|
|
$(RM) $(PROG)
|
1998-06-03 23:54:38 -04:00
|
|
|
- $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
|
|
|
|
+ $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
|
|
|
|
|
|
|
|
client:
|
|
|
|
@$(MAKE) CCENV='-DCLIENT_ONLY $(CCENV)' OBJS="$(CLNTOBJS)"
|