mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
0a52ab20d3
2. Add a rc file (etc/rc.d/qpage.sh) to start qpage daemon.
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
--- Makefile.orig Fri Jun 27 14:43:10 1997
|
|
+++ Makefile Thu Jun 4 09:10:31 1998
|
|
@@ -16,11 +16,13 @@
|
|
# 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)
|
|
+CFLAGS+= $(CCENV)
|
|
+#LDLIBS= -lsocket -lnsl
|
|
|
|
#CC=cc
|
|
#CC=gcc
|
|
@@ -54,9 +56,19 @@
|
|
|
|
$(OBJS): $(INCL)
|
|
|
|
+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
|
|
+ if [ ! -d /var/spool/qpage ]; then \
|
|
+ mkdir /var/spool/qpage; \
|
|
+ chown root.dialer /var/spool/qpage; \
|
|
+ chmod 0775 /var/spool/qpage; \
|
|
+ fi
|
|
+
|
|
$(PROG): $(OBJS)
|
|
$(RM) $(PROG)
|
|
- $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
|
|
+ $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
|
|
|
|
client:
|
|
@$(MAKE) CCENV='-DCLIENT_ONLY $(CCENV)' OBJS="$(CLNTOBJS)"
|