There is no need to include PKGINSTALL in the pico package
Give the alpine/pkg-install script triple protection against being run inappropriately.
This commit is contained in:
parent
cce3d10b63
commit
2d3c3b823e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265835
@ -21,6 +21,7 @@ PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
PATCHDIR= # To void equivalent in master port
|
||||
PKGMESSAGE= /nonexistent # To void equivalent in master port
|
||||
PKGINSTALL= /nonexistent # To void equivalent in master port
|
||||
|
||||
PICO_ALPINE_SLAVE= yes
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user