aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-08-03 20:47:24 +0800
committerpawel <pawel@FreeBSD.org>2014-08-03 20:47:24 +0800
commite480435f8e616ba524bebc10d1ebcc8b34b1d1d4 (patch)
treea3b281d51c4e006d4be1a4078945cc88e12594be /sysutils
parent0f0775a67fdef75df3102019d94cbeefecae4b55 (diff)
downloadfreebsd-ports-gnome-e480435f8e616ba524bebc10d1ebcc8b34b1d1d4.tar.gz
freebsd-ports-gnome-e480435f8e616ba524bebc10d1ebcc8b34b1d1d4.tar.zst
freebsd-ports-gnome-e480435f8e616ba524bebc10d1ebcc8b34b1d1d4.zip
- Add staging support
- Convert ot new options framework - Fix WWW line in pkg-descr
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/uschedule/Makefile36
-rw-r--r--sysutils/uschedule/pkg-descr2
2 files changed, 17 insertions, 21 deletions
diff --git a/sysutils/uschedule/Makefile b/sysutils/uschedule/Makefile
index 151ab078fef0..9949558f8348 100644
--- a/sysutils/uschedule/Makefile
+++ b/sysutils/uschedule/Makefile
@@ -15,19 +15,16 @@ RUN_DEPENDS= ${LOCALBASE}/bin/multilog:${PORTSDIR}/sysutils/daemontools
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
-MAN1= uschedule.1 uschedulecmd.1 uscheduleconf.1 uschedulecp.1 \
- uscheduleedit.1 uschedulelist.1 uschedulerm.1 \
- uscheduleruntimelimit.1
-MAN7= uschedule_intro.7
-MAN8= uscheduled.8
PORTDOCS= ChangeLog NEWS SECURITY-BUG
bin= uschedule uschedulecmd uscheduleconf uschedulecp \
uscheduleedit uschedulelist uschedulerm uscheduleruntimelimit
sbin= uscheduled
-PLIST_FILES= ${bin:S,^,bin/,}
-PLIST_FILES+= ${sbin:S,^,sbin/,}
+PLIST_FILES= ${bin:S,^,bin/,} ${bin:S,^,man/man1/,:S,$,.1.gz,} \
+ man/man7/uschedule_intro.7.gz man/man8/uscheduled.8.gz \
+ sbin/uscheduled
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
pre-build:
${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-cc
${ECHO_CMD} "${CFLAGS}" > ${WRKSRC}/src/conf-cflags
@@ -36,17 +33,16 @@ regression-test: build
cd ${WRKSRC} && ${MAKE} check
do-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
-.for section in 1 7 8
- cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN${section}} \
- ${MAN${section}PREFIX}/man/man${section}
-.endfor
-.for d in bin sbin
- cd ${WRKSRC}/command && ${INSTALL_PROGRAM} ${${d}} ${PREFIX}/${d}
-.endfor
- @${CAT} pkg-message
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/command && ${INSTALL_PROGRAM} ${bin} \
+ ${STAGEDIR}${PREFIX}/bin)
+ ${INSTALL_PROGRAM} ${WRKSRC}/command/${sbin} ${STAGEDIR}${PREFIX}/sbin
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${bin:S,$,.1,} \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
+ ${INSTALL_MAN} ${WRKSRC}/doc/uschedule_intro.7 \
+ ${STAGEDIR}${MANPREFIX}/man/man7
+ ${INSTALL_MAN} ${WRKSRC}/doc/uscheduled.8 \
+ ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>
diff --git a/sysutils/uschedule/pkg-descr b/sysutils/uschedule/pkg-descr
index 399a9e91aaa5..061ae76300c5 100644
--- a/sysutils/uschedule/pkg-descr
+++ b/sysutils/uschedule/pkg-descr
@@ -2,4 +2,4 @@ uschedule is not cron and uschedule is not at - it does offer similar
functionality but is not intended to be a drop-in replacement. It works
differently. It's designed to be different.
-WWW: http://www.ohse.de/uwe/uschedule.html
+WWW: http://www.ohse.de/uwe/uschedule.html