1997-06-02 19:52:11 +00:00
|
|
|
# New ports collection makefile for: diablo
|
1997-07-05 03:31:30 +00:00
|
|
|
# Version required: 1.10
|
1997-06-02 19:52:11 +00:00
|
|
|
# Date created: June 2nd 1997
|
|
|
|
# Whom: jfitz
|
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1997-06-02 19:52:11 +00:00
|
|
|
#
|
|
|
|
|
1998-04-18 12:32:31 +00:00
|
|
|
DISTNAME= diablo-1.15-rel
|
|
|
|
PKGNAME= diablo-1.15
|
1997-06-02 19:52:11 +00:00
|
|
|
CATEGORIES= news
|
|
|
|
MASTER_SITES= http://www.backplane.com/diablo/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= jfitz@FreeBSD.org
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= xmake:${PORTSDIR}/devel/xmake
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/diablo
|
|
|
|
|
|
|
|
NO_PACKAGE= "has to create/verify news user"
|
|
|
|
|
1998-04-18 12:32:31 +00:00
|
|
|
MAN5= diablo-files.5 diablo-kp.5
|
1997-06-02 19:52:11 +00:00
|
|
|
MAN8= diablo.8 dclean.8 dicmd.8 dexpire.8 didump.8 \
|
1998-04-18 12:32:31 +00:00
|
|
|
dilookup.8 doutq.8 dspoolout.8 dkp.8 dnewslink.8 \
|
|
|
|
dreadart.8 dreaderd.8 dsyncgroups.8
|
|
|
|
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
do-configure:
|
1999-07-04 20:54:41 +00:00
|
|
|
${CP} ${FILESDIR}/post-install-notes ${WRKSRC}
|
|
|
|
${SETENV} ${MAKE_ENV} /usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/post-install-notes
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
do-build:
|
1999-07-04 20:54:41 +00:00
|
|
|
cd ${WRKSRC} && ${PREFIX}/bin/xmake clean all
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
pre-install:
|
1999-07-04 20:54:41 +00:00
|
|
|
@ ${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/createuser
|
|
|
|
${MKDIR} ${PREFIX}/news ${PREFIX}/news/dbin ${PREFIX}/news/spool \
|
|
|
|
${PREFIX}/news/spool/news ${PREFIX}/share/doc/diablo
|
|
|
|
${RM} -f /news
|
|
|
|
${LN} -sf ${PREFIX}/news /news
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHOWN} -R news.news ${PREFIX}/news
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
do-install:
|
1999-07-04 20:54:41 +00:00
|
|
|
cd ${WRKSRC} && ${PREFIX}/bin/xmake install
|
1998-04-18 12:32:31 +00:00
|
|
|
.for file in COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
|
1999-07-04 20:54:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/diablo
|
1997-06-02 19:52:11 +00:00
|
|
|
.endfor
|
1999-07-04 20:54:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/post-install-notes ${PREFIX}/share/doc/diablo
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-07-04 20:54:41 +00:00
|
|
|
${INSTALL} -c -o news -g news ${WRKSRC}/samples/* ${PREFIX}/news
|
|
|
|
@ ${ECHO} "Installing ${PREFIX}/etc/rc.d/diablo.sh startup script"
|
|
|
|
@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "# The line to run diablo is specifically commented out" >> \
|
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "# so that you don't start up diablo with a generic config" >> \
|
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "# Once you've configured diablo, uncomment the line below" >> \
|
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "if [ -x ${PREFIX}/news/rc.news ]" >> \
|
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/diablo.sh
|
1999-08-27 22:30:39 +00:00
|
|
|
@ ${ECHO} "# ${PREFIX}/news/rc.news && ${ECHO} -n ' diablo'" >> \
|
1999-07-04 20:54:41 +00:00
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
1999-08-27 22:30:39 +00:00
|
|
|
@ ${ECHO} " ${ECHO} -n ' diablo(disabled)'" >> \
|
1999-07-04 20:54:41 +00:00
|
|
|
${PREFIX}/etc/rc.d/diablo.sh
|
|
|
|
@ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/diablo.sh
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 0750 ${PREFIX}/etc/rc.d/diablo.sh
|
1997-06-02 19:52:11 +00:00
|
|
|
.if !defined(BATCH)
|
1999-07-04 20:54:41 +00:00
|
|
|
@ /usr/bin/more -e ${PREFIX}/share/doc/diablo/post-install-notes
|
1997-06-02 19:52:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|