mirror of
https://git.freebsd.org/ports.git
synced 2025-05-23 04:03:14 -04:00
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>
This commit is contained in:
parent
d92cbc50ed
commit
0a291a1916
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291544
5 changed files with 71 additions and 0 deletions
|
@ -541,6 +541,7 @@
|
|||
SUBDIR += nctop
|
||||
SUBDIR += netdump-server
|
||||
SUBDIR += netident
|
||||
SUBDIR += news
|
||||
SUBDIR += nitrogen
|
||||
SUBDIR += no-login
|
||||
SUBDIR += npadmin
|
||||
|
|
42
sysutils/news/Makefile
Normal file
42
sysutils/news/Makefile
Normal file
|
@ -0,0 +1,42 @@
|
|||
# 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>
|
2
sysutils/news/distinfo
Normal file
2
sysutils/news/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (news-1.2.tar.gz) = 657cac6f866cde16ae489afcdcda80ca69dbf78d2a0f9d4b158c68d1ea3a85bd
|
||||
SIZE (news-1.2.tar.gz) = 4908
|
20
sysutils/news/pkg-descr
Normal file
20
sysutils/news/pkg-descr
Normal file
|
@ -0,0 +1,20 @@
|
|||
Introduction
|
||||
|
||||
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..."
|
||||
|
||||
To read the news, simply type "news". Note, you may wish to type
|
||||
"news | more" in case the news is too long to fit on a single
|
||||
screen.
|
||||
|
||||
For complete information on the program, see the man page.
|
||||
|
||||
|
||||
Administration
|
||||
|
||||
To add news items to your system, simply copy a text file containing
|
||||
the information to the news directory. (This directory defaults to
|
||||
/var/news, but can be changed in the Makefile or through the
|
||||
environment variable, NEWS_PATH)
|
6
sysutils/news/pkg-plist
Normal file
6
sysutils/news/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
@exec mkdir %D/news || true
|
||||
@unexec cmp %D/news/news.item %D/%%EXAMPLESDIR%%/news.item.sample && rm -f %D/news/news.item || true
|
||||
%%EXAMPLESDIR%%/news.item.sample
|
||||
@exec if [ ! -e %D/news/news.item ]; then cp %D/%%EXAMPLESDIR%%/news.item.sample %D/news/news.item; fi
|
||||
@dirrmtry news
|
||||
@dirrmtry %%EXAMPLESDIR%%
|
Loading…
Add table
Reference in a new issue