1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

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
This commit is contained in:
Max Brazhnikov 2010-06-19 21:45:49 +00:00
parent 033c33a14f
commit 9b4924478f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256727
2 changed files with 10 additions and 5 deletions

View File

@ -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}

View File

@ -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%%