mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Convert to staging
- Have portshaker-config not overwrite the config file. Sponsored by: Absolight
This commit is contained in:
parent
afbf3a9249
commit
2348748a6a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346366
@ -2,6 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= portshaker-config
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= ports-mgmt
|
||||
|
||||
MAINTAINER= romain@FreeBSD.org
|
||||
@ -16,5 +17,11 @@ INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
||||
DESCR= ${.CURDIR}/pkg-descr
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/portshaker.d
|
||||
|
||||
post-install:
|
||||
@${MV} ${STAGEDIR}${PREFIX}/etc/portshaker.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/portshaker.conf.sample-config
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -1,4 +1,6 @@
|
||||
etc/portshaker.conf
|
||||
@unexec if cmp -s %D/etc/portshaker.conf.sample-config %D/etc/portshaker.conf; then rm -f %D/etc/portshaker.conf; fi
|
||||
etc/portshaker.conf.sample-config
|
||||
@exec if [ ! -f %D/etc/portshaker.conf ] ; then cp -p %D/%F %B/portshaker.conf; fi
|
||||
etc/portshaker.d/bsd_sharp
|
||||
etc/portshaker.d/bsd_sharp_releng_2_0
|
||||
etc/portshaker.d/bsd_sharp_releng_2_2
|
||||
|
@ -22,9 +22,10 @@ OPTIONS_DEFAULT= RSYNC SVN
|
||||
RSYNC_DESC= rsync support
|
||||
GIT_DESC= git support
|
||||
HG_DESC= mercurial support
|
||||
MAN5= portshaker.conf.5 \
|
||||
portshaker.d.5
|
||||
MAN8= portshaker.8
|
||||
RSYNC_RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
||||
SVN_RUN_DEPENDS= svn:${PORTSDIR}/devel/subversion
|
||||
GIT_RUN_DEPENDS= git:${PORTSDIR}/devel/git
|
||||
HG_RUN_DEPENDS= hg:${PORTSDIR}/devel/mercurial
|
||||
.else
|
||||
OPTIONS_DEFINE= BSDSHARP ENLIGHTENMENT GECKO HASKELL MARCUSCOM TEXLIVE XORG
|
||||
OPTIONS_DEFAULT= BSDSHARP
|
||||
@ -35,50 +36,13 @@ HASKELL_DESC= Enable Haskell ports
|
||||
MARCUSCOM_DESC= Enable GNOME development ports
|
||||
TEXLIVE_DESC= Enable TeXLive ports (Experimental)
|
||||
XORG_DESC= Enable Xorg development ports
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORTNAME} == "portshaker"
|
||||
|
||||
. if ${PORT_OPTIONS:MRSYNC}
|
||||
RUN_DEPENDS+= rsync:${PORTSDIR}/net/rsync
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MSVN}
|
||||
RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MGIT}
|
||||
RUN_DEPENDS+= git:${PORTSDIR}/devel/git
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MHG}
|
||||
RUN_DEPENDS+= hg:${PORTSDIR}/devel/mercurial
|
||||
. endif
|
||||
|
||||
.else
|
||||
|
||||
. if ${PORT_OPTIONS:MBSDSHARP}
|
||||
MAKE_ENV+= WITH_BSDSHARP=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MENLIGHTENMENT}
|
||||
MAKE_ENV+= WITH_ENLIGHTENMENT=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MGECKO}
|
||||
MAKE_ENV+= WITH_GECKO=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MHASKELL}
|
||||
MAKE_ENV+= WITH_HASKELL=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MMARCUSCOM}
|
||||
MAKE_ENV+= WITH_MARCUSCOM=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MTEXLIVE}
|
||||
MAKE_ENV+= WITH_TEXLIVE=1
|
||||
. endif
|
||||
. if ${PORT_OPTIONS:MXORG}
|
||||
MAKE_ENV+= WITH_XORG=1
|
||||
. endif
|
||||
|
||||
BSDSHARP_MAKE_ENV= WITH_BSDSHARP=1
|
||||
ENLIGHTENMENT_MAKE_ENV= WITH_ENLIGHTENMENT=1
|
||||
GECKO_MAKE_ENV= WITH_GECKO=1
|
||||
HASKELL_MAKE_ENV= WITH_HASKELL=1
|
||||
MARCUSCOM_MAKE_ENV= WITH_MARCUSCOM=1
|
||||
TEXLIVE_MAKE_ENV= WITH_TEXLIVE=1
|
||||
XORG_MAKE_ENV= WITH_XORG=1
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
13
ports-mgmt/portshaker/files/patch-Makefile
Normal file
13
ports-mgmt/portshaker/files/patch-Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
--- ./Makefile.orig 2014-01-17 20:30:31.000000000 +0100
|
||||
+++ ./Makefile 2014-02-27 16:03:26.000000000 +0100
|
||||
@@ -30,8 +30,8 @@
|
||||
> ${.TARGET}
|
||||
|
||||
beforeinstall:
|
||||
- if [ ! -d "${SHAREDIR}/portshaker" ]; then mkdir -p "${SHAREDIR}/portshaker"; fi
|
||||
- if [ ! -d "${ETCDIR}/portshaker.d" ]; then mkdir -p "${ETCDIR}/portshaker.d"; fi
|
||||
+ if [ ! -d "${DESTDIR}${SHAREDIR}/portshaker" ]; then mkdir -p "${DESTDIR}${SHAREDIR}/portshaker"; fi
|
||||
+ if [ ! -d "${DESTDIR}${ETCDIR}/portshaker.d" ]; then mkdir -p "${DESTDIR}${ETCDIR}/portshaker.d"; fi
|
||||
|
||||
tarball:
|
||||
git archive -o ${TARBALL} v${VERSION}
|
@ -1,5 +1,8 @@
|
||||
bin/portshaker
|
||||
etc/portshaker.conf.sample
|
||||
man/man5/portshaker.conf.5.gz
|
||||
man/man5/portshaker.d.5.gz
|
||||
man/man8/portshaker.8.gz
|
||||
%%DATADIR%%/merge-updating.awk
|
||||
%%DATADIR%%/portshaker.subr
|
||||
@exec mkdir -p %D/etc/portshaker.d
|
||||
|
Loading…
Reference in New Issue
Block a user