1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Build spool dirs when user install leafnode+ as a package.

PR:		ports/17193
Submitted by:	me
Approved by:	maintainer
This commit is contained in:
SADA Kenji 2000-03-08 21:24:01 +00:00
parent 4dae0e3ce1
commit 8c40db4c8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26673
2 changed files with 4 additions and 15 deletions

View File

@ -47,19 +47,8 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/leafnode+
.endfor
.endif
.if !exists{LEAFSPOOLDIR} || !exists{{LEAFLIBDIR}
@${MKDIR} ${LEAFSPOOLDIR} ${LEAFLIBDIR}
@${MKDIR} ${LEAFSPOOLDIR}/interesting.groups
@${MKDIR} ${LEAFSPOOLDIR}/out.going
.for dir_a in 0 1 2 3 4 5 6 7 8 9
.for dir_b in 0 1 2 3 4 5 6 7 8 9
.for dir_c in 0 1 2 3 4 5 6 7 8 9
@${MKDIR} ${LEAFSPOOLDIR}/message.id/${dir_a}${dir_b}${dir_c}
.endfor
.endfor
.endfor
@${CHOWN} -R news:news ${LEAFSPOOLDIR} ${LEAFLIBDIR}
@${CHMOD} 2750 ${LEAFSPOOLDIR}
.endif
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

View File

@ -2,7 +2,7 @@
# $FreeBSD$
LIBDIR=@LIBDIR@
SPOOLDIR=@SPOOLDIR@
if [ x$2 = xPOST-INSTALL -a x$LEAFNODE_SETUP_WRKDIRS != x ]; then
if [ x$2 = xPOST-INSTALL ]; then
if [ ! -d $LIBDIR ]; then
mkdir -p $LIBDIR
chown -R news.news $LIBDIR/.