blob: dfd16ea23c36b4b78fe73513055c105d97b84b1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-aa,v 1.4 2008/12/18 13:55:24 joerg Exp $
--- Makefile.orig 2000-11-07 06:45:45.000000000 +0100
+++ Makefile
@@ -1,12 +1,13 @@
SUBDIR+=libhack ppp pppctl
-EXAMPLES=/usr/share/examples/ppp
+EXAMPLES=${DESTDIR}${PREFIX}/share/examples/ppp
+MYCONFDIR=${DESTDIR}${PKG_SYSCONFDIR}
.include <bsd.subdir.mk>
afterinstall:
- if [ ! -d /etc/ppp ]; then mkdir -p /etc/ppp; chmod 755 /etc/ppp; fi
+ if [ ! -d {$MYCONFDIR} ]; then mkdir -p ${MYCONFDIR}; chmod 755 ${MYCONFDIR}; fi
mkdir -p $(EXAMPLES)
for cfg in examples/ppp/*; \
do \
head -1 $$cfg | grep -q '^#!' && mode=555 || mode=444; \
- install -c -o bin -g bin -m $$mode $$cfg $(EXAMPLES); \
+ ${BSD_INSTALL_DATA} -m $$mode $$cfg $(EXAMPLES); \
done
@echo "Please read the README.changes file."
|