1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/comms/qpage/files/patch-aa
Vanilla I. Shu 0a52ab20d3 1. Correct the config file path on qpage.1
2. Add a rc file (etc/rc.d/qpage.sh) to start qpage daemon.
1998-06-04 03:54:38 +00:00

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)"