mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
7c337fda90
Approved by: portmgr (blanket)
68 lines
1.8 KiB
Makefile
68 lines
1.8 KiB
Makefile
PORTNAME= fcron
|
|
PORTVERSION= 3.2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://fcron.free.fr/archives/ \
|
|
ftp://ftp.seul.org/pub/fcron/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= bob@eager.cx
|
|
COMMENT= Periodic command scheduler
|
|
WWW= http://fcron.free.fr/
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= perl5 gmake
|
|
USE_PERL5= build
|
|
USE_RC_SUBR= fcron
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
--with-cflags="${CFLAGS}" \
|
|
--with-rootname=root --with-rootgroup=wheel \
|
|
--with-docdir=${DOCSDIR} \
|
|
--with-dsssl-dir=no
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USERS= fcron
|
|
GROUPS= fcron
|
|
|
|
PAMDIR?= etc/pam.d
|
|
PLIST_SUB+= PAMDIR=etc/pam.d
|
|
|
|
PORTDOCS= *
|
|
|
|
DOCSRC= ${WRKSRC}/doc/en
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fcron ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fcrontab ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fcrondyn ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fcronsighup ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/files/fcron.pam ${STAGEDIR}${PREFIX}/${PAMDIR}/fcron
|
|
${INSTALL_DATA} ${WRKSRC}/files/fcrontab.pam ${STAGEDIR}${PREFIX}/${PAMDIR}/fcrontab
|
|
.for f in fcron.allow fcron.conf fcron.deny
|
|
${INSTALL_DATA} -m 640 ${WRKSRC}/files/${f} ${STAGEDIR}${PREFIX}/etc/${f}.sample
|
|
.endfor
|
|
.for n in 1 5 8
|
|
${INSTALL_MAN} ${DOCSRC}/man/*.${n} ${STAGEDIR}${PREFIX}/share/man/man${n}
|
|
.endfor
|
|
${MKDIR} -m 770 ${STAGEDIR}/var/spool/fcron
|
|
|
|
do-install-DOCS-on:
|
|
.for d in txt HTML
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/${d}
|
|
${INSTALL_DATA} ${DOCSRC}/${d}/* ${STAGEDIR}${DOCSDIR}/${d}
|
|
.endfor
|
|
|
|
do-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|