openbsd-ports/net/netatalk/patches/patch-sysopenbsd-makefile

34 lines
1.2 KiB
Plaintext
Raw Normal View History

--- sys/openbsd/Makefile.orig Sat Oct 17 09:54:53 1998
+++ sys/openbsd/Makefile Wed Aug 9 09:12:15 2000
@@ -21,7 +21,9 @@
FRC:
install :
- -mkdir ${DESTDIR} ${SBINDIR} ${BINDIR} ${ETCDIR} ${LIBDIR}
+ -mkdir ${DESTDIR}${PREFIX} ${DESTDIR}${SBINDIR} \
+ ${DESTDIR}${BINDIR} ${DESTDIR}${ETCDIR} ${DESTDIR}${LIBDIR}
+ -mkdir ${DESTDIR}${PREFIX}/share/examples/netatalk
for i in ${ALL}; \
do (cd $$i; ${MAKE} ${MFLAGS} CC="${CC}" \
ADDLIBS="${ADDLIBS}" DEFS="${DEFS}" OPTOPTS="${OPTOPTS}" \
@@ -30,17 +32,12 @@
AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" \
INSTALL="${INSTALL}" $@); \
done
- rm -f ${ETCDIR}/rc.atalk
+ rm -f ${DESTDIR}${PREFIX}/share/examples/netatalk/rc.atalk
sed -e s@:DESTDIR:@${DESTDIR}@ -e s@:SBINDIR:@${SBINDIR}@ \
-e s@:BINDIR:@${BINDIR}@ -e s@:RESDIR:@${RESDIR}@ \
-e s@:ETCDIR:@${ETCDIR}@ -e s@:LIBDIR:@${LIBDIR}@ \
-e s@:INCDIR:@${INCDIR}@ \
- < ../../rc.atalk.bsd > ${ETCDIR}/rc.atalk
- @echo
- @echo "Install is done. Don't forget to add lines from"
- @echo "services.atalk to /etc/services and to call rc.atalk"
- @echo "in /etc/rc. See README and README.OPENBSD for more"
- @echo "information."
+ < ../../rc.atalk.bsd > ${DESTDIR}${PREFIX}/share/examples/netatalk/rc.atalk
clean :
for i in ${ALL}; \