diff options
-rw-r--r-- | virtual/miller-base/Manifest | 4 | ||||
-rwxr-xr-x | virtual/miller-base/files/service-check | 3 | ||||
-rwxr-xr-x | virtual/miller-base/files/update-kernel | 7 | ||||
-rw-r--r-- | virtual/miller-base/miller-base-9-r4.ebuild | 116 |
4 files changed, 127 insertions, 3 deletions
diff --git a/virtual/miller-base/Manifest b/virtual/miller-base/Manifest index f9743dd..033e966 100644 --- a/virtual/miller-base/Manifest +++ b/virtual/miller-base/Manifest @@ -42,10 +42,11 @@ AUX restart/transmission-da 40 RMD160 bc68f5f07b9e2cdadd10e34376be46d3959257b3 S AUX restart/udevd 26 RMD160 25c67137d8e564010bd5c92d4c1570ff9bbac345 SHA1 889e783a2744ee5abb0ba83c2d74fed2e3feb490 SHA256 e5fc5c61f9134b2adf91952b77f493e864d9200768de99437e040d3f3d4d2c81 AUX restart/unscd 27 RMD160 73e53d26fabc6f096716611fb49079eec087d5de SHA1 d66cf309641551187da932e3df93d197984451f9 SHA256 22c7ff7dba9a28bfa917e6d0728247023ecd17bcd9b4d74dccb20e493d48d376 AUX restart/vsftpd 27 RMD160 91be22938c872d12b96c8c695f9cba1c2767ed45 SHA1 016b411d34273ae75962ac4023b1c9e6c632a19a SHA256 75ecac8ca02bf650883aecdc5e8d7d4c233ad1d96d4497f99135703930c38932 +AUX service-check 28 RMD160 187e0bbd472a9e1afe76f3b8c6e16e373411b4d9 SHA1 7acd8466f32d5670d79bbf23ac1cc8b841dc9f45 SHA256 c15c00ba79267a7b47c73a361226f263c852f94ba3096582bb3879f82f4fcdef AUX sync-distclean-exec.cron 60 RMD160 b012f4963ffa84869ce9e9593f64e5e26e09cf8c SHA1 c0389c2e1e947e75910a5ff3b9b0a7a122754c76 SHA256 043df18d533148d33abe2f2cf588953b0193c4a47ea0a428e5e2d531ee4d5d0e AUX update-autoshutdown 88 RMD160 f029249c1e727d4feaa06bbdc8bac1a9e84ba178 SHA1 2f55e2283efae01ae9fa30d5ae136989257563c2 SHA256 e90d95d158222c493d4fbf8ebcd9c2927535048d97ee743fe658d47e50aa6fb6 AUX update-install2 457 RMD160 b73bac2c53533fcb0f4c931ed34548421cf72cca SHA1 e6088eb347d43d1f48968a249eb55a4cd4cb6730 SHA256 40fcd47ac532d65e0ea54712df2fc0e0ae1685cb2afd8827082d0ee5575815c7 -AUX update-kernel 582 RMD160 f75e32f0c885e24ccb078d76de96c37b392f99dc SHA1 b7a280236b11f1653a9ea65347ea041254f1b22f SHA256 07803c756715311b957a557de7fb650a59d247b8099823fc07f9808c0536f844 +AUX update-kernel 636 RMD160 3ebf5d1b4d5281afd79c8079d2dfb3a7b930a0f5 SHA1 414ace071f5944a5359e2bcc9d690ad4ac908079 SHA256 2f8d6f27f5b514267ea89e33cd56438e6b5ed537fb6fd5d624702d0720eaf89c AUX update.portage.cron 171 RMD160 c388289e78342b65d48077868f4acbe9b3b00849 SHA1 d7430ff8e906ad8d66918750c29722bfa6030c73 SHA256 394b727e294166db136d5b5c46ab0ac180952d6f20cd93b4a356a2cfc9bedf03 AUX update.portage.cron-2 159 RMD160 eada35db78d363502c4d0486cfcbc8493514562f SHA1 4be58a5f236829928865c800585cc9c811a6aad3 SHA256 a910ae7e18b6e759380f1d9e30bffa100912b3a6f1c60c69f33b9cd186d0e92c AUX weekly-av-scan.cron 232 RMD160 1eb8c0e031fc10a8299f8d00cddf46aee7dc011a SHA1 d39efdf4398a679b8a87603c51e92f01ce1e9362 SHA256 1b1e3751560d72c0e146046149084e213f8bc8f878e8cb24446be8ee45b6da28 @@ -53,3 +54,4 @@ AUX weekly-distclean-exec-eclean.cron 40 RMD160 3c0f801ebbb3e575590aa7764e5020a8 AUX weekly-distclean-exec.cron 664 RMD160 af55d070f6f442feedbfb7a324ccaa5ceff53037 SHA1 76f91d4eac90a44f3d9e636640279d1754f2739e SHA256 98808e9a3402beea0f023db32cd09df6195d608256672e01d7f05e21536af141 AUX write-new-updates 123 RMD160 bd8177f3baf9287676389a8c24d3419a995400bb SHA1 2812937b3a746c919fe5bea90b3b6c9930d203f0 SHA256 98d35a82d75ed3e4a7b9857c57ab41f3cbf60a82dc255b7c62d372e0ed410d84 EBUILD miller-base-9-r3.ebuild 3388 RMD160 7d5ad9126823a56f816611894a45a5a937ff171e SHA1 d04db8481c909b2cee60dccb357bae719de5c55d SHA256 b770d5cd7b997874207a54466bb8e10c8eda85aa8ee91f34c5029ef8077d1604 +EBUILD miller-base-9-r4.ebuild 3465 RMD160 d0b9594df53f411b74a7d8d36806d165c6c28c58 SHA1 6e565c84603ca75a52d576fdcf60862db4d32638 SHA256 74157d028240406f7aeda52bb1b1384bda996cdf6997366ffcf8a4842b8f86e2 diff --git a/virtual/miller-base/files/service-check b/virtual/miller-base/files/service-check new file mode 100755 index 0000000..b872698 --- /dev/null +++ b/virtual/miller-base/files/service-check @@ -0,0 +1,3 @@ +#!/bin/bash + +rc-status -Cac diff --git a/virtual/miller-base/files/update-kernel b/virtual/miller-base/files/update-kernel index 2c6399e..13baa35 100755 --- a/virtual/miller-base/files/update-kernel +++ b/virtual/miller-base/files/update-kernel @@ -5,10 +5,13 @@ cd /usr/src/linux || ( echo "No kernel directory"; exit 1 ) make -j2 || ( echo "Make failed" ; exit 1 ) make modules -j2 || ( echo "Make modules failed" ; exit 1 ) make modules_install -j2 || ( echo "Make modules install failed" ; exit 1 ) -qfile /lib/modules && emerge -q1 /lib/modules || exit 1 +if qfile /lib/modules ; then + emerge -q1 /lib/modules || exit 1 +fi make install -j2 || ( echo "Make install failed" ; exit 1 ) if [ -x /usr/sbin/dracut ] ; then KV=$(head /boot/config -n3 | tail -n1 | cut -d ' ' -f 3) - /usr/sbin/dracut -H -f --lzma /boot/initrd-$KV.img $KV + /usr/sbin/dracut -H -f --lzma /boot/initramfs-$KV.img $KV fi +grub2-mkconfig -o /boot/grub2/grub.cfg diff --git a/virtual/miller-base/miller-base-9-r4.ebuild b/virtual/miller-base/miller-base-9-r4.ebuild new file mode 100644 index 0000000..ce01767 --- /dev/null +++ b/virtual/miller-base/miller-base-9-r4.ebuild @@ -0,0 +1,116 @@ +DESCRIPTION="Virtual for Miller servers" + +EAPI="2" +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 +minimal autoupdate autoshutdown autoservicerestart lvmboot lvmroot sw-suspend raid +video_cards_nvidia" + +DEPEND=" + sys-apps/less + app-portage/eclean-kernel + !minimal? ( www-servers/apache ) + raid? ( sys-fs/mdadm ) + app-admin/ide-smart + sys-cluster/glusterfs + sys-cluster/netfs + sys-apps/ethtool + cdr? ( app-cdr/k3b ) + sys-apps/hdparm + !minimal? ( net-dns/bind-tools ) + fuse? ( sys-fs/sshfs-fuse ) + !minimal? ( || ( + net-fs/mount-cifs + net-fs/samba-client + net-fs/samba[client] ) ) + xfs? ( sys-fs/xfsdump ) + sys-fs/lvm2 + lvmboot? ( >=sys-boot/grub-1.98 ) + lvmroot? ( + sys-apps/busybox + sys-kernel/dracut[dracut_modules_lvm] + ) + video_cards_nvidia? ( sys-apps/v86d ) + >=app-portage/gentoolkit-0.2.1 + sys-process/vixie-cron + !minimal? ( virtual/eject ) + app-admin/sudo + mail-client/mailx + sys-apps/pciutils + !minimal? ( app-dicts/myspell-en ) + net-misc/ntp + !minimal? ( net-analyzer/netcat ) + !minimal? ( net-ftp/ncftp ) + !minimal? ( x11-apps/xauth ) + sys-process/lsof + app-portage/layman[subversion] + app-admin/syslog-ng + app-admin/logrotate + !minimal? ( app-antivirus/clamav ) + !hardened? ( + !sw-suspend? ( sys-kernel/gentoo-sources ) + sw-suspend? ( sys-apps/tuxonice-userui + || ( sys-kernel/tuxonice-sources + sys-kernel/pf-sources ) ) ) + hardened? ( sys-kernel/hardened-sources =sys-apps/gradm-2.2.2* ) + !minimal? ( || + ( app-text/dos2unix <app-text/unix2dos-5 ) + ( >=app-text/dos2unix-5 !app-text/unix2dos ) ) + app-misc/screen + sys-boot/grub + app-vim/gentoo-syntax + sys-auth/pam_ldap + sys-auth/nss_ldap + app-editors/gvim + git? ( dev-vcs/git ) + !minimal? ( dev-util/strace ) + bash-completion? ( app-shells/bash-completion ) + net-misc/wakeonlan + " + +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 +} |