diff options
author | dougb <dougb@FreeBSD.org> | 2010-12-08 14:46:46 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2010-12-08 14:46:46 +0800 |
commit | d6d4b819467a1d7c53d0f98dd7a68e9d38add2c6 (patch) | |
tree | a8b8dc81f988916fc572139561a07609b4b94b4d /mail/alpine | |
parent | 9ca39522ee7c0c9c0b171c16e42de55f159fe265 (diff) | |
download | freebsd-ports-gnome-d6d4b819467a1d7c53d0f98dd7a68e9d38add2c6.tar.gz freebsd-ports-gnome-d6d4b819467a1d7c53d0f98dd7a68e9d38add2c6.tar.zst freebsd-ports-gnome-d6d4b819467a1d7c53d0f98dd7a68e9d38add2c6.zip |
There is no need to include PKGINSTALL in the pico package
Give the alpine/pkg-install script triple protection against
being run inappropriately.
Diffstat (limited to 'mail/alpine')
-rw-r--r-- | mail/alpine/pkg-install | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/alpine/pkg-install b/mail/alpine/pkg-install index c7e0a18d5aed..fc52acc89a28 100644 --- a/mail/alpine/pkg-install +++ b/mail/alpine/pkg-install @@ -2,6 +2,13 @@ [ "$2" = 'POST-INSTALL' ] || exit 0 +case "$1" in +alpine*) ;; +*) exit 0 ;; +esac + +[ -x "${PKG_PREFIX}/bin/alpine" ] || exit 1 + PATH=/bin:/usr/bin export PATH @@ -18,7 +25,7 @@ install -o root -g wheel -m 444 ${TDIR}/alpine.conf.sample ${PKG_PREFIX}/etc/alp ${PKG_PREFIX}/bin/alpine -conf > ${TDIR}/alpine.conf -if [ -e "${PKG_PREFIX}/etc/alpine.conf" ]; then +if [ -s "${PKG_PREFIX}/etc/alpine.conf" ]; then if ! cmp -s ${TDIR}/alpine.conf ${PKG_PREFIX}/etc/alpine.conf; then unlink ${PKG_PREFIX}/etc/alpine.conf install -o root -g wheel -m 444 ${TDIR}/alpine.conf ${PKG_PREFIX}/etc/alpine.conf |