diff options
author | James FitzGibbon <jfitz@FreeBSD.org> | 1997-06-02 19:52:11 +0000 |
---|---|---|
committer | James FitzGibbon <jfitz@FreeBSD.org> | 1997-06-02 19:52:11 +0000 |
commit | b862d0487f7b88f400f14023a70ab2da5e7e90b7 (patch) | |
tree | 34fdcc48b13e31b31b6d69d8f278267b8c71093e /news/diablo/Makefile | |
parent | 931957769b1739898e6424d34a7a7a59ddc0b6c3 (diff) | |
download | ports-b862d0487f7b88f400f14023a70ab2da5e7e90b7.tar.gz ports-b862d0487f7b88f400f14023a70ab2da5e7e90b7.zip |
Notes
Diffstat (limited to 'news/diablo/Makefile')
-rw-r--r-- | news/diablo/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/news/diablo/Makefile b/news/diablo/Makefile new file mode 100644 index 000000000000..3490e4c78aed --- /dev/null +++ b/news/diablo/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: diablo +# Version required: 1.09 +# Date created: June 2nd 1997 +# Whom: jfitz +# +# $Id$ +# + +DISTNAME= diablo-1.09 +CATEGORIES= news +MASTER_SITES= http://www.backplane.com/diablo/ +EXTRACT_SUFX= .tgz + +MAINTAINTER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= xmake:${PORTSDIR}/devel/xmake + +WRKSRC= ${WRKDIR}/diablo + +NO_PACKAGE= "has to create/verify news user" + +MAN5= diablo-files.5 +MAN8= diablo.8 dclean.8 dicmd.8 dexpire.8 didump.8 \ + dilookup.8 doutq.8 dspoolout.8 + +do-configure: + ${CP} ${FILESDIR}/post-install-notes ${WRKSRC} + ${SETENV} ${MAKE_ENV} /usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/post-install-notes + +do-build: + cd ${WRKSRC} && ${PREFIX}/bin/xmake clean all + +pre-install: + @ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser + ${MKDIR} ${PREFIX}/news ${PREFIX}/news/dbin ${PREFIX}/news/spool ${PREFIX}/news/spool/news ${PREFIX}/share/doc/diablo + ${RM} -f /news + /bin/ln -sf ${PREFIX}/news /news + /usr/sbin/chown -R news.news ${PREFIX}/news + +do-install: + cd ${WRKSRC} && ${PREFIX}/bin/xmake install +.for file in COPYRIGHT INSTALL KNOWN_PROBLEMS README RELEASE_NOTES TODO + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/diablo +.endfor + ${INSTALL_DATA} ${WRKSRC}/post-install-notes ${PREFIX}/share/doc/diablo + +post-install: + ${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 + @ echo "# ${PREFIX}/news/rc.news && echo -n ' diablo'" >> ${PREFIX}/etc/rc.d/diablo.sh + @ echo " echo -n ' diablo(disabled)'" >> ${PREFIX}/etc/rc.d/diablo.sh + @ echo "fi" >> ${PREFIX}/etc/rc.d/diablo.sh + /bin/chmod 0750 ${PREFIX}/etc/rc.d/diablo.sh +.if !defined(BATCH) + @ /usr/bin/more -e ${PREFIX}/share/doc/diablo/post-install-notes +.endif + +.include <bsd.port.mk> |