diff options
author | madpilot <madpilot@FreeBSD.org> | 2014-05-12 17:34:14 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2014-05-12 17:34:14 +0800 |
commit | a0f781375a36a8872064742c5baac803bbe3d242 (patch) | |
tree | a9e6f7d7851d5f34e7f7e225ba42a3349e973893 /net-im | |
parent | 7971a70ddcc7820d17d62f93b234e9cd5cf8f8f4 (diff) | |
download | freebsd-ports-gnome-a0f781375a36a8872064742c5baac803bbe3d242.tar.gz freebsd-ports-gnome-a0f781375a36a8872064742c5baac803bbe3d242.tar.zst freebsd-ports-gnome-a0f781375a36a8872064742c5baac803bbe3d242.zip |
- Stage port
- Convert to new LIB_DEPENDS format
- Fix configuration file handling
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/mu-conference/Makefile | 33 | ||||
-rw-r--r-- | net-im/mu-conference/pkg-plist | 4 |
2 files changed, 15 insertions, 22 deletions
diff --git a/net-im/mu-conference/Makefile b/net-im/mu-conference/Makefile index e4ea06390000..e09a040314b2 100644 --- a/net-im/mu-conference/Makefile +++ b/net-im/mu-conference/Makefile @@ -3,7 +3,7 @@ PORTNAME= mu-conference PORTVERSION= 0.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-im MASTER_SITES= http://download.gna.org/mu-conference/ DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -13,8 +13,8 @@ COMMENT= Multi-User Conferencing component for Jabber LICENSE= GPLv2 -LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \ - idn:${PORTSDIR}/dns/libidn +LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ + libidn.so:${PORTSDIR}/dns/libidn USES= pkgconfig USE_GNOME= glib20 @@ -40,8 +40,7 @@ PORTDOCS= * MAKE_JOBS_UNSAFE= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes @@ -97,26 +96,20 @@ post-patch: ${WRKSRC}/muc-default.xml do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/mu-conference ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${PREFIX}/etc/muc.xml.sample - @if ! [ -f ${PREFIX}/etc/muc.xml ]; then \ - ${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${PREFIX}/etc/muc.xml; \ - fi -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR}/scripts + ${INSTALL_PROGRAM} ${WRKSRC}/src/mu-conference ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${STAGEDIR}${PREFIX}/etc/muc.xml.sample +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/scripts .for FILE in README.FreeBSD.jabberd14 README.FreeBSD.jabberd2 README.FreeBSD.external - @${INSTALL_DATA} ${WRKDIR}/${FILE} ${DOCSDIR} + @${INSTALL_DATA} ${WRKDIR}/${FILE} ${STAGEDIR}${DOCSDIR} .endfor .for FILE in ${DOCFILES} - @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR} .endfor - ${INSTALL_DATA} ${WRKSRC}/scripts/README ${DOCSDIR}/scripts + ${INSTALL_DATA} ${WRKSRC}/scripts/README ${STAGEDIR}${DOCSDIR}/scripts .for FILE in roommaker.pl roomname.pl - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/${FILE} ${DOCSDIR}/scripts + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/${FILE} ${STAGEDIR}${DOCSDIR}/scripts .endfor .endif -post-install: - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-im/mu-conference/pkg-plist b/net-im/mu-conference/pkg-plist index 333433c5d4f0..8b62812f947c 100644 --- a/net-im/mu-conference/pkg-plist +++ b/net-im/mu-conference/pkg-plist @@ -1,4 +1,4 @@ -@unexec if cmp -s %D/etc/muc.xml.sample %D/etc/muc.xml; then rm -f %D/etc/muc.xml; fi bin/mu-conference +@unexec if cmp -s %D/etc/muc.xml.sample %D/etc/muc.xml; then rm -f %D/etc/muc.xml; fi etc/muc.xml.sample -@exec cp -n %D/%F %B/muc.xml +@exec if [ ! -f %D/etc/muc.xml ]; then cp -p %D/%F %B/muc.xml; fi |