From 166e5b428d8196100b170178e4255de8f1c7ad20 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 14 Feb 2015 14:49:29 +0000 Subject: Update virus scan script to work with new multi-repo configs --- virtual/miller-base/files/weekly-av-scan.cron | 2 +- virtual/miller-base/miller-base-9-r10.ebuild | 123 -------------------------- virtual/miller-base/miller-base-9-r11.ebuild | 123 ++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 124 deletions(-) mode change 100644 => 100755 virtual/miller-base/files/weekly-av-scan.cron delete mode 100644 virtual/miller-base/miller-base-9-r10.ebuild create mode 100644 virtual/miller-base/miller-base-9-r11.ebuild (limited to 'virtual/miller-base') diff --git a/virtual/miller-base/files/weekly-av-scan.cron b/virtual/miller-base/files/weekly-av-scan.cron old mode 100644 new mode 100755 index 038dda4..df442f4 --- a/virtual/miller-base/files/weekly-av-scan.cron +++ b/virtual/miller-base/files/weekly-av-scan.cron @@ -3,6 +3,6 @@ eval $(emerge --info -v | grep '^[A-Z_]\+="[^"]*"$') nice clamscan -ri --cross-fs=no \ - --exclude-dir=${PORTDIR} \ --exclude-dir=${DISTDIR} \ + $(emerge --info | sed -ne 's/\s\+location:\s\+\(.*\)/--exclude-dir="\1"/p') \ $(mount | grep ^/dev/ | sort -u -k1,1 | cut -d ' ' -f 3 | sort) diff --git a/virtual/miller-base/miller-base-9-r10.ebuild b/virtual/miller-base/miller-base-9-r10.ebuild deleted file mode 100644 index ee15e9e..0000000 --- a/virtual/miller-base/miller-base-9-r10.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -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[git] - !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 -} diff --git a/virtual/miller-base/miller-base-9-r11.ebuild b/virtual/miller-base/miller-base-9-r11.ebuild new file mode 100644 index 0000000..ee15e9e --- /dev/null +++ b/virtual/miller-base/miller-base-9-r11.ebuild @@ -0,0 +1,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[git] + !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 +} -- cgit v1.2.3