mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Do not overwrite config file on upgrade.
Requested by: Dan Langille <dan@langille.org>
This commit is contained in:
parent
54adf866b1
commit
84dffb2f37
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133477
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= xplanet
|
||||
PORTVERSION= 1.1.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= astro
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -15,6 +15,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
MAINTAINER= novel@FreeBSD.org
|
||||
COMMENT= Draw pictures of the earth textured by an image
|
||||
|
||||
USE_REINPLACE= yes
|
||||
USE_X_PREFIX= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GNOME= #
|
||||
@ -22,8 +23,6 @@ CONFIGURE_ARGS= --with-map-extension=jpg
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
|
||||
|
||||
PLIST_FILES= bin/xplanet
|
||||
|
||||
OPTIONS= FREETYPE "Enable Freetype support" on \
|
||||
PANGO "Enable PANGO support" on \
|
||||
GIF "Enable GIF support" on \
|
||||
@ -85,6 +84,10 @@ LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
|
||||
CONFIGURE_ARGS+= --without-tiff
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e "s/default/default.sample/g" ${WRKSRC}/Makefile.in
|
||||
@${MV} ${WRKSRC}/xplanet/config/default ${WRKSRC}/xplanet/config/default.sample
|
||||
|
||||
post-install:
|
||||
.for file in freebsd.committers.markers freebsd.ftp.markers
|
||||
@${INSTALL_DATA} ${PORTSDIR}/astro/xearth/files/${file} \
|
||||
@ -94,5 +97,8 @@ post-install:
|
||||
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
||||
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
||||
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
||||
@if test ! -f ${DATADIR}/config/default; then \
|
||||
${CP} ${DATADIR}/config/default.sample ${DATADIR}/config/default; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
2
astro/xplanet/pkg-plist
Normal file
2
astro/xplanet/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/xplanet
|
||||
@unexec if cmp -s %D/share/xplanet/config/defult %D/share/xplanet/config/defult.sample; then rm -f %D/share/xplanet/config/defult; fi
|
Loading…
Reference in New Issue
Block a user