aboutsummaryrefslogtreecommitdiff
path: root/comms/qpage/files/patch-aa
blob: 962b47191173800093ccb3d62f019e758721193e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- 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)"