diff options
author | gabor <gabor@FreeBSD.org> | 2007-08-31 17:44:24 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2007-08-31 17:44:24 +0800 |
commit | 7d763ede74dfcee51fe7c4640c17c3647faf8ce1 (patch) | |
tree | ae14e0853558c4c566fb406945c7de30b8cb74b6 | |
parent | 9d3bc6c6503733fe6314b689ead804efa0e97283 (diff) | |
download | freebsd-ports-gnome-7d763ede74dfcee51fe7c4640c17c3647faf8ce1.tar.gz freebsd-ports-gnome-7d763ede74dfcee51fe7c4640c17c3647faf8ce1.tar.zst freebsd-ports-gnome-7d763ede74dfcee51fe7c4640c17c3647faf8ce1.zip |
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
-rw-r--r-- | emulators/fceu-server/Makefile | 15 | ||||
-rw-r--r-- | emulators/fceu-server/pkg-plist | 5 |
2 files changed, 9 insertions, 11 deletions
diff --git a/emulators/fceu-server/Makefile b/emulators/fceu-server/Makefile index 14ef50a2af8c..ef94282ffce4 100644 --- a/emulators/fceu-server/Makefile +++ b/emulators/fceu-server/Makefile @@ -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> diff --git a/emulators/fceu-server/pkg-plist b/emulators/fceu-server/pkg-plist index ed2305165bc5..38c8e2e05ef2 100644 --- a/emulators/fceu-server/pkg-plist +++ b/emulators/fceu-server/pkg-plist @@ -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 |