summaryrefslogtreecommitdiffstats
path: root/ftp/frox/Makefile
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-02-07 12:50:29 +0000
committersem <sem@FreeBSD.org>2006-02-07 12:50:29 +0000
commit4ee5552d77bac462c8647202f4e77a3328db1576 (patch)
tree8d709650ce029259f5107f941f298c30c53ffcb7 /ftp/frox/Makefile
parent364323c6266380651aafd90112f3ee21324bef3d (diff)
downloadFreeBSD-ports-4ee5552d77bac462c8647202f4e77a3328db1576.zip
FreeBSD-ports-4ee5552d77bac462c8647202f4e77a3328db1576.tar.gz
- Utilize new features: USE_RC_SUBR, SUB_FILES. It simplifies Makefile.
- Fix pkg-message - Remove redundant code from a startup script - Install a sample config in EXAMPLESDIR instead of PREFIX/etc - Refine pkg-descr a little
Diffstat (limited to 'ftp/frox/Makefile')
-rw-r--r--ftp/frox/Makefile26
1 files changed, 8 insertions, 18 deletions
diff --git a/ftp/frox/Makefile b/ftp/frox/Makefile
index 410d059..62bea08 100644
--- a/ftp/frox/Makefile
+++ b/ftp/frox/Makefile
@@ -21,23 +21,17 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-USE_RC_SUBR= yes
-RC_DIR?= ${PREFIX}/etc/rc.d
-RC_SUFX?= .sh
-SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \
- -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
- -e 's|%%RC_DIR%%|${RC_DIR}|g' \
- -e 's|%%RC_SUFX%%|${RC_SUFX}|g'
+USE_RC_SUBR= frox.sh
+SUB_FILES= pkg-message
-PLIST_SUB+= RC_DIR=${RC_DIR} RC_SUFX=${RC_SUFX}
-
-MAN1= frox.1
-MAN5= frox.conf.5
+MAN1= frox.1
+MAN5= frox.conf.5
PORTDOCS= SECURITY CREDITS ChangeLog FAQ.html FAQ-1.html FAQ-2.html \
FAQ-3.html FAQ-4.html FAQ-5.html FAQ-6.html FAQ-7.html \
FAQ-8.html
-PLIST_FILES= sbin/frox etc/frox.conf.sample etc/rc.d/frox.sh
+PLIST_FILES= sbin/frox ${EXAMPLESDIR:S,${PREFIX}/,,}/frox.conf
+PLIST_DIRS= ${EXAMPLESDIR:S,${PREFIX}/,,}
PKGMESSAGE= ${WRKDIR}/pkg-message
@@ -78,13 +72,10 @@ CONFIGURE_ARGS+= --enable-ccp
CONFIGURE_ARGS+= --enable-run-as-root
.endif
-pre-patch:
- @${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message >${PKGMESSAGE}
- @${SED} ${SED_SCRIPT} ${FILESDIR}/frox.sh > ${WRKDIR}/frox.sh
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/frox ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/src/frox.conf ${PREFIX}/etc/frox.conf.sample
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/frox.conf ${EXAMPLESDIR}/frox.conf
${INSTALL_MAN} ${WRKSRC}/doc/frox.man ${PREFIX}/man/man1/frox.1
${INSTALL_MAN} ${WRKSRC}/doc/frox.conf.man ${PREFIX}/man/man5/frox.conf.5
@@ -97,7 +88,6 @@ post-install:
.endif
@${STRIP_CMD} ${PREFIX}/sbin/frox; \
${ECHO_MSG} "Install ${RC_DIR}/frox${RC_SUFX} startup file."; \
- ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/frox.sh ${RC_DIR}/frox${RC_SUFX}; \
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud