blob: 1031434548be9cd21c1ab4e12a78aaff225efd1a (
plain)
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
41
42
43
44
45
46
|
$NetBSD: patch-master_Makefile,v 1.3 2014/01/06 22:11:50 joerg Exp $
Configure for pkgsrc.
--- master/Makefile.orig 2013-01-02 23:00:43.000000000 +0000
+++ master/Makefile
@@ -24,8 +24,10 @@
OFLAG= -g
#INETD= -DINETD
FORK=-DFORK
-CFLAGS = $(OFLAG) $(INETD) $(FORK) -DSERVICES -DDPATH=\"/u/christos/phone/conv/convd\"
-CFLAGS+= -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror
+# not -DSERVICES
+CFLAGS = $(OFLAG) $(INETD) $(FORK) -DDPATH=\"${PREFIX}/libexec/convd\"
+CFLAGS+= -DNO_WHO
+CFLAGS+= -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror
LPR = lpr
@@ -41,7 +43,7 @@ OBJS = child.o daemon.o dopage.o forward
reinvite.o sendit.o strsave.o utmp.o
DEST = phoned
-RDEST = /usr/etc/in.phoned
+RDEST = ${PREFIX}/sbin/phoned
#RDEST = /etc/phoned
@@ -51,14 +53,14 @@ RDEST = /usr/etc/in.phoned
all: ${DEST}
${DEST}: ${OBJS}
- /bin/rm -f ${DEST}
+ rm -f ${DEST}
${CC} ${CFLAGS} -o ${DEST} ${OBJS}
${OBJS}: ${HDRS}
install: ${DEST}
- /bin/rm -f ${RDEST}
- cp ${DEST} ${RDEST}
+ rm -f ${RDEST}
+ ${BSD_INSTALL_PROGRAM} ${DEST} ${DESTDIR}${RDEST}
clean:
/bin/rm -f ${DEST} core *.o
|