diff options
author | makc <makc@FreeBSD.org> | 2010-06-20 05:45:49 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2010-06-20 05:45:49 +0800 |
commit | ba6c442fddeb45125f5c3354706f0fda975f8621 (patch) | |
tree | dacc2c5972e68c1614a1a863a6afb17bd89d0ea3 /audio/murmur | |
parent | f27dd6dc878512e8787f031b555bb102feb6fdb6 (diff) | |
download | freebsd-ports-gnome-ba6c442fddeb45125f5c3354706f0fda975f8621.tar.gz freebsd-ports-gnome-ba6c442fddeb45125f5c3354706f0fda975f8621.tar.zst freebsd-ports-gnome-ba6c442fddeb45125f5c3354706f0fda975f8621.zip |
Don't overwrite configuration file.
PR: ports/147781
Submitted by: Sascha Holzleiter <sascha at root-login.org>
Approved by: Ayumi Mitsui (maintainer)
Feature safe: yes
Diffstat (limited to 'audio/murmur')
-rw-r--r-- | audio/murmur/Makefile | 9 | ||||
-rw-r--r-- | audio/murmur/pkg-plist | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile index 892cde7c09ff..287cefc2dc13 100644 --- a/audio/murmur/Makefile +++ b/audio/murmur/Makefile @@ -7,6 +7,7 @@ PORTNAME= murmur PORTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= audio net MASTER_SITES= SF/mumble/Mumble/${PORTVERSION} DISTNAME= mumble-${PORTVERSION} @@ -15,11 +16,10 @@ MAINTAINER= ayu@commun.jp COMMENT= Murmur is the server component of Mumble BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs -RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite.so:${PORTSDIR}/databases/qt4-sqlite3-plugin LIB_DEPENDS= protobuf.6:${PORTSDIR}/devel/protobuf USE_QT_VER= 4 -QT_COMPONENTS= qmake_build moc_build corelib network xml sql +QT_COMPONENTS= qmake_build moc_build corelib network xml sql sql-sqlite3_run CONFIG= no-client @@ -73,7 +73,10 @@ pre-install: do-install: @${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${PREFIX}/sbin - @${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${PREFIX}/etc + @${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${PREFIX}/etc/murmur.ini.sample + @if [ ! -f ${PREFIX}/etc/murmur.ini ]; then \ + ${CP} -p ${PREFIX}/etc/murmur.ini.sample ${PREFIX}/etc/murmur.ini; \ + fi ${INSTALL_MAN} ${WRKSRC}/man/murmurd.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/audio/murmur/pkg-plist b/audio/murmur/pkg-plist index 92857375971e..c956edab8ede 100644 --- a/audio/murmur/pkg-plist +++ b/audio/murmur/pkg-plist @@ -1,8 +1,10 @@ +@unexec if cmp -s %D/etc/murmur.ini.sample %D/etc/murmur.ini; then rm -f %D/etc/murmur.ini; fi +etc/murmur.ini.sample +@exec if [ ! -f %D/etc/murmur.ini ] ; then cp -p %D/%F %B/murmur.ini; fi +sbin/murmurd %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/LICENSE %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README.Linux -sbin/murmurd -etc/murmur.ini %%PORTDOCS%%@dirrm %%DOCSDIR%% |