2016-02-04 15:41:00 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2015-02-08 18:07:23 +00:00
|
|
|
name = "FreeBSD-%PKGNAME%"
|
|
|
|
origin = "base"
|
|
|
|
version = "%VERSION%"
|
|
|
|
comment = "%COMMENT%"
|
|
|
|
categories = [ base ]
|
|
|
|
maintainer = "re@FreeBSD.org"
|
2015-10-15 19:55:32 +00:00
|
|
|
www = "https://www.FreeBSD.org"
|
2015-02-08 18:07:23 +00:00
|
|
|
prefix = "/"
|
|
|
|
licenselogic = "single"
|
|
|
|
licenses = [ BSD2CLAUSE ]
|
|
|
|
desc = <<EOD
|
|
|
|
%DESC%
|
|
|
|
EOD
|
2015-06-15 13:27:57 +00:00
|
|
|
scripts: {
|
2017-08-09 19:16:54 +00:00
|
|
|
pre-install = <<EOD
|
|
|
|
case ${ASSUME_ALWAYS_YES} in
|
|
|
|
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee])
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
continue
|
|
|
|
;;
|
|
|
|
esac
|
2017-08-10 12:30:34 +00:00
|
|
|
if [ -z "${TERM}" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
2017-08-09 19:16:54 +00:00
|
|
|
echo "****************************************************************"
|
|
|
|
echo "It is recommended to install the FreeBSD-%PKGNAME% package"
|
|
|
|
echo "with:"
|
|
|
|
echo
|
|
|
|
echo " pkg install FreeBSD-%PKGNAME%"
|
|
|
|
echo
|
|
|
|
echo "and rebooting the system into the new kernel before upgrading"
|
|
|
|
echo "with:"
|
|
|
|
echo
|
|
|
|
echo " pkg upgrade"
|
|
|
|
echo
|
|
|
|
echo "****************************************************************"
|
2017-08-10 13:32:04 +00:00
|
|
|
echo
|
|
|
|
echo "Do you want to continue anyway? (N/y)"
|
|
|
|
read ANSWER
|
|
|
|
case ${ANSWER} in
|
|
|
|
[Yy])
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
kill ${PPID} ${PID}
|
|
|
|
;;
|
|
|
|
esac
|
2017-08-09 19:16:54 +00:00
|
|
|
EOD
|
|
|
|
|
2015-06-15 13:27:57 +00:00
|
|
|
post-install = <<EOD
|
|
|
|
/usr/sbin/kldxref ${PKG_ROOTDIR}/boot/kernel
|
2015-03-18 09:39:31 +00:00
|
|
|
EOD
|
2015-06-15 13:27:57 +00:00
|
|
|
}
|