mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
- Copy over sample config file on install
- Use bsd.port.options.mk to avoid bsd.port.pre.mk nastiness PR: ports/165890 Submitted by: crees Approved by: maintainer timeout (votdev@gmx.de), 14 days Feature safe: yes
This commit is contained in:
parent
67115acc88
commit
1da6822d75
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293723
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ushare
|
||||
PORTVERSION= 1.1a
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://ushare.geexbox.org/releases/
|
||||
|
||||
@ -25,12 +25,11 @@ LDFLAGS+= -L${LOCALBASE}/lib -lintl
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample etc/rc.d/${PORTNAME}
|
||||
MAN1= ${PORTNAME}.1
|
||||
|
||||
OPTIONS= LIBDLNA "Enable DLNA (PS3) support" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITH_LIBDLNA)
|
||||
LIB_DEPENDS+= dlna:${PORTSDIR}/devel/libdlna
|
||||
@ -39,8 +38,13 @@ CONFIGURE_ARGS= --enable-dlna
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
||||
${CP} ${WRKSRC}/scripts/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${CP} ${WRKSRC}/scripts/${PORTNAME}.conf \
|
||||
${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/scripts/${PORTNAME} ${PREFIX}/etc/rc.d
|
||||
${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
post-install:
|
||||
${CP} -np ${PREFIX}/etc/${PORTNAME}.conf.sample \
|
||||
${PREFIX}/etc/${PORTNAME}.conf
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
5
net/ushare/pkg-plist
Normal file
5
net/ushare/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
bin/ushare
|
||||
etc/rc.d/ushare
|
||||
@unexec cmp -s %D/etc/ushare.conf.sample %D/etc/ushare.conf && rm %D/etc/ushare.conf || true
|
||||
etc/ushare.conf.sample
|
||||
@exec cp -np %D/%F %B/ushare.conf
|
Loading…
Reference in New Issue
Block a user