1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/sysutils/news/Makefile
Jason Helfman 0a291a1916 Add new port: (sysutils/news)
News is used to read and maintain news relevant to a local system.
Typically it is run from the .login script so it can automatically
check for any new news items.  If it finds any, it will report,
"You have news:  item1 item2 etc..."

No website for software

PR: ports/164456
Submitted by:	Hokan <hokan at me.umn.edu>
2012-02-16 18:06:06 +00:00

43 lines
1.2 KiB
Makefile

# New ports collection makefile for: news
# Date created: Tue Jan 24 12:42:05 CST 2012
# Whom: Hokan <hokan@me.umn.edu>
#
# $FreeBSD$
#
PORTNAME= news
PORTVERSION= 1.2
CATEGORIES= sysutils
MASTER_SITES= http://www.menet.umn.edu/~hokan/
MAINTAINER= hokan@me.umn.edu
COMMENT= Print news items
.include <bsd.port.pre.mk>
ALL_TARGET= news
NEWSHOME= ${PREFIX}/news
MAN1= news.1
MANCOMPRESSED= no
PLIST_FILES= bin/news
post-patch:
${REINPLACE_CMD} -e 's|CC \= gcc|MAKE_DEPEND = $${CC}|' ${WRKSRC}/${MAKEFILE}
${REINPLACE_CMD} -e 's|\/var\/news|${NEWSHOME}|' ${WRKSRC}/${MAKEFILE}
do-install:
${MKDIR} ${NEWSHOME}
${INSTALL_PROGRAM} ${WRKSRC}/news ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/news.1 ${MAN1PREFIX}/man/man1
@${MV} ${WRKSRC}/sample.news.item ${WRKSRC}/news.item.sample
@if [ ! -e "${NEWSHOME}/news.item" ]; then \
${ECHO_MSG} " Installing local news file: ${NEWSHOME}/news.item"; \
${INSTALL_DATA} ${WRKSRC}/news.item.sample ${NEWSHOME}/news.item ;\
else \
${ECHO_MSG} " Preserving local news file: ${NEWSHOME}/news.item"; \
fi;
${MKDIR} ${EXAMPLESDIR} && ${INSTALL_DATA} ${WRKSRC}/news.item.sample ${EXAMPLESDIR}
.include <bsd.port.post.mk>