1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Update to 2.0.8

- Do not manually install jabberd.sh nor list it in pkg-list, as that
  is done by USE_RC_SUBR
- Use @unexec rmdir rather than @rmdir for configuration directories,
  as they might still contain files at uninstall time
- Polish the Makefile and packing list

PR:		ports/80370
Submitted by:	Vsevolod Stakhov <vsevolod@highsecure.ru>
Approved by:	maintainer
This commit is contained in:
Jean-Yves Lefort 2005-04-28 14:16:46 +00:00
parent 5edfc54412
commit a3ff8ade70
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134308
6 changed files with 24 additions and 30 deletions

View File

@ -6,10 +6,10 @@
#
PORTNAME= jabberd
PORTVERSION= 2.0.7
PORTVERSION= 2.0.8
CATEGORIES= net
MASTER_SITES= http://files.jabberstudio.org/jabberd2/
DISTNAME= ${PORTNAME}-2.0s7
DISTNAME= ${PORTNAME}-${PORTVERSION:R}s${PORTVERSION:E}
DIST_SUBDIR= jabber
MAINTAINER= kirk@strauser.com
@ -85,13 +85,11 @@ pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file."
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh
@${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660
@${MKDIR} ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${PREFIX}/share/jabberd
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${DATADIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (jabber/jabberd-2.0s7.tar.gz) = 1f10641964d257944eae2f8f295cfcba
SIZE (jabber/jabberd-2.0s7.tar.gz) = 749170
MD5 (jabber/jabberd-2.0s8.tar.gz) = 96753c5e74676ace0841a4cee9f13fdb
SIZE (jabber/jabberd-2.0s8.tar.gz) = 757149

View File

@ -20,9 +20,8 @@ etc/jabberd/s2s.xml.dist
etc/jabberd/sm.xml.dist
@unexec if cmp -s %D/etc/jabberd/templates/roster.xml %D/etc/jabberd/templates/roster.xml.dist; then rm -f %D/etc/jabberd/templates/roster.xml; fi
etc/jabberd/templates/roster.xml.dist
etc/rc.d/jabberd.sh
share/jabberd/db-setup.mysql
share/jabberd/db-setup.pgsql
@dirrm share/jabberd
@dirrm etc/jabberd/templates
@dirrm etc/jabberd
%%DATADIR%%/db-setup.mysql
%%DATADIR%%/db-setup.pgsql
@dirrm %%DATADIR%%
@unexec rmdir %D/etc/jabberd/templates 2> /dev/null || true
@unexec rmdir %D/etc/jabberd 2> /dev/null || true

View File

@ -6,10 +6,10 @@
#
PORTNAME= jabberd
PORTVERSION= 2.0.7
PORTVERSION= 2.0.8
CATEGORIES= net
MASTER_SITES= http://files.jabberstudio.org/jabberd2/
DISTNAME= ${PORTNAME}-2.0s7
DISTNAME= ${PORTNAME}-${PORTVERSION:R}s${PORTVERSION:E}
DIST_SUBDIR= jabber
MAINTAINER= kirk@strauser.com
@ -85,13 +85,11 @@ pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file."
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh
@${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660
@${MKDIR} ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${PREFIX}/share/jabberd
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${DATADIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (jabber/jabberd-2.0s7.tar.gz) = 1f10641964d257944eae2f8f295cfcba
SIZE (jabber/jabberd-2.0s7.tar.gz) = 749170
MD5 (jabber/jabberd-2.0s8.tar.gz) = 96753c5e74676ace0841a4cee9f13fdb
SIZE (jabber/jabberd-2.0s8.tar.gz) = 757149

View File

@ -20,9 +20,8 @@ etc/jabberd/s2s.xml.dist
etc/jabberd/sm.xml.dist
@unexec if cmp -s %D/etc/jabberd/templates/roster.xml %D/etc/jabberd/templates/roster.xml.dist; then rm -f %D/etc/jabberd/templates/roster.xml; fi
etc/jabberd/templates/roster.xml.dist
etc/rc.d/jabberd.sh
share/jabberd/db-setup.mysql
share/jabberd/db-setup.pgsql
@dirrm share/jabberd
@dirrm etc/jabberd/templates
@dirrm etc/jabberd
%%DATADIR%%/db-setup.mysql
%%DATADIR%%/db-setup.pgsql
@dirrm %%DATADIR%%
@unexec rmdir %D/etc/jabberd/templates 2> /dev/null || true
@unexec rmdir %D/etc/jabberd 2> /dev/null || true