mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Minor fixes after the last commit:
- Use ETCDIR - Add an @exec line to make the package consistent with the port - Bump PORTREVSION - Cosmetics Suggested by: sat Reviewed by: sat
This commit is contained in:
parent
9fc252973d
commit
62459912c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198579
@ -7,10 +7,10 @@
|
||||
|
||||
PORTNAME= fceu-server
|
||||
PORTVERSION= 0.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= fceultra
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ninjin@kth.se
|
||||
COMMENT= The network play server for the NES/Famicom emulator fceu
|
||||
@ -26,18 +26,15 @@ IGNORE= does not build on FreeBSD 5.X
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc/fceu-standard.conf|${PREFIX}/etc/${PORTNAME}/fceu-standard.conf|g' \
|
||||
@${REINPLACE_CMD} -e 's|/etc/fceu-standard.conf|${ETCDIR}/fceu-standard.conf|g' \
|
||||
${WRKSRC}/server.cpp
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
||||
@${INSTALL_DATA} ${WRKSRC}/fceu-server.conf ${PREFIX}/etc/${PORTNAME}/fceu-server.conf.sample
|
||||
@${MKDIR} ${ETCDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/fceu-server.conf ${ETCDIR}/fceu-server.conf.sample
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/fceu-server ${PREFIX}/bin
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
||||
@[ -f ${PREFIX}/etc/${PORTNAME}/fceu-standard.conf ] || \
|
||||
@[ -f ${ETCDIR}/fceu-standard.conf ] || \
|
||||
${INSTALL_DATA} ${WRKSRC}/fceu-server.conf \
|
||||
${PREFIX}/etc/${PORTNAME}/fceu-standard.conf
|
||||
${ETCDIR}/fceu-standard.conf
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/fceu-server
|
||||
@unexec if cmp -s %%PREFIX%%/etc/fceu-server/fceu-standard.conf %%PREFIX%%/etc/fceu-server/fceu-server.conf.sample; then rm %%PREFIX%%/etc/fceu-server/fceu-standard.conf; fi
|
||||
etc/fceu-server/fceu-server.conf.sample
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/fceu-standard.conf %D/%%ETCDIR%%/fceu-server.conf.sample; then rm %D/%%ETCDIR%%/fceu-standard.conf; fi
|
||||
%%ETCDIR%%/fceu-server.conf.sample
|
||||
@exec [ -f %D/%%ETCDIR%%/fceu-standard.conf ] || install -m 644 %D/%%ETCDIR%%/fceu-server.conf.sample %D/%%ETCDIR%%/fceu-standard.conf
|
||||
@dirrmtry etc/fceu-server
|
||||
|
Loading…
Reference in New Issue
Block a user