aboutsummaryrefslogtreecommitdiff
path: root/release/packages/kernel.ucl
blob: 487e03456d21d050f35e383b1bb028cc96883af6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# $FreeBSD$
#

name = "FreeBSD-%PKGNAME%"
origin = "base"
version = "%VERSION%"
comment = "%COMMENT%"
categories = [ base ]
maintainer = "re@FreeBSD.org"
www = "https://www.FreeBSD.org"
prefix = "/"
licenselogic = "single"
licenses = [ BSD2CLAUSE ]
desc = <<EOD
%DESC%
EOD
scripts: {
	pre-install = <<EOD
	case ${ASSUME_ALWAYS_YES} in
		[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee])
			exit 0
			;;
		*)
			continue
			;;
	esac
	if [ -z "${TERM}" ]; then
		exit 0
	fi
	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 "****************************************************************"
	echo
	echo "Do you want to continue anyway? (N/y)"
	read ANSWER
	case ${ANSWER} in
		[Yy])
			exit 0
			;;
		*)
			kill ${PPID} ${PID}
			;;
	esac
EOD

	post-install = <<EOD
	/usr/sbin/kldxref ${PKG_ROOTDIR}/boot/kernel
EOD
}