summaryrefslogtreecommitdiff
path: root/virtual/miller-base/miller-base-9-r10.ebuild
blob: 1a70d781a2b6a386bc6ca0710e3280202b733c47 (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
EAPI="2"
DESCRIPTION="Virtual for base systems"

SLOT="0"
KEYWORDS="alpha amd64 arm ia64 mips ppc ppc-macos sparc sparc-fbsd x86 x86-fbsd"
IUSE="cdr hardened nohourlyupdate fuse xfs bash-completion git fbsplash samba
minimal autoupdate autoshutdown autoservicerestart lvmboot lvmroot sw-suspend raid
video_cards_nvidia firmware ischroot"

RDEPEND="
	sys-process/htop
	sys-apps/less
	net-misc/unison
	fuse? ( sys-fs/sshfs-fuse )
	!ischroot? (
		sys-apps/ethtool
		sys-cluster/netfs
		sys-apps/kexec-tools
		app-admin/eclean-kernel
		raid? ( sys-fs/mdadm )
		app-admin/ide-smart
		cdr? ( app-cdr/k3b )
		sys-apps/hdparm
		xfs? ( sys-fs/xfsdump )
		sys-fs/lvm2
		lvmboot? ( >=sys-boot/grub-1.98 )
		lvmroot? (
				sys-apps/busybox
				|| ( sys-kernel/dracut[dracut_modules_lvm] >=sys-kernel/dracut-036 )
				)
		sys-process/vixie-cron
		sys-apps/pciutils
		sys-apps/usbutils
		|| ( net-misc/openntpd net-misc/ntp )
		samba? ( || ( net-fs/cifs-utils net-fs/samba[client] ) )
		firmware? ( sys-kernel/linux-firmware )
		app-admin/syslog-ng
		app-admin/logrotate
		hardened? ( sys-kernel/hardened-sources sys-apps/gradm )
		sys-boot/grub
		net-misc/wakeonlan
		video_cards_nvidia? ( sys-apps/v86d )
	)
	>=app-portage/gentoolkit-0.2.1
	app-admin/sudo
	mail-client/mailx
	!minimal? (
			x11-apps/xauth
			sys-apps/moreutils
			dev-util/strace
			net-analyzer/netcat
			net-ftp/ncftp
			app-text/dos2unix
			net-dns/bind-tools 
			!ischroot? (
				www-servers/apache 
				app-antivirus/clamav 
				)
			)
	sys-process/lsof
	app-portage/layman[subversion]
	!hardened? ( 
			sys-devel/prelink
			!ischroot? (
				!sw-suspend? ( sys-kernel/gentoo-sources )
				sw-suspend? ( sys-apps/tuxonice-userui
					|| ( sys-kernel/tuxonice-sources
						sys-kernel/pf-sources ) ) )
			)
	app-misc/screen
	app-vim/gentoo-syntax
	sys-auth/pam_ldap
	sys-auth/nss_ldap
	app-editors/gvim
	git? ( dev-vcs/git )
	bash-completion? ( app-shells/bash-completion )
	"

src_install() {
	exeinto /etc/cron.hourly
	newexe "${FILESDIR}"/service-check service-check

	exeinto /etc/cron.weekly
	use !minimal && newexe "${FILESDIR}"/weekly-av-scan.cron av-scan

	exeinto /etc/cron.daily
	use !minimal && newexe "${FILESDIR}"/daily-av-update.cron av-update

	if [ -n "${UPDATETIME}" ]; then
		mkdir -p ${D}/etc/cron.d
		echo "${UPDATETIME} root /sbin/gentoo-portage-update" > ${D}/etc/cron.d/gentoo-portage-update
		exeinto /sbin
	else
		use nohourlyupdate && exeinto /etc/cron.daily
		use !nohourlyupdate && exeinto /etc/cron.hourly
	fi
	newexe "${FILESDIR}"/update.portage.cron-2 gentoo-portage-update

	exeinto /etc/portage/postsync.d/
	newexe "${FILESDIR}"/sync-distclean-exec.cron 60-portage-distclean-exec
	use !autoupdate && newexe "${FILESDIR}"/auto-download-packages 70-auto-download-package
	newexe "${FILESDIR}"/auto-update-overlays 10-auto-update-overlays
	newexe "${FILESDIR}"/write-new-updates 50-write-new-updates
	if use autoupdate ; then
		dosym /sbin/update-install /etc/portage/postsync.d/75-update-install
		if use autoshutdown ; then
			newexe "${FILESDIR}"/update-autoshutdown 99-auto-shutdown
		else
			if use autoservicerestart ; then
				exeinto /usr/libexec/scripts/auto-restart
				for f in ${FILESDIR}/restart/* ; do
					newexe ${FILESDIR}/restart/`basename $f` `basename $f`
				done
				exeinto /etc/portage/postsync.d/
				newexe "${FILESDIR}"/auto-restart-services 80-auto-restart-services
			fi
		fi
	fi

	exeinto /sbin
	newexe "${FILESDIR}"/update-install2 update-install
	newexe "${FILESDIR}"/update-kernel update-kernel
}