From 021e0c51d3e0f43b9a31e4d1f427db3b352d61ec Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Apr 2016 13:57:55 +0100 Subject: Install tmpfiles.d config to clean /var/tmp more aggresively --- virtual/miller-base/Manifest | 3 +- virtual/miller-base/files/tmpfiles-d-portage.conf | 2 + virtual/miller-base/miller-base-10.1.ebuild | 124 ++++++++++++++++++++++ virtual/miller-base/miller-base-10.ebuild | 122 --------------------- 4 files changed, 128 insertions(+), 123 deletions(-) create mode 100644 virtual/miller-base/files/tmpfiles-d-portage.conf create mode 100644 virtual/miller-base/miller-base-10.1.ebuild delete mode 100644 virtual/miller-base/miller-base-10.ebuild diff --git a/virtual/miller-base/Manifest b/virtual/miller-base/Manifest index 311cec8..18491ce 100644 --- a/virtual/miller-base/Manifest +++ b/virtual/miller-base/Manifest @@ -4,10 +4,11 @@ AUX daily-av-update.cron 31 SHA256 1b83ac59e56ffbc3ec1c0f42c3c43de2b0cf948569029 AUX service-check.openrc 28 SHA256 c15c00ba79267a7b47c73a361226f263c852f94ba3096582bb3879f82f4fcdef SHA512 486e527013f694dd543d4ac877058a3f4c45a2879c2fb82519223a4aef52446e5c370892aae2d7a75766a77e47024086ec15573d1aee131b91437ad2acf4433f WHIRLPOOL c1b4806deb1ad4963089b5fb7bc14a202e206616b9eac645f1603813f60e745cfeb2370128dbd7904f75f821262f215eae61adc729d9014c979768429e15c289 AUX service-check.systemd 54 SHA256 0b30767a9ae16c85275ce88861c8528f11f65ad52bdbb50c87e52adc41a4a888 SHA512 89bd6a5acbc99c4a6fa958dcdbd0dda09128d1ac0e50b5e312283b3dc396154fe1b5a18092994817153b80fd4a7df9ab4e86d5f958aa5ad5f2fab26303c44dc6 WHIRLPOOL 332e6780cf2b7daf2c524574c389131c7f5a889950315703da093d226a1fbec70112e70895c207c5c8f8dfe1797334dc3b129e8391a6741e464dcbb5c23a1569 AUX sync-distclean-exec.cron 60 SHA256 043df18d533148d33abe2f2cf588953b0193c4a47ea0a428e5e2d531ee4d5d0e SHA512 e8075f330b879f3888f47086e5fdd0144be7decbe264a105e5071f851065bd6eb55a22be6fb4eb90a4e3bca00e76fee79f372adc5c3a8f25660c61bd9379ab0f WHIRLPOOL f1afae03bdf094cb08d3389cf329d10debd89c73f360c0e16f686cc267eb49c1e5780bbfe78fdd8518c9cdba1cefe6849b598c9f8d5da667516d705bd650c966 +AUX tmpfiles-d-portage.conf 78 SHA256 6b6f63b38702a86782d1048e0cf54a097a6850ab74567385d4be46f04a2f9f44 SHA512 c27a474228d2aa89194ea9d9b80ec239ff45ea343e608d06d67834f853e561f1ad643a54515f8ffd70d14f27a06a94706af464a09891e0e51a7c8386107d77eb WHIRLPOOL d3b12cf9ac91c945927547ccf2addc3ff54e52630f1eae6b017c0ca88f88ebb1d79146577ea73b8580de79821cbd4895982cc1aa03c729ea327e0a4d999fac0d AUX update-autoshutdown 94 SHA256 bd42a7125c4cf5cfb013178f9562f21e8827a9879be85f3fd5445b6c50579023 SHA512 8d131120646ff1aef8403c2decb92bb9150aef9d57cb36438a42438f4573a4d52fe390d2644c423a76997fdbcdb94a7b72c1a56ecebc81937a71d7181ac71ddf WHIRLPOOL a11b2e8c0eaaea890f3aa2ecf4efc61b16e53848ffd67c9e502c4b6516c20f257e685b299b880dc0ee449ca72e26f4cf08aea75ca9da6b75c3cc0e74024403d9 AUX update-install2 626 SHA256 c1b5efaf9028e1c5d95a78fc9d7974de0d3c339ba3a0c19658ac7e92b025f8c8 SHA512 a67ca5bed3094e75c0f5a2007d63a682cbf7fbac96c07fc657f6ac55b823802cd9af56d3d94d838754ae22e04da895c26ce83a65a1f24be4e1b4b11c75aad822 WHIRLPOOL 2fb8174ac6b58a46a80fe2e3af043a79ae8e10cd72e0b71e1b0dc0eaeb4957679c8e2e0a265962fcc730502123734ff0a074299f15031ff9da4c3e3d78155bf5 AUX update-kernel 838 SHA256 5f751d3a567251f0e31134fe18fae7fd1386f73a750061e400a9e4851d1c5432 SHA512 666f0f2bbb4511a70e8b1d8722b8fdc397b46297bdea477ebc5e4c5b0d3f96ca498d90daee6de80302f96386efb7ba96fa6ffc797068fac87d653536e6528c71 WHIRLPOOL 4c9b0f04f77d0a8773358b49d09e2c602deca95a8c91eb2abdbbac9f14971acd1f3861a9d9ca55f7b594d642e08657070ce5095045276ea36310becb9a754e44 AUX update.portage.cron-2 160 SHA256 7071962974cb5ea9764a83ae7119244c6f26307bec13b962b4f8dba179e89d88 SHA512 50b93b2ab2f0fca0dfa933852a09d1d88d7c9e68c8194e70fe077f44bfab38e7460c8ab34f71d2208770aee8995de2e656985d71da33094032cd36d78d015c11 WHIRLPOOL 1586ef9bc5400319b25eae6736028bf461331de3472a4a1255642c3a6919c2d4eacf36818a11988d80daba1f63d571e319b205baa3f687ce8cf6da3c0b449dc8 AUX weekly-av-scan.cron 272 SHA256 002866cd461b9452df5aa6cf22ca76a12b4be1d918aeb379a84a09267d84a481 SHA512 725d1813222819fa3b455bb3eeee16fe22106e252138d49f83003e5ec3fdbbe9529df47a9c0d36959ad30a0e8a23e087aa7834dd3724cb9b728203e21a6de4d9 WHIRLPOOL a1c2433dfbf5aa70e9cf3f358379d6ff9776dc31582409b6f0dea98defb1d072fbc071586070330239c3be9a0d630b97f9073cf13be8cea10fce15de1c916c5f AUX write-new-updates 246 SHA256 9edd236f58b30b26de7a3791b2481446d6f5e8245763478a23a9fe3a4e5aff88 SHA512 98093601121bcabd0ca6348660a1c4c2bf0eb175a6c57b6b851c1398a5d5a4ab8d7bcd0308f9ac594ed3c1f6467a6539528a305f78fbc6c06ee5079b209174eb WHIRLPOOL 84186d65556aa9978f82460355b00cf94062d64f57ff476924cf66d619bbf9f084d560f9df3f810ac1f52e5bff000b55ffb05b21dc3cecb331b379ca8b721ada -EBUILD miller-base-10.ebuild 3357 SHA256 eacbc3ce229391f8334d394aa1243b6a2e69494608a89c460949c730b4d36c99 SHA512 f1484a431e89f7d6c97821b545fd131ff365489111abead998adcb524b59a6f1966ac763caf5d34fd0336b206107289ce8713e31d4d8a60d9ad3125f52b59a40 WHIRLPOOL 0885e7a5ebe23fd0d7c481e2eea52eeb711f5126878af9ea6334662a9118cc11d7ec2b3d3aad5d46ca5ab4ec436bf52356826d738247fe54744f74338ee8a1d5 +EBUILD miller-base-10.1.ebuild 3445 SHA256 d3d5c5d3819dbd016aa5d0e3debe35183991d74cf7881a9b268f717508d91518 SHA512 90b123fd186bd7082dc95e6d10d24619ae2525de27680fa5b2d3e4c121287733870ae65795552928185ddbecb8785d8a8fa11101f9507ce2053d18e946e51e4f WHIRLPOOL 1c53d4f6785db0806cea0f09ef7beb32f18919396a11105052e5ffbfd8ba43b81620adf65d46776c0c15493275bf2a76479e17ff7cb24d1323ba8044b7e56112 diff --git a/virtual/miller-base/files/tmpfiles-d-portage.conf b/virtual/miller-base/files/tmpfiles-d-portage.conf new file mode 100644 index 0000000..e7464b4 --- /dev/null +++ b/virtual/miller-base/files/tmpfiles-d-portage.conf @@ -0,0 +1,2 @@ +d /var/tmp/portage 0775 portage portage 1d +d /var/tmp 0775 portage portage 3d diff --git a/virtual/miller-base/miller-base-10.1.ebuild b/virtual/miller-base/miller-base-10.1.ebuild new file mode 100644 index 0000000..59e382e --- /dev/null +++ b/virtual/miller-base/miller-base-10.1.ebuild @@ -0,0 +1,124 @@ +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 systemd" + +RDEPEND=" + sys-process/htop + sys-apps/less + fuse? ( sys-fs/sshfs ) + !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 ) + autoservicerestart? ( + systemd? ( + sys-apps/autorestart + ) + ) + " + +src_install() { + exeinto /etc/cron.hourly + if use systemd ; then + newexe "${FILESDIR}"/service-check.systemd service-check + insinto /etc/tmpfiles.d + newins "${FILESDIR}/tmpfiles-d-portage.conf" "portage.conf" + else + newexe "${FILESDIR}"/service-check.openrc service-check + fi + + 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 + fi + fi + + exeinto /sbin + newexe "${FILESDIR}"/update-install2 update-install + newexe "${FILESDIR}"/update-kernel update-kernel +} diff --git a/virtual/miller-base/miller-base-10.ebuild b/virtual/miller-base/miller-base-10.ebuild deleted file mode 100644 index 8e6a106..0000000 --- a/virtual/miller-base/miller-base-10.ebuild +++ /dev/null @@ -1,122 +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 systemd" - -RDEPEND=" - sys-process/htop - sys-apps/less - fuse? ( sys-fs/sshfs ) - !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 ) - autoservicerestart? ( - systemd? ( - sys-apps/autorestart - ) - ) - " - -src_install() { - exeinto /etc/cron.hourly - if use systemd ; then - newexe "${FILESDIR}"/service-check.systemd service-check - else - newexe "${FILESDIR}"/service-check.openrc service-check - fi - - 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 - fi - fi - - exeinto /sbin - newexe "${FILESDIR}"/update-install2 update-install - newexe "${FILESDIR}"/update-kernel update-kernel -} -- cgit v1.2.3