2001-03-01 16:33:19 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: fcron
|
|
|
|
# Date created: Mar 1, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fcron
|
2010-10-13 03:16:26 +00:00
|
|
|
PORTVERSION= 3.0.6
|
2011-09-25 07:24:25 +00:00
|
|
|
PORTREVISION= 1
|
2001-03-01 16:33:19 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
2006-02-09 10:28:29 +00:00
|
|
|
http://fcron.free.fr/archives/ \
|
|
|
|
ftp://ftp.seul.org/pub/fcron/
|
2001-03-01 16:33:19 +00:00
|
|
|
MASTER_SITE_SUBDIR= system/daemons/cron
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
|
2011-07-18 19:10:35 +00:00
|
|
|
MAINTAINER= rde@tavi.co.uk
|
2005-10-04 17:54:23 +00:00
|
|
|
COMMENT= A periodic command scheduler
|
2001-03-01 16:33:19 +00:00
|
|
|
|
2005-10-04 17:54:23 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2005-11-12 21:23:49 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2007-06-11 07:08:28 +00:00
|
|
|
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --localstatedir=/var \
|
|
|
|
--with-cflags="${CFLAGS}" \
|
2001-03-01 16:33:19 +00:00
|
|
|
--with-rootname=root --with-rootgroup=wheel \
|
2006-02-09 10:28:29 +00:00
|
|
|
--with-docdir=${DOCSDIR}
|
2001-03-01 16:33:19 +00:00
|
|
|
|
2005-10-04 17:54:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/fcron-${PORTVERSION}
|
2001-03-01 16:33:19 +00:00
|
|
|
|
2005-10-04 17:54:23 +00:00
|
|
|
USE_RC_SUBR= fcron
|
|
|
|
SUB_FILES= pkg-message
|
2001-03-01 16:33:19 +00:00
|
|
|
|
2005-11-12 21:23:49 +00:00
|
|
|
MAN1= fcrontab.1
|
2005-10-04 17:54:23 +00:00
|
|
|
MAN5= fcron.conf.5 fcrontab.5
|
|
|
|
MAN8= fcron.8
|
2001-03-01 16:33:19 +00:00
|
|
|
|
2006-06-04 20:09:42 +00:00
|
|
|
PAMDIR?= /etc/pam.d
|
2007-01-17 07:30:11 +00:00
|
|
|
PLIST_SUB+= PAMDIR=etc/pam.d
|
2006-06-04 20:09:42 +00:00
|
|
|
|
2005-10-04 17:54:23 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2006-02-09 10:28:29 +00:00
|
|
|
.if defined(MANLANG) && exists(${WRKSRC}/doc/${MANLANG})
|
|
|
|
DOCSRC= ${WRKSRC}/doc/${MANLANG}
|
|
|
|
.else
|
|
|
|
DOCSRC= ${WRKSRC}/doc/en
|
|
|
|
.endif
|
|
|
|
|
2010-10-13 03:16:26 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-10-04 17:54:23 +00:00
|
|
|
pre-su-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fcron ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} -g fcron -o fcron -m 6111 ${WRKSRC}/fcrontab ${PREFIX}/bin
|
2006-02-09 10:28:29 +00:00
|
|
|
${INSTALL_PROGRAM} -g fcron -o fcron -m 6111 ${WRKSRC}/fcrondyn ${PREFIX}/bin
|
2005-10-04 17:54:23 +00:00
|
|
|
${INSTALL_PROGRAM} -g fcron -m 4110 ${WRKSRC}/fcronsighup ${PREFIX}/bin
|
|
|
|
.for f in fcron.allow fcron.conf fcron.deny
|
|
|
|
${INSTALL_DATA} -g fcron -m 640 ${WRKSRC}/files/${f} ${PREFIX}/etc/${f}.dist
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${EXAMPLESDIR}
|
2006-06-04 20:09:42 +00:00
|
|
|
${MKDIR} ${PAMDIR}
|
|
|
|
[ -f ${PAMDIR}/fcron ] || ${INSTALL_DATA} ${WRKSRC}/files/fcron.pam ${PAMDIR}/fcron
|
|
|
|
[ -f ${PAMDIR}/fcrontab ] || ${INSTALL_DATA} ${WRKSRC}/files/fcrontab.pam ${PAMDIR}/fcrontab
|
2005-10-23 09:27:20 +00:00
|
|
|
.for n in 1 5 8
|
2006-02-09 10:28:29 +00:00
|
|
|
${INSTALL_MAN} ${MAN${n}:S|^|${DOCSRC}/man/|} ${PREFIX}/man/man${n}
|
2005-10-04 17:54:23 +00:00
|
|
|
.endfor
|
2002-01-27 02:47:27 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-10-04 17:54:23 +00:00
|
|
|
. for d in txt HTML
|
|
|
|
${MKDIR} ${DOCSDIR}/${d}
|
2006-02-09 10:28:29 +00:00
|
|
|
${INSTALL_DATA} ${DOCSRC}/${d}/* ${DOCSDIR}/${d}
|
2005-10-04 17:54:23 +00:00
|
|
|
. endfor
|
2001-09-21 15:47:27 +00:00
|
|
|
.endif
|
2005-10-04 17:54:23 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2002-01-27 02:47:27 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-06-17 01:08:13 +00:00
|
|
|
|
2004-12-07 08:47:42 +00:00
|
|
|
.include <bsd.port.mk>
|