diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2009-08-10 14:22:36 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2009-08-10 14:22:36 +0000 |
commit | 53ab08f81b0a110c5471fd29bb2399c946877c9a (patch) | |
tree | 6bf312b2a43b4c35bcf1a8810b41f217deafaf6d /shells/lshell | |
parent | 88fa5edee091811bd865112a4a815047a1cc8b50 (diff) | |
download | ports-53ab08f81b0a110c5471fd29bb2399c946877c9a.tar.gz ports-53ab08f81b0a110c5471fd29bb2399c946877c9a.zip |
Notes
Diffstat (limited to 'shells/lshell')
-rw-r--r-- | shells/lshell/Makefile | 24 | ||||
-rw-r--r-- | shells/lshell/pkg-plist | 15 |
2 files changed, 29 insertions, 10 deletions
diff --git a/shells/lshell/Makefile b/shells/lshell/Makefile index d8d979c93b14..3b0cadc7aef2 100644 --- a/shells/lshell/Makefile +++ b/shells/lshell/Makefile @@ -7,6 +7,7 @@ PORTNAME= lshell PORTVERSION= 0.9.5 +PORTREVISION= 1 CATEGORIES= shells MASTER_SITES= SF @@ -19,22 +20,25 @@ BUILD_DEPENDS= ${RUN_DEPENDS} USE_PYDISTUTILS= yes USE_PYTHON= yes -PLIST_FILES= %%PYTHON_SITELIBDIR%%/lshell.py \ - %%PYTHON_SITELIBDIR%%/lshell.pyc \ - %%PYTHON_SITELIBDIR%%/lshell.pyo \ - bin/lshell \ - etc/lshell.conf +SHELLS= /etc/shells MAN1= lshell.1 -DOCS= README COPYING CHANGES - post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} -.for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ -.endfor + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}/ .endif + @${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample + @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ + ${INSTALL_DATA} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \ + fi + @${ECHO_MSG} "Updating ${SHELLS}" + @${CP} ${SHELLS} ${SHELLS}.bak + @(${GREP} -v ${PREFIX}/bin/${PORTNAME} ${SHELLS}.bak; \ + ${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > ${SHELLS} + @${RM} ${SHELLS}.bak .include <bsd.port.mk> diff --git a/shells/lshell/pkg-plist b/shells/lshell/pkg-plist new file mode 100644 index 000000000000..20b04008c6bf --- /dev/null +++ b/shells/lshell/pkg-plist @@ -0,0 +1,15 @@ +bin/lshell +@exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak +@unexec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak +@unexec if cmp -s %D/etc/lshell.conf %D/etc/lshell.conf.sample; then rm -f %D/etc/lshell.conf; fi +etc/lshell.conf.sample +@exec if [ ! -f %D/etc/lshell.conf ]; then cp %B/%f %D/etc/lshell.conf; fi +%%PYTHON_SITELIBDIR%%/lshell.py +%%PYTHON_SITELIBDIR%%/lshell.pyc +%%PYTHON_SITELIBDIR%%/lshell.pyo +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +@dirrmtry %%DATADIR%% +@dirrmtry %%LOGDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |