From 4ee5552d77bac462c8647202f4e77a3328db1576 Mon Sep 17 00:00:00 2001 From: sem Date: Tue, 7 Feb 2006 12:50:29 +0000 Subject: - 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 --- ftp/frox/Makefile | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'ftp/frox/Makefile') 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 -- cgit v1.1