1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Update to 3.0.1.

PR:		ports/92990
Submitted by:	Brad Huntting <huntting@glarp.com> (maintainer)
This commit is contained in:
Sam Lawrance 2006-02-09 10:28:29 +00:00
parent 23998c8fc7
commit 38a5712506
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155575
5 changed files with 27 additions and 11 deletions

View File

@ -7,11 +7,11 @@
#
PORTNAME= fcron
PORTVERSION= 3.0.0
PORTREVISION= 2
PORTVERSION= 3.0.1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://fcron.free.fr/
http://fcron.free.fr/archives/ \
ftp://ftp.seul.org/pub/fcron/
MASTER_SITE_SUBDIR= system/daemons/cron
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
@ -23,7 +23,7 @@ USE_GMAKE= yes
USE_PERL5_BUILD=yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--with-rootname=root --with-rootgroup=wheel \
--with-docdir=${DOCSDIR} --with-fcrondyn=no
--with-docdir=${DOCSDIR}
WRKSRC= ${WRKDIR}/fcron-${PORTVERSION}
@ -36,12 +36,19 @@ MAN8= fcron.8
PORTDOCS= *
.if defined(MANLANG) && exists(${WRKSRC}/doc/${MANLANG})
DOCSRC= ${WRKSRC}/doc/${MANLANG}
.else
DOCSRC= ${WRKSRC}/doc/en
.endif
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
${INSTALL_PROGRAM} -g fcron -o fcron -m 6111 ${WRKSRC}/fcrondyn ${PREFIX}/bin
${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
@ -49,12 +56,12 @@ do-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${EXAMPLESDIR}
.for n in 1 5 8
${INSTALL_MAN} ${MAN${n}:S|^|${WRKSRC}/doc/man/|} ${PREFIX}/man/man${n}
${INSTALL_MAN} ${MAN${n}:S|^|${DOCSRC}/man/|} ${PREFIX}/man/man${n}
.endfor
.if !defined(NOPORTDOCS)
. for d in txt HTML
${MKDIR} ${DOCSDIR}/${d}
${INSTALL_DATA} ${WRKSRC}/doc/${d}/* ${DOCSDIR}/${d}
${INSTALL_DATA} ${DOCSRC}/${d}/* ${DOCSDIR}/${d}
. endfor
.endif

View File

@ -1,3 +1,3 @@
MD5 (fcron-3.0.0.src.tar.gz) = 55e92f8536c8b52c9b73b96a6a3e0fe3
SHA256 (fcron-3.0.0.src.tar.gz) = 861e0ea68525f960e512aaebbc09d5848a9862982038a14a3e65c9e74ff2650e
SIZE (fcron-3.0.0.src.tar.gz) = 409015
MD5 (fcron-3.0.1.src.tar.gz) = 8e5dcb3a646c11294294895954ef0a48
SHA256 (fcron-3.0.1.src.tar.gz) = 31288b04619bb9c7cd5fe6ff004c1e2c1340685cec2d0fa8725259c491699de9
SIZE (fcron-3.0.1.src.tar.gz) = 536972

View File

@ -5,6 +5,12 @@ to your /etc/rc.conf:
fcron_enable="YES"
cron_enable="NO"
install the pam config files
mkdir -p %%PREFIX%%/etc/pam.d
cp %%EXAMPLESDIR%%/fcron.pam %%PREFIX%%/etc/pam.d/fcron
cp %%EXAMPLESDIR%%/fcrontab.pam %%PREFIX%%/etc/pam.d/fcrontab
and move any jobs in /etc/crontab to the root fcrontab(5) file. See:
%%EXAMPLESDIR%%

View File

@ -3,11 +3,13 @@
if [ "$2" = PRE-INSTALL ]; then
user=fcron
group=fcron
uid=247
gid=247
if /usr/sbin/pw groupshow $group 2>/dev/null; then
echo "Using already existing group \"$group\"."
else
if /usr/sbin/pw groupadd $group; then
if /usr/sbin/pw groupadd $group -g $gid; then
echo "Added group \"$group\"."
else
echo "Unable to add group \"$group\"."
@ -19,7 +21,7 @@ if [ "$2" = PRE-INSTALL ]; then
if /usr/sbin/pw usershow $user 2>/dev/null; then
echo "Using already existing user \"$user\"."
else
if /usr/sbin/pw useradd $user -g $group -c "fcron pseudo-user"; then
if /usr/sbin/pw useradd $user -u $uid -g $group -c "fcron pseudo-user"; then
echo "Added user \"$user\"."
else
echo "Unable to add user \"$user\"."

View File

@ -1,5 +1,6 @@
bin/fcronsighup
bin/fcrontab
bin/fcrondyn
etc/fcron.allow.dist
etc/fcron.conf.dist
etc/fcron.deny.dist