- Handle config file properly on pkg_delete and reinstall, don't just
overwrite it. - Small cosmetic changes. Submitted by: avg (final patch via private email) Approved by: portmgr (miwi, via irc)
This commit is contained in:
parent
431046bc85
commit
e9b25cc7c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273688
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= alsa-plugins-oss
|
||||
PORTVERSION= 1.0.21
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= audio linux
|
||||
PKGNAMEPREFIX= linux-f10-
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION}
|
||||
@ -20,13 +20,19 @@ USE_LINUX_RPM= yes
|
||||
USE_LINUX_APPS= alsalib
|
||||
LINUX_DIST_VER= 10
|
||||
RPMVERSION= 3.fc10
|
||||
SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}.src.rpm
|
||||
SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX}
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CONF_FILE= etc/alsa/pcm/pcm-oss.conf
|
||||
|
||||
post-patch:
|
||||
${RM} ${WRKDIR}/etc/alsa/pcm/pcm-oss.conf.orig
|
||||
@${RM} ${WRKSRC}/${CONF_FILE}.orig
|
||||
@${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \
|
||||
${CP} -p ${PREFIX}/${CONF_FILE}-dist ${PREFIX}/${CONF_FILE} ; \
|
||||
fi
|
||||
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,6 @@
|
||||
etc/alsa/pcm/pcm-oss.conf
|
||||
@unexec if cmp -s %D/etc/alsa/pcm/pcm-oss.conf-dist %D/etc/alsa/pcm/pcm-oss.conf; then rm -f %D/etc/alsa/pcm/pcm-oss.conf; fi
|
||||
etc/alsa/pcm/pcm-oss.conf-dist
|
||||
@exec if [ ! -f %D/etc/alsa/pcm/pcm-oss.conf ] ; then cp -p %D/%F %B/client.conf; fi
|
||||
usr/lib/alsa-lib/libasound_module_ctl_oss.so
|
||||
usr/lib/alsa-lib/libasound_module_pcm_oss.so
|
||||
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
|
||||
@ -8,4 +10,4 @@ usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
|
||||
@dirrmtry etc/alsa/pcm
|
||||
@dirrmtry etc/alsa
|
||||
@dirrmtry usr/lib/alsa-lib
|
||||
@unexec if [ -f %D/etc/asound.conf ]; then grep -v '/etc/alsa/pcm/pcm-oss\.conf' <%D/etc/asound.conf >/tmp/asound.conf.new; mv /tmp/asound.conf.new %D/etc/asound.conf; fi
|
||||
@unexec if [ -f %D/etc/asound.conf ]; then fgrep -v '/etc/alsa/pcm/pcm-oss.conf' <%D/etc/asound.conf >/tmp/asound.conf.new; mv /tmp/asound.conf.new %D/etc/asound.conf; fi
|
||||
|
Loading…
Reference in New Issue
Block a user