From 2c8d064b367a44723b9b557fb1edca59387edf49 Mon Sep 17 00:00:00 2001 From: Wolfram Schlich Date: Thu, 22 Aug 2013 07:45:52 +0200 Subject: added all ebuilds from my old svn repository --- app-admin/chpwdfile/Manifest | 8 + app-admin/chpwdfile/chpwdfile-0.24.ebuild | 26 + app-admin/chpwdfile/files/digest-chpwdfile-0.24 | 3 + app-admin/grsecurity-scripts/Manifest | 27 + .../files/digest-grsecurity-scripts-1 | 0 app-admin/grsecurity-scripts/files/grsecurity-rbac | 47 + .../files/grsecurity-rbac-learning | 72 + .../grsecurity-scripts/files/grsecurity-sysctl | 34 + .../files/sample-kernel-config-pax-grsec.txt | 149 ++ app-admin/grsecurity-scripts/files/sysctl.conf | 88 + .../grsecurity-scripts/grsecurity-scripts-1.ebuild | 84 + app-admin/grub-scripts/ChangeLog | 8 + app-admin/grub-scripts/Manifest | 5 + app-admin/grub-scripts/files/grub-md5-crypt.sh | 6 + app-admin/grub-scripts/files/grub-set-default | 140 ++ app-admin/grub-scripts/files/grub.conf | 46 + app-admin/grub-scripts/grub-scripts-1.ebuild | 40 + app-admin/lvm-snapshot-backup-wrapper/ChangeLog | 23 + app-admin/lvm-snapshot-backup-wrapper/Manifest | 4 + .../lvm-snapshot-backup-wrapper-2-r2.ebuild | 35 + app-admin/lvm-snapshot-backup-wrapper/metadata.xml | 15 + app-admin/lvm-snaptool/ChangeLog | 25 + app-admin/lvm-snaptool/Manifest | 4 + app-admin/lvm-snaptool/lvm-snaptool-1.4-r1.ebuild | 32 + app-admin/lvm-snaptool/metadata.xml | 10 + app-admin/mon/Manifest | 24 + app-admin/mon/files/digest-mon-1.2.0 | 3 + app-admin/mon/files/mon-1.2.0-sendmail.patch | 36 + app-admin/mon/files/mon-1.2.0-syslog.patch | 18 + app-admin/mon/files/mon.cf | 34 + app-admin/mon/files/mon.init | 32 + app-admin/mon/mon-1.2.0.ebuild | 68 + app-admin/pwman/ChangeLog | 10 + app-admin/pwman/Manifest | 3 + app-admin/pwman/pwman-0.3.9.ebuild | 22 + app-admin/pwman3/Manifest | 8 + app-admin/pwman3/files/digest-pwman3-0.0.5 | 3 + app-admin/pwman3/pwman3-0.0.5.ebuild | 25 + app-admin/pwsafe/Manifest | 8 + app-admin/pwsafe/files/digest-pwsafe-0.2.0 | 3 + app-admin/pwsafe/pwsafe-0.2.0.ebuild | 23 + app-admin/syslog-ng/ChangeLog | 40 + app-admin/syslog-ng/Manifest | 11 + app-admin/syslog-ng/files/syslog-ng.conf | 505 +++++ app-admin/syslog-ng/files/syslog-ng.conf-3.0 | 513 +++++ app-admin/syslog-ng/files/syslog-ng.confd | 6 + app-admin/syslog-ng/files/syslog-ng.init | 62 + app-admin/syslog-ng/files/syslog-ng.logrotate | 42 + .../syslog-ng/files/syslog-ng.remote.current.cron | 11 + app-admin/syslog-ng/syslog-ng-2.1.4.ebuild | 113 ++ app-admin/syslog-ng/syslog-ng-3.0.4-r100.ebuild | 129 ++ app-antivirus/antivir-core/ChangeLog | 16 + app-antivirus/antivir-core/Manifest | 7 + .../antivir-core/antivir-core-2.1.12_p19.ebuild | 206 ++ .../antivir-core/files/2.1.12_p19/avupdater.conf | 26 + app-antivirus/antivir-core/metadata.xml | 10 + .../antivir-internet-update-manager/ChangeLog | 17 + .../antivir-internet-update-manager/Manifest | 6 + ...ntivir-internet-update-manager-2.4.0.6.3.ebuild | 234 +++ .../files/2.4.0.6.3/antivir-ium.init.d | 36 + .../files/2.4.0.6.3/ium.conf | 68 + .../files/2.4.0.6.3/mirrorconfig.xml | 44 + app-antivirus/antivir-mailgate/ChangeLog | 25 + app-antivirus/antivir-mailgate/Manifest | 12 + .../antivir-mailgate-2.1.4_p7-r1.ebuild | 336 ++++ .../antivir-mailgate-3.0.0_p14.ebuild | 368 ++++ .../files/2.1.4_p7/antivir-mailgate.init.d | 46 + .../2.1.4_p7/avmailgate.conf.diff.postfix.bz2 | Bin 0 -> 5441 bytes .../antivir-mailgate/files/2.1.4_p7/avupdater.conf | 26 + .../files/3.0.0_p14/antivir-mailgate.initd | 44 + .../3.0.0_p14/avmailgate-scanner.conf.diff.bz2 | Bin 0 -> 739 bytes .../3.0.0_p14/avmailgate.conf.diff.postfix.bz2 | Bin 0 -> 4956 bytes app-antivirus/antivir-mailgate/metadata.xml | 10 + app-antivirus/antivir-savapi/ChangeLog | 15 + app-antivirus/antivir-savapi/Manifest | 12 + .../antivir-savapi/antivir-savapi-3.0.4_p32.ebuild | 154 ++ .../antivir-savapi/antivir-savapi-3.0.5.17.ebuild | 144 ++ .../files/3.0.4_p32/antivir-savapi.conf | 149 ++ .../files/3.0.4_p32/antivir-savapi.initd | 59 + .../antivir-savapi/files/3.0.4_p32/avupdate.conf | 61 + .../files/3.0.5.17/antivir-savapi.conf | 149 ++ .../files/3.0.5.17/antivir-savapi.initd | 59 + .../antivir-savapi/files/3.0.5.17/avupdate.conf | 61 + app-antivirus/antivir-savapi/metadata.xml | 10 + app-antivirus/antivir-webgate/ChangeLog | 12 + app-antivirus/antivir-webgate/Manifest | 6 + .../antivir-webgate-1.3.0_p12.ebuild | 195 ++ .../files/1.3.0_p12/antivir-webgate.init.d | 46 + .../antivir-webgate/files/1.3.0_p12/avwebgate.conf | 346 ++++ app-antivirus/antivir-webgate/metadata.xml | 10 + app-antivirus/skyldav/ChangeLog | 19 + app-antivirus/skyldav/Manifest | 5 + .../skyldav/files/skyldav-0.2_rc3-conf.patch | 20 + .../skyldav/files/skyldav-0.2_rc3-examples.patch | 12 + .../skyldav/files/skyldav-0.2_rc3-openlog.patch | 12 + .../skyldav/files/skyldav-0.2_rc3-sbin.patch | 19 + .../files/skyldav-0.2_rc3_p20130816-syslog.patch | 24 + ...v-0.2_rc3_p20130817-disable-skyldavnotify.patch | 362 ++++ .../files/skyldav-0.2_rc3_p20130821-examples.patch | 11 + app-antivirus/skyldav/files/skyldav.confd | 11 + app-antivirus/skyldav/files/skyldav.initd | 26 + app-antivirus/skyldav/metadata.xml | 12 + app-antivirus/skyldav/skyldav-0.2_rc3.ebuild | 54 + .../skyldav/skyldav-0.2_rc3_p20130816.ebuild | 55 + .../skyldav/skyldav-0.2_rc3_p20130817-r1.ebuild | 57 + .../skyldav/skyldav-0.2_rc3_p20130817.ebuild | 54 + .../skyldav/skyldav-0.2_rc3_p20130821-r1.ebuild | 64 + .../skyldav/skyldav-0.2_rc3_p20130821.ebuild | 61 + app-backup/bacula/ChangeLog | 20 + app-backup/bacula/Manifest | 21 + app-backup/bacula/bacula-5.0.0.ebuild | 485 +++++ app-backup/bacula/bacula-5.0.1-r1.ebuild | 492 +++++ app-backup/bacula/bacula-5.0.1.ebuild | 498 +++++ app-backup/bacula/files/5.0.0/bacula-dir.confd | 17 + app-backup/bacula/files/5.0.0/bacula-dir.initd | 25 + app-backup/bacula/files/5.0.0/bacula-fd.confd | 8 + app-backup/bacula/files/5.0.0/bacula-fd.initd | 22 + app-backup/bacula/files/5.0.0/bacula-sd.confd | 11 + app-backup/bacula/files/5.0.0/bacula-sd.initd | 22 + .../files/5.0.1/bacula-5.0.1-as-needed.patch | 33 + .../bacula/files/5.0.1/bacula-5.0.1-ncurses.patch | 39 + app-backup/bacula/files/5.0.1/bacula-dir.confd | 17 + app-backup/bacula/files/5.0.1/bacula-dir.initd | 25 + app-backup/bacula/files/5.0.1/bacula-fd.confd | 8 + app-backup/bacula/files/5.0.1/bacula-fd.initd | 22 + app-backup/bacula/files/5.0.1/bacula-sd.confd | 11 + app-backup/bacula/files/5.0.1/bacula-sd.initd | 22 + app-backup/bacula/metadata.xml | 21 + app-cdr/lacie-lightscribe-labeler/Manifest | 12 + .../files/digest-lacie-lightscribe-labeler-1.0.6 | 3 + .../files/lacie-lightscribe-labeler.desktop | 9 + .../lacie-lightscribe-labeler-1.0.6.ebuild | 74 + app-cdr/lightscribe-simplelabeler/Manifest | 12 + .../digest-lightscribe-simplelabeler-1.4.128.1 | 3 + .../files/lightscribe-simplelabeler.desktop | 9 + .../lightscribe-simplelabeler-1.4.128.1.ebuild | 128 ++ app-cdr/lightscribe/Manifest | 18 + .../lightscribe/files/digest-lightscribe-1.4.142.1 | 6 + .../lightscribe/files/digest-lightscribe-1.8.13.1 | 6 + app-cdr/lightscribe/lightscribe-1.4.142.1.ebuild | 73 + app-cdr/lightscribe/lightscribe-1.8.13.1.ebuild | 73 + app-emulation/xen-tools/ChangeLog | 8 + app-emulation/xen-tools/Manifest | 12 + .../xen-tools/files/xen-consoles.logrotate | 5 + .../xen-tools-3.1.0-xen-detect-nopie-fix.patch | 11 + .../xen-tools-3.1.3-network-bridge-broadcast.patch | 11 + .../files/xen-tools-3.2.1-qemu-nodocs.patch | 36 + app-emulation/xen-tools/files/xend.initd-r2 | 71 + .../xen-tools/files/xendomains-screen.confd | 15 + app-emulation/xen-tools/files/xendomains.confd | 9 + app-emulation/xen-tools/files/xendomains.initd-r1 | 117 ++ app-emulation/xen-tools/metadata.xml | 18 + app-emulation/xen-tools/xen-tools-3.2.3-r1.ebuild | 223 ++ app-emulation/xen/Manifest | 3 + app-emulation/xen/metadata.xml | 14 + app-emulation/xen/xen-3.2.3.ebuild | 92 + app-laptop/acpi4asus/Manifest | 2 + app-laptop/acpi4asus/acpi4asus-9999.ebuild | 73 + app-laptop/acpi4asus/files/digest-acpi4asus-9999 | 0 app-laptop/acpi4asus/files/kernel23-fix.patch | 23 + app-misc/execwrap/Manifest | 2 + app-misc/execwrap/execwrap-0.5.ebuild | 76 + app-misc/gen-auth/ChangeLog | 8 + app-misc/gen-auth/Manifest | 3 + app-misc/gen-auth/gen-auth-20060620.ebuild | 27 + app-misc/klock/Manifest | 8 + app-misc/klock/files/digest-klock-1 | 3 + app-misc/klock/klock-1.ebuild | 22 + app-shells/bashinator/ChangeLog | 30 + app-shells/bashinator/Manifest | 10 + app-shells/bashinator/bashinator-0.3.1.ebuild | 27 + app-shells/bashinator/bashinator-0.3.ebuild | 27 + app-shells/bashinator/bashinator-0.4.ebuild | 28 + app-shells/bashinator/bashinator-0.5.ebuild | 28 + app-shells/bashinator/metadata.xml | 10 + app-shells/pdsh/ChangeLog | 20 + app-shells/pdsh/Manifest | 4 + .../pdsh/files/pdsh-2.18-unbundle-libtool.patch | 56 + app-shells/pdsh/pdsh-2.18-r9999.ebuild | 63 + app-text/multitail/Manifest | 8 + app-text/multitail/files/digest-multitail-4.2.0 | 3 + app-text/multitail/multitail-4.2.0.ebuild | 31 + dev-libs/eventlog/Manifest | 8 + dev-libs/eventlog/eventlog-0.2.6_p20071204.ebuild | 31 + .../eventlog/files/digest-eventlog-0.2.6_p20071204 | 3 + dev-perl/Exception-Class-DBI/ChangeLog | 8 + .../Exception-Class-DBI-1.00.ebuild | 20 + dev-perl/Exception-Class-DBI/Manifest | 4 + dev-perl/Exception-Class-DBI/metadata.xml | 10 + dev-perl/Exception-Class-TryCatch/ChangeLog | 8 + .../Exception-Class-TryCatch-1.12.ebuild | 20 + dev-perl/Exception-Class-TryCatch/Manifest | 4 + dev-perl/Exception-Class-TryCatch/metadata.xml | 10 + dev-perl/Math-Calc-Units/ChangeLog | 8 + dev-perl/Math-Calc-Units/Manifest | 4 + .../Math-Calc-Units/Math-Calc-Units-1.06.ebuild | 17 + dev-perl/Math-Calc-Units/metadata.xml | 10 + dev-perl/Nagios-Plugin/ChangeLog | 8 + dev-perl/Nagios-Plugin/Manifest | 4 + dev-perl/Nagios-Plugin/Nagios-Plugin-0.27.ebuild | 21 + dev-perl/Nagios-Plugin/metadata.xml | 10 + licenses/AVIRA-AntiVir | 354 ++++ mail-filter/dkimproxy/ChangeLog | 8 + mail-filter/dkimproxy/Manifest | 7 + mail-filter/dkimproxy/dkimproxy-1.0.1.ebuild | 54 + mail-filter/dkimproxy/dkimproxy-1.1.ebuild | 54 + mail-filter/dkimproxy/files/dkimproxy.init | 39 + mail-filter/dkimproxy/metadata.xml | 10 + mail-filter/dovecot-antispam/ChangeLog | 12 + mail-filter/dovecot-antispam/Manifest | 2 + .../dovecot-antispam/dovecot-antispam-9999.ebuild | 80 + mail-filter/sbd-proxy/ChangeLog | 14 + mail-filter/sbd-proxy/Manifest | 9 + mail-filter/sbd-proxy/files/sbd-proxy.confd | 5 + mail-filter/sbd-proxy/files/sbd-proxy.initd | 33 + mail-filter/sbd-proxy/sbd-proxy-1.0.ebuild | 49 + mail-filter/sbd-proxy/sbd-proxy-1.1.ebuild | 49 + mail-filter/sbd-proxy/sbd-proxy-1.2.ebuild | 49 + mail-mta/qpsmtpd/Manifest | 10 + .../files/qpsmtpd-0.40-badhelo_disconnect.patch | 11 + .../files/qpsmtpd-0.40-badrcptto_allowrelay.patch | 10 + .../qpsmtpd/files/qpsmtpd-0.40-clamd_conf.patch | 12 + mail-mta/qpsmtpd/files/qpsmtpd.confd | 25 + mail-mta/qpsmtpd/files/qpsmtpd.envd | 2 + mail-mta/qpsmtpd/files/qpsmtpd.initd | 60 + mail-mta/qpsmtpd/files/qpsmtpd.xinetd | 20 + mail-mta/qpsmtpd/metadata.xml | 8 + mail-mta/qpsmtpd/qpsmtpd-0.82.ebuild | 84 + net-analyzer/nagcon/ChangeLog | 8 + net-analyzer/nagcon/Manifest | 4 + net-analyzer/nagcon/files/nagcon-0.0.30.patch | 56 + net-analyzer/nagcon/nagcon-0.0.30.ebuild | 30 + net-analyzer/nagios-check_dell_warranty/ChangeLog | 8 + net-analyzer/nagios-check_dell_warranty/Manifest | 4 + .../nagios-check_dell_warranty/metadata.xml | 10 + .../nagios-check_dell_warranty-1.1.ebuild | 29 + net-analyzer/nagios-check_drbd/ChangeLog | 8 + net-analyzer/nagios-check_drbd/Manifest | 4 + net-analyzer/nagios-check_drbd/metadata.xml | 10 + .../nagios-check_drbd-0.5.2.ebuild | 31 + net-analyzer/nagios-check_heartbeat_link/ChangeLog | 20 + net-analyzer/nagios-check_heartbeat_link/Manifest | 5 + .../nagios-check_heartbeat_link-listnodes.patch | 11 + .../nagios-check_heartbeat_link/metadata.xml | 10 + .../nagios-check_heartbeat_link-0.1.1-r2.ebuild | 35 + net-analyzer/nagios-check_ilo2_health/ChangeLog | 8 + net-analyzer/nagios-check_ilo2_health/Manifest | 4 + net-analyzer/nagios-check_ilo2_health/metadata.xml | 10 + .../nagios-check_ilo2_health-1.41.ebuild | 33 + net-analyzer/nagios-check_ipmi_chassis/ChangeLog | 8 + net-analyzer/nagios-check_ipmi_chassis/Manifest | 4 + .../nagios-check_ipmi_chassis/metadata.xml | 10 + .../nagios-check_ipmi_chassis-1.ebuild | 30 + net-analyzer/nagios-check_md_raid/ChangeLog | 8 + net-analyzer/nagios-check_md_raid/Manifest | 3 + .../nagios-check_md_raid-0.7.2.ebuild | 29 + net-analyzer/nagios-check_megaraid_sas/ChangeLog | 22 + net-analyzer/nagios-check_megaraid_sas/Manifest | 4 + .../check_megaraid_sas-3-megacli-compat.patch | 20 + .../nagios-check_megaraid_sas-3-r1.ebuild | 34 + net-analyzer/nagios-check_mpt/ChangeLog | 8 + net-analyzer/nagios-check_mpt/Manifest | 4 + .../nagios-check_mpt/files/check_mpt-0.1-lib.patch | 12 + .../nagios-check_mpt/nagios-check_mpt-0.1.ebuild | 35 + net-analyzer/nagios-check_raid/ChangeLog | 8 + net-analyzer/nagios-check_raid/Manifest | 4 + net-analyzer/nagios-check_raid/metadata.xml | 10 + .../nagios-check_raid/nagios-check_raid-2.0.ebuild | 30 + net-analyzer/nagios-check_swraid/ChangeLog | 8 + net-analyzer/nagios-check_swraid/Manifest | 3 + .../nagios-check_swraid-0.3.ebuild | 29 + net-analyzer/nagios-check_xen/ChangeLog | 8 + net-analyzer/nagios-check_xen/Manifest | 4 + net-analyzer/nagios-check_xen/metadata.xml | 10 + .../nagios-check_xen/nagios-check_xen-0.9.1.ebuild | 33 + net-analyzer/nagios-plugins-extra/ChangeLog | 20 + net-analyzer/nagios-plugins-extra/Manifest | 3 + .../nagios-plugins-extra-4.ebuild | 36 + net-mail/gnarwl/ChangeLog | 11 + net-mail/gnarwl/Manifest | 4 + net-mail/gnarwl/gnarwl-3.6.ebuild | 58 + net-mail/gnarwl/metadata.xml | 10 + net-misc/unison/Manifest | 10 + net-misc/unison/files/digest-unison-2.27.29 | 9 + net-misc/unison/unison-2.27.29.ebuild | 64 + net-wireless/madwifi-ng-tools/ChangeLog | 8 + net-wireless/madwifi-ng-tools/Manifest | 4 + .../madwifi-ng-tools-3941_p20090205.ebuild | 65 + net-wireless/madwifi-ng-tools/metadata.xml | 10 + net-wireless/madwifi-ng/ChangeLog | 8 + net-wireless/madwifi-ng/Manifest | 4 + .../madwifi-ng/madwifi-ng-3941_p20090205.ebuild | 93 + net-wireless/madwifi-ng/metadata.xml | 10 + net-www/awstats/Manifest | 4 + net-www/awstats/awstats-6.8.ebuild | 138 ++ net-www/awstats/files/awstats-6.3-gentoo.diff | 32 + net-www/awstats/files/postinst-en-r1.txt | 67 + profiles/use.local.desc | 13 + sys-apps/makedev-gentoo/ChangeLog | 8 + sys-apps/makedev-gentoo/Manifest | 4 + sys-apps/makedev-gentoo/files/MAKEDEV | 2123 ++++++++++++++++++++ sys-apps/makedev-gentoo/makedev-gentoo-1.ebuild | 19 + sys-apps/makedev-gentoo/metadata.xml | 10 + sys-apps/memtest86+/Manifest | 5 + .../files/memtest86+-1.70-gnu_hash.patch | 11 + .../files/memtest86+-2.01-hardcoded_cc.patch | 29 + .../files/memtest86+-2.01-serial-baud.patch | 12 + sys-apps/memtest86+/memtest86+-2.01.ebuild | 70 + sys-block/areca-cli/ChangeLog | 12 + sys-block/areca-cli/Manifest | 6 + .../areca-cli/areca-cli-1.72.250_p70306.ebuild | 44 + .../areca-cli/areca-cli-1.80a_p71012_beta.ebuild | 44 + sys-block/areca-http/ChangeLog | 8 + sys-block/areca-http/Manifest | 5 + .../areca-http/areca-http-1.81.250_p70306.ebuild | 42 + .../areca-http/areca-http-1.82_p70911_beta.ebuild | 42 + sys-block/hdrecover/ChangeLog | 7 + sys-block/hdrecover/Manifest | 3 + sys-block/hdrecover/hdrecover-0.2.ebuild | 22 + sys-cluster/drbd-kernel/ChangeLog | 28 + sys-cluster/drbd-kernel/Manifest | 6 + sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild | 53 + .../drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild | 54 + ...12855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 | Bin 0 -> 8008 bytes ...nel-8.0.0-scripts.adjust_drbd_config_h.sh.patch | 23 + sys-cluster/drbd/ChangeLog | 24 + sys-cluster/drbd/Manifest | 6 + sys-cluster/drbd/drbd-8.2.7.ebuild | 57 + sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild | 63 + sys-cluster/drbd/files/drbd-8.0.rc | 156 ++ ...12855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 | Bin 0 -> 8008 bytes sys-cluster/drbdlinks/ChangeLog | 11 + sys-cluster/drbdlinks/Manifest | 6 + sys-cluster/drbdlinks/drbdlinks-1.12.ebuild | 38 + sys-cluster/drbdlinks/drbdlinks-1.15.ebuild | 38 + sys-cluster/drbdlinks/files/drbdlinks-init | 41 + sys-cluster/heartbeat-scripts/ChangeLog | 24 + sys-cluster/heartbeat-scripts/Manifest | 3 + .../heartbeat-scripts/heartbeat-scripts-4.ebuild | 38 + sys-cluster/heartbeat/ChangeLog | 87 + sys-cluster/heartbeat/Manifest | 14 + .../files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch | 110 + .../files/heartbeat-2.1.3-leapyear-rewrite.patch | 60 + .../heartbeat/files/heartbeat-2.1.3-leapyear.patch | 13 + .../files/heartbeat-2.1.3-lrm-op_status.patch | 14 + .../files/heartbeat-2.1.3-lrmadmin-cts.patch | 12 + .../files/heartbeat-2.1.3-nocrm-dopd.patch | 10 + sys-cluster/heartbeat/files/heartbeat.init-r2 | 133 ++ sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild | 232 +++ sys-cluster/heartbeat/heartbeat-2.1.4.ebuild | 202 ++ sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild | 180 ++ sys-cluster/pacemaker/ChangeLog | 30 + sys-cluster/pacemaker/Manifest | 5 + sys-cluster/pacemaker/pacemaker-0.6.4.ebuild | 69 + sys-cluster/pacemaker/pacemaker-0.6.5.ebuild | 69 + sys-kernel/hardened-sources/Manifest | 4 + .../files/digest-hardened-sources-2.6.22-r8 | 9 + .../hardened-sources-2.6.22-r8.ebuild | 21 + 358 files changed, 17212 insertions(+) create mode 100644 app-admin/chpwdfile/Manifest create mode 100644 app-admin/chpwdfile/chpwdfile-0.24.ebuild create mode 100644 app-admin/chpwdfile/files/digest-chpwdfile-0.24 create mode 100644 app-admin/grsecurity-scripts/Manifest create mode 100644 app-admin/grsecurity-scripts/files/digest-grsecurity-scripts-1 create mode 100755 app-admin/grsecurity-scripts/files/grsecurity-rbac create mode 100755 app-admin/grsecurity-scripts/files/grsecurity-rbac-learning create mode 100755 app-admin/grsecurity-scripts/files/grsecurity-sysctl create mode 100644 app-admin/grsecurity-scripts/files/sample-kernel-config-pax-grsec.txt create mode 100644 app-admin/grsecurity-scripts/files/sysctl.conf create mode 100644 app-admin/grsecurity-scripts/grsecurity-scripts-1.ebuild create mode 100644 app-admin/grub-scripts/ChangeLog create mode 100644 app-admin/grub-scripts/Manifest create mode 100755 app-admin/grub-scripts/files/grub-md5-crypt.sh create mode 100755 app-admin/grub-scripts/files/grub-set-default create mode 100644 app-admin/grub-scripts/files/grub.conf create mode 100644 app-admin/grub-scripts/grub-scripts-1.ebuild create mode 100644 app-admin/lvm-snapshot-backup-wrapper/ChangeLog create mode 100644 app-admin/lvm-snapshot-backup-wrapper/Manifest create mode 100644 app-admin/lvm-snapshot-backup-wrapper/lvm-snapshot-backup-wrapper-2-r2.ebuild create mode 100644 app-admin/lvm-snapshot-backup-wrapper/metadata.xml create mode 100644 app-admin/lvm-snaptool/ChangeLog create mode 100644 app-admin/lvm-snaptool/Manifest create mode 100644 app-admin/lvm-snaptool/lvm-snaptool-1.4-r1.ebuild create mode 100644 app-admin/lvm-snaptool/metadata.xml create mode 100644 app-admin/mon/Manifest create mode 100644 app-admin/mon/files/digest-mon-1.2.0 create mode 100644 app-admin/mon/files/mon-1.2.0-sendmail.patch create mode 100644 app-admin/mon/files/mon-1.2.0-syslog.patch create mode 100644 app-admin/mon/files/mon.cf create mode 100644 app-admin/mon/files/mon.init create mode 100644 app-admin/mon/mon-1.2.0.ebuild create mode 100644 app-admin/pwman/ChangeLog create mode 100644 app-admin/pwman/Manifest create mode 100644 app-admin/pwman/pwman-0.3.9.ebuild create mode 100644 app-admin/pwman3/Manifest create mode 100644 app-admin/pwman3/files/digest-pwman3-0.0.5 create mode 100644 app-admin/pwman3/pwman3-0.0.5.ebuild create mode 100644 app-admin/pwsafe/Manifest create mode 100644 app-admin/pwsafe/files/digest-pwsafe-0.2.0 create mode 100644 app-admin/pwsafe/pwsafe-0.2.0.ebuild create mode 100644 app-admin/syslog-ng/ChangeLog create mode 100644 app-admin/syslog-ng/Manifest create mode 100644 app-admin/syslog-ng/files/syslog-ng.conf create mode 100644 app-admin/syslog-ng/files/syslog-ng.conf-3.0 create mode 100644 app-admin/syslog-ng/files/syslog-ng.confd create mode 100644 app-admin/syslog-ng/files/syslog-ng.init create mode 100644 app-admin/syslog-ng/files/syslog-ng.logrotate create mode 100755 app-admin/syslog-ng/files/syslog-ng.remote.current.cron create mode 100644 app-admin/syslog-ng/syslog-ng-2.1.4.ebuild create mode 100644 app-admin/syslog-ng/syslog-ng-3.0.4-r100.ebuild create mode 100644 app-antivirus/antivir-core/ChangeLog create mode 100644 app-antivirus/antivir-core/Manifest create mode 100644 app-antivirus/antivir-core/antivir-core-2.1.12_p19.ebuild create mode 100755 app-antivirus/antivir-core/files/2.1.12_p19/avupdater.conf create mode 100644 app-antivirus/antivir-core/metadata.xml create mode 100644 app-antivirus/antivir-internet-update-manager/ChangeLog create mode 100644 app-antivirus/antivir-internet-update-manager/Manifest create mode 100644 app-antivirus/antivir-internet-update-manager/antivir-internet-update-manager-2.4.0.6.3.ebuild create mode 100755 app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d create mode 100644 app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/ium.conf create mode 100644 app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/mirrorconfig.xml create mode 100644 app-antivirus/antivir-mailgate/ChangeLog create mode 100644 app-antivirus/antivir-mailgate/Manifest create mode 100644 app-antivirus/antivir-mailgate/antivir-mailgate-2.1.4_p7-r1.ebuild create mode 100644 app-antivirus/antivir-mailgate/antivir-mailgate-3.0.0_p14.ebuild create mode 100755 app-antivirus/antivir-mailgate/files/2.1.4_p7/antivir-mailgate.init.d create mode 100644 app-antivirus/antivir-mailgate/files/2.1.4_p7/avmailgate.conf.diff.postfix.bz2 create mode 100755 app-antivirus/antivir-mailgate/files/2.1.4_p7/avupdater.conf create mode 100755 app-antivirus/antivir-mailgate/files/3.0.0_p14/antivir-mailgate.initd create mode 100644 app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate-scanner.conf.diff.bz2 create mode 100644 app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate.conf.diff.postfix.bz2 create mode 100644 app-antivirus/antivir-mailgate/metadata.xml create mode 100644 app-antivirus/antivir-savapi/ChangeLog create mode 100644 app-antivirus/antivir-savapi/Manifest create mode 100644 app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild create mode 100644 app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild create mode 100644 app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf create mode 100755 app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd create mode 100644 app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf create mode 100644 app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf create mode 100755 app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd create mode 100644 app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf create mode 100644 app-antivirus/antivir-savapi/metadata.xml create mode 100644 app-antivirus/antivir-webgate/ChangeLog create mode 100644 app-antivirus/antivir-webgate/Manifest create mode 100644 app-antivirus/antivir-webgate/antivir-webgate-1.3.0_p12.ebuild create mode 100755 app-antivirus/antivir-webgate/files/1.3.0_p12/antivir-webgate.init.d create mode 100644 app-antivirus/antivir-webgate/files/1.3.0_p12/avwebgate.conf create mode 100644 app-antivirus/antivir-webgate/metadata.xml create mode 100644 app-antivirus/skyldav/ChangeLog create mode 100644 app-antivirus/skyldav/Manifest create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3-conf.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3-examples.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3-openlog.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3-sbin.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130816-syslog.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130817-disable-skyldavnotify.patch create mode 100644 app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130821-examples.patch create mode 100644 app-antivirus/skyldav/files/skyldav.confd create mode 100755 app-antivirus/skyldav/files/skyldav.initd create mode 100644 app-antivirus/skyldav/metadata.xml create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3.ebuild create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3_p20130816.ebuild create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3_p20130817-r1.ebuild create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3_p20130817.ebuild create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3_p20130821-r1.ebuild create mode 100644 app-antivirus/skyldav/skyldav-0.2_rc3_p20130821.ebuild create mode 100644 app-backup/bacula/ChangeLog create mode 100644 app-backup/bacula/Manifest create mode 100644 app-backup/bacula/bacula-5.0.0.ebuild create mode 100644 app-backup/bacula/bacula-5.0.1-r1.ebuild create mode 100644 app-backup/bacula/bacula-5.0.1.ebuild create mode 100644 app-backup/bacula/files/5.0.0/bacula-dir.confd create mode 100644 app-backup/bacula/files/5.0.0/bacula-dir.initd create mode 100644 app-backup/bacula/files/5.0.0/bacula-fd.confd create mode 100644 app-backup/bacula/files/5.0.0/bacula-fd.initd create mode 100644 app-backup/bacula/files/5.0.0/bacula-sd.confd create mode 100644 app-backup/bacula/files/5.0.0/bacula-sd.initd create mode 100644 app-backup/bacula/files/5.0.1/bacula-5.0.1-as-needed.patch create mode 100644 app-backup/bacula/files/5.0.1/bacula-5.0.1-ncurses.patch create mode 100644 app-backup/bacula/files/5.0.1/bacula-dir.confd create mode 100644 app-backup/bacula/files/5.0.1/bacula-dir.initd create mode 100644 app-backup/bacula/files/5.0.1/bacula-fd.confd create mode 100644 app-backup/bacula/files/5.0.1/bacula-fd.initd create mode 100644 app-backup/bacula/files/5.0.1/bacula-sd.confd create mode 100644 app-backup/bacula/files/5.0.1/bacula-sd.initd create mode 100644 app-backup/bacula/metadata.xml create mode 100644 app-cdr/lacie-lightscribe-labeler/Manifest create mode 100644 app-cdr/lacie-lightscribe-labeler/files/digest-lacie-lightscribe-labeler-1.0.6 create mode 100644 app-cdr/lacie-lightscribe-labeler/files/lacie-lightscribe-labeler.desktop create mode 100644 app-cdr/lacie-lightscribe-labeler/lacie-lightscribe-labeler-1.0.6.ebuild create mode 100644 app-cdr/lightscribe-simplelabeler/Manifest create mode 100644 app-cdr/lightscribe-simplelabeler/files/digest-lightscribe-simplelabeler-1.4.128.1 create mode 100644 app-cdr/lightscribe-simplelabeler/files/lightscribe-simplelabeler.desktop create mode 100644 app-cdr/lightscribe-simplelabeler/lightscribe-simplelabeler-1.4.128.1.ebuild create mode 100644 app-cdr/lightscribe/Manifest create mode 100644 app-cdr/lightscribe/files/digest-lightscribe-1.4.142.1 create mode 100644 app-cdr/lightscribe/files/digest-lightscribe-1.8.13.1 create mode 100644 app-cdr/lightscribe/lightscribe-1.4.142.1.ebuild create mode 100644 app-cdr/lightscribe/lightscribe-1.8.13.1.ebuild create mode 100644 app-emulation/xen-tools/ChangeLog create mode 100644 app-emulation/xen-tools/Manifest create mode 100644 app-emulation/xen-tools/files/xen-consoles.logrotate create mode 100644 app-emulation/xen-tools/files/xen-tools-3.1.0-xen-detect-nopie-fix.patch create mode 100644 app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch create mode 100644 app-emulation/xen-tools/files/xen-tools-3.2.1-qemu-nodocs.patch create mode 100644 app-emulation/xen-tools/files/xend.initd-r2 create mode 100644 app-emulation/xen-tools/files/xendomains-screen.confd create mode 100644 app-emulation/xen-tools/files/xendomains.confd create mode 100755 app-emulation/xen-tools/files/xendomains.initd-r1 create mode 100644 app-emulation/xen-tools/metadata.xml create mode 100644 app-emulation/xen-tools/xen-tools-3.2.3-r1.ebuild create mode 100644 app-emulation/xen/Manifest create mode 100644 app-emulation/xen/metadata.xml create mode 100644 app-emulation/xen/xen-3.2.3.ebuild create mode 100644 app-laptop/acpi4asus/Manifest create mode 100644 app-laptop/acpi4asus/acpi4asus-9999.ebuild create mode 100644 app-laptop/acpi4asus/files/digest-acpi4asus-9999 create mode 100644 app-laptop/acpi4asus/files/kernel23-fix.patch create mode 100644 app-misc/execwrap/Manifest create mode 100644 app-misc/execwrap/execwrap-0.5.ebuild create mode 100644 app-misc/gen-auth/ChangeLog create mode 100644 app-misc/gen-auth/Manifest create mode 100644 app-misc/gen-auth/gen-auth-20060620.ebuild create mode 100644 app-misc/klock/Manifest create mode 100644 app-misc/klock/files/digest-klock-1 create mode 100644 app-misc/klock/klock-1.ebuild create mode 100644 app-shells/bashinator/ChangeLog create mode 100644 app-shells/bashinator/Manifest create mode 100644 app-shells/bashinator/bashinator-0.3.1.ebuild create mode 100644 app-shells/bashinator/bashinator-0.3.ebuild create mode 100644 app-shells/bashinator/bashinator-0.4.ebuild create mode 100644 app-shells/bashinator/bashinator-0.5.ebuild create mode 100644 app-shells/bashinator/metadata.xml create mode 100644 app-shells/pdsh/ChangeLog create mode 100644 app-shells/pdsh/Manifest create mode 100644 app-shells/pdsh/files/pdsh-2.18-unbundle-libtool.patch create mode 100644 app-shells/pdsh/pdsh-2.18-r9999.ebuild create mode 100644 app-text/multitail/Manifest create mode 100644 app-text/multitail/files/digest-multitail-4.2.0 create mode 100644 app-text/multitail/multitail-4.2.0.ebuild create mode 100644 dev-libs/eventlog/Manifest create mode 100644 dev-libs/eventlog/eventlog-0.2.6_p20071204.ebuild create mode 100644 dev-libs/eventlog/files/digest-eventlog-0.2.6_p20071204 create mode 100644 dev-perl/Exception-Class-DBI/ChangeLog create mode 100644 dev-perl/Exception-Class-DBI/Exception-Class-DBI-1.00.ebuild create mode 100644 dev-perl/Exception-Class-DBI/Manifest create mode 100644 dev-perl/Exception-Class-DBI/metadata.xml create mode 100644 dev-perl/Exception-Class-TryCatch/ChangeLog create mode 100644 dev-perl/Exception-Class-TryCatch/Exception-Class-TryCatch-1.12.ebuild create mode 100644 dev-perl/Exception-Class-TryCatch/Manifest create mode 100644 dev-perl/Exception-Class-TryCatch/metadata.xml create mode 100644 dev-perl/Math-Calc-Units/ChangeLog create mode 100644 dev-perl/Math-Calc-Units/Manifest create mode 100644 dev-perl/Math-Calc-Units/Math-Calc-Units-1.06.ebuild create mode 100644 dev-perl/Math-Calc-Units/metadata.xml create mode 100644 dev-perl/Nagios-Plugin/ChangeLog create mode 100644 dev-perl/Nagios-Plugin/Manifest create mode 100644 dev-perl/Nagios-Plugin/Nagios-Plugin-0.27.ebuild create mode 100644 dev-perl/Nagios-Plugin/metadata.xml create mode 100644 licenses/AVIRA-AntiVir create mode 100644 mail-filter/dkimproxy/ChangeLog create mode 100644 mail-filter/dkimproxy/Manifest create mode 100644 mail-filter/dkimproxy/dkimproxy-1.0.1.ebuild create mode 100644 mail-filter/dkimproxy/dkimproxy-1.1.ebuild create mode 100644 mail-filter/dkimproxy/files/dkimproxy.init create mode 100644 mail-filter/dkimproxy/metadata.xml create mode 100644 mail-filter/dovecot-antispam/ChangeLog create mode 100644 mail-filter/dovecot-antispam/Manifest create mode 100644 mail-filter/dovecot-antispam/dovecot-antispam-9999.ebuild create mode 100644 mail-filter/sbd-proxy/ChangeLog create mode 100644 mail-filter/sbd-proxy/Manifest create mode 100644 mail-filter/sbd-proxy/files/sbd-proxy.confd create mode 100755 mail-filter/sbd-proxy/files/sbd-proxy.initd create mode 100644 mail-filter/sbd-proxy/sbd-proxy-1.0.ebuild create mode 100644 mail-filter/sbd-proxy/sbd-proxy-1.1.ebuild create mode 100644 mail-filter/sbd-proxy/sbd-proxy-1.2.ebuild create mode 100644 mail-mta/qpsmtpd/Manifest create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd-0.40-badhelo_disconnect.patch create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd-0.40-badrcptto_allowrelay.patch create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd-0.40-clamd_conf.patch create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd.confd create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd.envd create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd.initd create mode 100644 mail-mta/qpsmtpd/files/qpsmtpd.xinetd create mode 100644 mail-mta/qpsmtpd/metadata.xml create mode 100644 mail-mta/qpsmtpd/qpsmtpd-0.82.ebuild create mode 100644 net-analyzer/nagcon/ChangeLog create mode 100644 net-analyzer/nagcon/Manifest create mode 100644 net-analyzer/nagcon/files/nagcon-0.0.30.patch create mode 100644 net-analyzer/nagcon/nagcon-0.0.30.ebuild create mode 100644 net-analyzer/nagios-check_dell_warranty/ChangeLog create mode 100644 net-analyzer/nagios-check_dell_warranty/Manifest create mode 100644 net-analyzer/nagios-check_dell_warranty/metadata.xml create mode 100644 net-analyzer/nagios-check_dell_warranty/nagios-check_dell_warranty-1.1.ebuild create mode 100644 net-analyzer/nagios-check_drbd/ChangeLog create mode 100644 net-analyzer/nagios-check_drbd/Manifest create mode 100644 net-analyzer/nagios-check_drbd/metadata.xml create mode 100644 net-analyzer/nagios-check_drbd/nagios-check_drbd-0.5.2.ebuild create mode 100644 net-analyzer/nagios-check_heartbeat_link/ChangeLog create mode 100644 net-analyzer/nagios-check_heartbeat_link/Manifest create mode 100644 net-analyzer/nagios-check_heartbeat_link/files/nagios-check_heartbeat_link-listnodes.patch create mode 100644 net-analyzer/nagios-check_heartbeat_link/metadata.xml create mode 100644 net-analyzer/nagios-check_heartbeat_link/nagios-check_heartbeat_link-0.1.1-r2.ebuild create mode 100644 net-analyzer/nagios-check_ilo2_health/ChangeLog create mode 100644 net-analyzer/nagios-check_ilo2_health/Manifest create mode 100644 net-analyzer/nagios-check_ilo2_health/metadata.xml create mode 100644 net-analyzer/nagios-check_ilo2_health/nagios-check_ilo2_health-1.41.ebuild create mode 100644 net-analyzer/nagios-check_ipmi_chassis/ChangeLog create mode 100644 net-analyzer/nagios-check_ipmi_chassis/Manifest create mode 100644 net-analyzer/nagios-check_ipmi_chassis/metadata.xml create mode 100644 net-analyzer/nagios-check_ipmi_chassis/nagios-check_ipmi_chassis-1.ebuild create mode 100644 net-analyzer/nagios-check_md_raid/ChangeLog create mode 100644 net-analyzer/nagios-check_md_raid/Manifest create mode 100644 net-analyzer/nagios-check_md_raid/nagios-check_md_raid-0.7.2.ebuild create mode 100644 net-analyzer/nagios-check_megaraid_sas/ChangeLog create mode 100644 net-analyzer/nagios-check_megaraid_sas/Manifest create mode 100644 net-analyzer/nagios-check_megaraid_sas/files/check_megaraid_sas-3-megacli-compat.patch create mode 100644 net-analyzer/nagios-check_megaraid_sas/nagios-check_megaraid_sas-3-r1.ebuild create mode 100644 net-analyzer/nagios-check_mpt/ChangeLog create mode 100644 net-analyzer/nagios-check_mpt/Manifest create mode 100644 net-analyzer/nagios-check_mpt/files/check_mpt-0.1-lib.patch create mode 100644 net-analyzer/nagios-check_mpt/nagios-check_mpt-0.1.ebuild create mode 100644 net-analyzer/nagios-check_raid/ChangeLog create mode 100644 net-analyzer/nagios-check_raid/Manifest create mode 100644 net-analyzer/nagios-check_raid/metadata.xml create mode 100644 net-analyzer/nagios-check_raid/nagios-check_raid-2.0.ebuild create mode 100644 net-analyzer/nagios-check_swraid/ChangeLog create mode 100644 net-analyzer/nagios-check_swraid/Manifest create mode 100644 net-analyzer/nagios-check_swraid/nagios-check_swraid-0.3.ebuild create mode 100644 net-analyzer/nagios-check_xen/ChangeLog create mode 100644 net-analyzer/nagios-check_xen/Manifest create mode 100644 net-analyzer/nagios-check_xen/metadata.xml create mode 100644 net-analyzer/nagios-check_xen/nagios-check_xen-0.9.1.ebuild create mode 100644 net-analyzer/nagios-plugins-extra/ChangeLog create mode 100644 net-analyzer/nagios-plugins-extra/Manifest create mode 100644 net-analyzer/nagios-plugins-extra/nagios-plugins-extra-4.ebuild create mode 100644 net-mail/gnarwl/ChangeLog create mode 100644 net-mail/gnarwl/Manifest create mode 100644 net-mail/gnarwl/gnarwl-3.6.ebuild create mode 100644 net-mail/gnarwl/metadata.xml create mode 100644 net-misc/unison/Manifest create mode 100644 net-misc/unison/files/digest-unison-2.27.29 create mode 100644 net-misc/unison/unison-2.27.29.ebuild create mode 100644 net-wireless/madwifi-ng-tools/ChangeLog create mode 100644 net-wireless/madwifi-ng-tools/Manifest create mode 100644 net-wireless/madwifi-ng-tools/madwifi-ng-tools-3941_p20090205.ebuild create mode 100644 net-wireless/madwifi-ng-tools/metadata.xml create mode 100644 net-wireless/madwifi-ng/ChangeLog create mode 100644 net-wireless/madwifi-ng/Manifest create mode 100644 net-wireless/madwifi-ng/madwifi-ng-3941_p20090205.ebuild create mode 100644 net-wireless/madwifi-ng/metadata.xml create mode 100644 net-www/awstats/Manifest create mode 100644 net-www/awstats/awstats-6.8.ebuild create mode 100644 net-www/awstats/files/awstats-6.3-gentoo.diff create mode 100644 net-www/awstats/files/postinst-en-r1.txt create mode 100644 profiles/use.local.desc create mode 100644 sys-apps/makedev-gentoo/ChangeLog create mode 100644 sys-apps/makedev-gentoo/Manifest create mode 100755 sys-apps/makedev-gentoo/files/MAKEDEV create mode 100644 sys-apps/makedev-gentoo/makedev-gentoo-1.ebuild create mode 100644 sys-apps/makedev-gentoo/metadata.xml create mode 100644 sys-apps/memtest86+/Manifest create mode 100644 sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-2.01-serial-baud.patch create mode 100644 sys-apps/memtest86+/memtest86+-2.01.ebuild create mode 100644 sys-block/areca-cli/ChangeLog create mode 100644 sys-block/areca-cli/Manifest create mode 100644 sys-block/areca-cli/areca-cli-1.72.250_p70306.ebuild create mode 100644 sys-block/areca-cli/areca-cli-1.80a_p71012_beta.ebuild create mode 100644 sys-block/areca-http/ChangeLog create mode 100644 sys-block/areca-http/Manifest create mode 100644 sys-block/areca-http/areca-http-1.81.250_p70306.ebuild create mode 100644 sys-block/areca-http/areca-http-1.82_p70911_beta.ebuild create mode 100644 sys-block/hdrecover/ChangeLog create mode 100644 sys-block/hdrecover/Manifest create mode 100644 sys-block/hdrecover/hdrecover-0.2.ebuild create mode 100644 sys-cluster/drbd-kernel/ChangeLog create mode 100644 sys-cluster/drbd-kernel/Manifest create mode 100644 sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild create mode 100644 sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild create mode 100644 sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 create mode 100644 sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch create mode 100644 sys-cluster/drbd/ChangeLog create mode 100644 sys-cluster/drbd/Manifest create mode 100644 sys-cluster/drbd/drbd-8.2.7.ebuild create mode 100644 sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild create mode 100644 sys-cluster/drbd/files/drbd-8.0.rc create mode 100644 sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 create mode 100644 sys-cluster/drbdlinks/ChangeLog create mode 100644 sys-cluster/drbdlinks/Manifest create mode 100644 sys-cluster/drbdlinks/drbdlinks-1.12.ebuild create mode 100644 sys-cluster/drbdlinks/drbdlinks-1.15.ebuild create mode 100644 sys-cluster/drbdlinks/files/drbdlinks-init create mode 100644 sys-cluster/heartbeat-scripts/ChangeLog create mode 100644 sys-cluster/heartbeat-scripts/Manifest create mode 100644 sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild create mode 100644 sys-cluster/heartbeat/ChangeLog create mode 100644 sys-cluster/heartbeat/Manifest create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch create mode 100644 sys-cluster/heartbeat/files/heartbeat.init-r2 create mode 100644 sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild create mode 100644 sys-cluster/heartbeat/heartbeat-2.1.4.ebuild create mode 100644 sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild create mode 100644 sys-cluster/pacemaker/ChangeLog create mode 100644 sys-cluster/pacemaker/Manifest create mode 100644 sys-cluster/pacemaker/pacemaker-0.6.4.ebuild create mode 100644 sys-cluster/pacemaker/pacemaker-0.6.5.ebuild create mode 100644 sys-kernel/hardened-sources/Manifest create mode 100644 sys-kernel/hardened-sources/files/digest-hardened-sources-2.6.22-r8 create mode 100644 sys-kernel/hardened-sources/hardened-sources-2.6.22-r8.ebuild diff --git a/app-admin/chpwdfile/Manifest b/app-admin/chpwdfile/Manifest new file mode 100644 index 0000000..1e3833f --- /dev/null +++ b/app-admin/chpwdfile/Manifest @@ -0,0 +1,8 @@ +DIST chpwdfile-0.24.tar.gz 22421 RMD160 50fae75143046660e634fa128aedb619bb15a44a SHA1 080fae3cf4b837602d0b0080a85772806899d993 SHA256 0143b1100d58615930ae81ce99aa202a069f6ee8c619b30292ff33a2b0417161 +EBUILD chpwdfile-0.24.ebuild 572 RMD160 bae66e55c47490fb82af978cc6674c6e778e3704 SHA1 8bf628731792432c96cb5812ba3aab7fd2d606f3 SHA256 283ac170742674a785fbcef2d72336dbd0fe687d6f44d8cbbb7974cc164ba082 +MD5 9a1b337b22be5561baac1769cb4fbba0 chpwdfile-0.24.ebuild 572 +RMD160 bae66e55c47490fb82af978cc6674c6e778e3704 chpwdfile-0.24.ebuild 572 +SHA256 283ac170742674a785fbcef2d72336dbd0fe687d6f44d8cbbb7974cc164ba082 chpwdfile-0.24.ebuild 572 +MD5 feff036b8166260eb382b46c5f4ee431 files/digest-chpwdfile-0.24 241 +RMD160 772c8784d8d5e6dd93124fd46dd72ba3915f8d79 files/digest-chpwdfile-0.24 241 +SHA256 f76f5c079819eead5c444eac3ba98c7f8e000b9cebda531839a6f59955fccb62 files/digest-chpwdfile-0.24 241 diff --git a/app-admin/chpwdfile/chpwdfile-0.24.ebuild b/app-admin/chpwdfile/chpwdfile-0.24.ebuild new file mode 100644 index 0000000..17399ef --- /dev/null +++ b/app-admin/chpwdfile/chpwdfile-0.24.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +DESCRIPTION="console based password management application" +HOMEPAGE="http://cpbotha.net/pam_pwdfile" +SRC_URI="http://cpbotha.net/files/mirror/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +DEPEND="virtual/libc" + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin chpwdfile + doman chpwdfile.1 + for i in pw{add,mod,del}; do + dosym chpwdfile /usr/bin/${i} + echo '.so chpwdfile.1' > ${i}.1 + doman ${i}.1 + done + dodoc README +} diff --git a/app-admin/chpwdfile/files/digest-chpwdfile-0.24 b/app-admin/chpwdfile/files/digest-chpwdfile-0.24 new file mode 100644 index 0000000..df1f07b --- /dev/null +++ b/app-admin/chpwdfile/files/digest-chpwdfile-0.24 @@ -0,0 +1,3 @@ +MD5 8bdba005f58a09c7dc1b12692691179a chpwdfile-0.24.tar.gz 22421 +RMD160 50fae75143046660e634fa128aedb619bb15a44a chpwdfile-0.24.tar.gz 22421 +SHA256 0143b1100d58615930ae81ce99aa202a069f6ee8c619b30292ff33a2b0417161 chpwdfile-0.24.tar.gz 22421 diff --git a/app-admin/grsecurity-scripts/Manifest b/app-admin/grsecurity-scripts/Manifest new file mode 100644 index 0000000..72acf98 --- /dev/null +++ b/app-admin/grsecurity-scripts/Manifest @@ -0,0 +1,27 @@ +AUX grsecurity-rbac 1054 RMD160 b6b8940f9be86e27de553bae75a9f9f5e23e9c1f SHA1 f0523e90feb5b83d1073a35064648fe504b0c56f SHA256 b228f275df04a29150553a45fc82227fbca81ea591f4cbee29919c2f6719ca63 +MD5 0ab42902dd7947cffe16019b15cc97bd files/grsecurity-rbac 1054 +RMD160 b6b8940f9be86e27de553bae75a9f9f5e23e9c1f files/grsecurity-rbac 1054 +SHA256 b228f275df04a29150553a45fc82227fbca81ea591f4cbee29919c2f6719ca63 files/grsecurity-rbac 1054 +AUX grsecurity-rbac-learning 1778 RMD160 056c05ceaa9944262c314650f7c1c165cddf5098 SHA1 bd77bc0108e4115770afc9478198930d50b508ac SHA256 1bb65e66a0ac6ae93a733942f4c71bdaaebec9b1c67b732b5c6a82e6edafd728 +MD5 f489481e64c1f8e0dcac1e16a0cd6ebb files/grsecurity-rbac-learning 1778 +RMD160 056c05ceaa9944262c314650f7c1c165cddf5098 files/grsecurity-rbac-learning 1778 +SHA256 1bb65e66a0ac6ae93a733942f4c71bdaaebec9b1c67b732b5c6a82e6edafd728 files/grsecurity-rbac-learning 1778 +AUX grsecurity-sysctl 616 RMD160 eb0371dd68cb7ef93e1afd1f84ea628ee03905d1 SHA1 13771a5c6449133b00daea94e4c3b84f79ac230c SHA256 3e6bd364049ad86bbf746386dfe76c56eeb3ab2cab23d0730f100b7a02a8a2c9 +MD5 41abd43ebeb501f646d4491efaaecb8e files/grsecurity-sysctl 616 +RMD160 eb0371dd68cb7ef93e1afd1f84ea628ee03905d1 files/grsecurity-sysctl 616 +SHA256 3e6bd364049ad86bbf746386dfe76c56eeb3ab2cab23d0730f100b7a02a8a2c9 files/grsecurity-sysctl 616 +AUX sample-kernel-config-pax-grsec.txt 3053 RMD160 c26634bea952ac856f5fe7b1380df76ad7e81f60 SHA1 e9e8d2e02b6aa6943f46c9aa0fb4587b0eff6d69 SHA256 315e30c13c74b058ffddb4ea913a67ec70fa170d1f3065076f0142ffbafce704 +MD5 88143d863f72eeec56cb3d94f3a1514c files/sample-kernel-config-pax-grsec.txt 3053 +RMD160 c26634bea952ac856f5fe7b1380df76ad7e81f60 files/sample-kernel-config-pax-grsec.txt 3053 +SHA256 315e30c13c74b058ffddb4ea913a67ec70fa170d1f3065076f0142ffbafce704 files/sample-kernel-config-pax-grsec.txt 3053 +AUX sysctl.conf 1853 RMD160 9b69c98d075a9f9ac81e4654a1af5bf5306875df SHA1 29f4a225cefb60dbefd556889e9e4a7079c757e5 SHA256 fc548b3958efad7817e7a1fd429160abf16d93f14ee0827f15a9d109b3bb01ae +MD5 f272b07b59dfad416083726c3b8d75b2 files/sysctl.conf 1853 +RMD160 9b69c98d075a9f9ac81e4654a1af5bf5306875df files/sysctl.conf 1853 +SHA256 fc548b3958efad7817e7a1fd429160abf16d93f14ee0827f15a9d109b3bb01ae files/sysctl.conf 1853 +EBUILD grsecurity-scripts-1.ebuild 2460 RMD160 5e62d153d67ba6b6522e6e7ce5e5b7b4409e5b58 SHA1 3626824c945e827171f4179aa021a6eaed68a072 SHA256 c13c199a45140120480a371ef5a0e018219ff7322d2f0a0c3ccf60f762915391 +MD5 b251047797af50ba0d14c4193d360330 grsecurity-scripts-1.ebuild 2460 +RMD160 5e62d153d67ba6b6522e6e7ce5e5b7b4409e5b58 grsecurity-scripts-1.ebuild 2460 +SHA256 c13c199a45140120480a371ef5a0e018219ff7322d2f0a0c3ccf60f762915391 grsecurity-scripts-1.ebuild 2460 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-grsecurity-scripts-1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-grsecurity-scripts-1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-grsecurity-scripts-1 0 diff --git a/app-admin/grsecurity-scripts/files/digest-grsecurity-scripts-1 b/app-admin/grsecurity-scripts/files/digest-grsecurity-scripts-1 new file mode 100644 index 0000000..e69de29 diff --git a/app-admin/grsecurity-scripts/files/grsecurity-rbac b/app-admin/grsecurity-scripts/files/grsecurity-rbac new file mode 100755 index 0000000..568d321 --- /dev/null +++ b/app-admin/grsecurity-scripts/files/grsecurity-rbac @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +depend() { + after grsecurity-sysctl + before net.* +} + +checkconfig() { + if [[ ! -f /etc/grsec/pw ]]; then + eerror + eerror "The grsecurity RBAC system password file is missing!" + eerror " -> /etc/grsec/pw" + eerror + eerror "Create passwords for the RBAC system itself and the 'admin'" + eerror "role by running the following commands:" + eerror + eerror "To create the grsecurity RBAC system main password:" + eerror " gradm -P" + eerror + eerror "To create the grsecurity RBAC system role 'admin' password:" + eerror " gradm -P admin" + eerror + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Enabling grsecurity RBAC system" + /sbin/gradm -E + eend $? +} + +stop() { + einfo + einfo "You have to manually disable the grsecurity RBAC system" + einfo "by running the following command:" + einfo " gradm -D" + einfo +} diff --git a/app-admin/grsecurity-scripts/files/grsecurity-rbac-learning b/app-admin/grsecurity-scripts/files/grsecurity-rbac-learning new file mode 100755 index 0000000..51acb0c --- /dev/null +++ b/app-admin/grsecurity-scripts/files/grsecurity-rbac-learning @@ -0,0 +1,72 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +depend() { + after modules + before checkfs +} + +checkconfig() { + if [[ ! -f /etc/grsec/pw ]]; then + eerror + eerror "The grsecurity RBAC system password file is missing!" + eerror " -> /etc/grsec/pw" + eerror + eerror "Create passwords for the RBAC system itself and the 'admin'" + eerror "role by running the following commands:" + eerror + eerror "To create the grsecurity RBAC system main password:" + eerror " gradm -P" + eerror + eerror "To create the grsecurity RBAC system role 'admin' password:" + eerror " gradm -P admin" + eerror + return 1 + fi + if [[ ! -f /etc/grsec/learn_config ]]; then + eerror + eerror "The grsecurity RBAC system learning mode config file is missing!" + eerror " -> /etc/grsec/learn_config" + eerror + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Enabling grsecurity RBAC system learning mode" + /sbin/gradm -F -L /etc/grsec/learning.log + eend $? + ewarn + ewarn "You can only disable the grsecurity RBAC system from" + ewarn "the terminal it was initially being started on!" + ewarn +} + +process() { + if [[ ! -f /etc/grsec/learning.log ]]; then + eerror + eerror "The grsecurity RBAC system learning log is missing!" + eerror " - >/etc/grsec/learning.log" + eerror + return 1 + fi + + ebegin "Processing grsecurity RBAC system learning log" + /sbin/gradm -F -L /etc/grsec/learning.log -O /etc/grsec/learning.policy + eend $? +} + +stop() { + einfo + einfo "To finish the learning mode you have to manually disable the" + einfo "grsecurity RBAC system by running the following command:" + einfo " gradm -D" + einfo +} diff --git a/app-admin/grsecurity-scripts/files/grsecurity-sysctl b/app-admin/grsecurity-scripts/files/grsecurity-sysctl new file mode 100755 index 0000000..56241e8 --- /dev/null +++ b/app-admin/grsecurity-scripts/files/grsecurity-sysctl @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +depend() { + after modules + before net.* +} + +checkconfig() { + if [[ ! -f /etc/grsec/sysctl.conf ]]; then + eerror + eerror "The grsecurity sysctl.conf file is missing!" + eerror " -> /etc/grsec/sysctl.conf" + eerror + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Configuring grsecurity kernel parameters" + sysctl -q -p /etc/grsec/sysctl.conf + eend $? +} + +stop() { + : NOP +} diff --git a/app-admin/grsecurity-scripts/files/sample-kernel-config-pax-grsec.txt b/app-admin/grsecurity-scripts/files/sample-kernel-config-pax-grsec.txt new file mode 100644 index 0000000..23b7a39 --- /dev/null +++ b/app-admin/grsecurity-scripts/files/sample-kernel-config-pax-grsec.txt @@ -0,0 +1,149 @@ +# +# Security options +# + +# +# PaX +# +CONFIG_PAX=y + +# +# PaX Control +# +# CONFIG_PAX_SOFTMODE is not set +CONFIG_PAX_EI_PAX=y +CONFIG_PAX_PT_PAX_FLAGS=y +# CONFIG_PAX_NO_ACL_FLAGS is not set +CONFIG_PAX_HAVE_ACL_FLAGS=y +# CONFIG_PAX_HOOK_ACL_FLAGS is not set + +# +# Non-executable pages +# +CONFIG_PAX_NOEXEC=y +CONFIG_PAX_PAGEEXEC=y +CONFIG_PAX_SEGMEXEC=y +# CONFIG_PAX_DEFAULT_PAGEEXEC is not set +CONFIG_PAX_DEFAULT_SEGMEXEC=y +CONFIG_PAX_EMUTRAMP=y +CONFIG_PAX_MPROTECT=y +CONFIG_PAX_NOELFRELOCS=y +CONFIG_PAX_KERNEXEC=y + +# +# Address Space Layout Randomization +# +CONFIG_PAX_ASLR=y +CONFIG_PAX_RANDKSTACK=y +CONFIG_PAX_RANDUSTACK=y +CONFIG_PAX_RANDMMAP=y + +# +# Miscellaneous hardening features +# +CONFIG_PAX_MEMORY_SANITIZE=y +CONFIG_PAX_MEMORY_UDEREF=y + +# +# Grsecurity +# +CONFIG_GRKERNSEC=y +# CONFIG_GRKERNSEC_LOW is not set +# CONFIG_GRKERNSEC_MEDIUM is not set +# CONFIG_GRKERNSEC_HIGH is not set +CONFIG_GRKERNSEC_CUSTOM=y + +# +# Address Space Protection +# +CONFIG_GRKERNSEC_KMEM=y +CONFIG_GRKERNSEC_IO=y +CONFIG_GRKERNSEC_PROC_MEMMAP=y +CONFIG_GRKERNSEC_BRUTE=y +CONFIG_GRKERNSEC_MODSTOP=y +CONFIG_GRKERNSEC_HIDESYM=y + +# +# Role Based Access Control Options +# +CONFIG_GRKERNSEC_ACL_HIDEKERN=y +CONFIG_GRKERNSEC_ACL_MAXTRIES=3 +CONFIG_GRKERNSEC_ACL_TIMEOUT=30 + +# +# Filesystem Protections +# +CONFIG_GRKERNSEC_PROC=y +# CONFIG_GRKERNSEC_PROC_USER is not set +CONFIG_GRKERNSEC_PROC_USERGROUP=y +CONFIG_GRKERNSEC_PROC_GID=1001 +CONFIG_GRKERNSEC_PROC_ADD=y +CONFIG_GRKERNSEC_LINK=y +CONFIG_GRKERNSEC_FIFO=y +CONFIG_GRKERNSEC_CHROOT=y +CONFIG_GRKERNSEC_CHROOT_MOUNT=y +CONFIG_GRKERNSEC_CHROOT_DOUBLE=y +CONFIG_GRKERNSEC_CHROOT_PIVOT=y +CONFIG_GRKERNSEC_CHROOT_CHDIR=y +CONFIG_GRKERNSEC_CHROOT_CHMOD=y +CONFIG_GRKERNSEC_CHROOT_FCHDIR=y +CONFIG_GRKERNSEC_CHROOT_MKNOD=y +CONFIG_GRKERNSEC_CHROOT_SHMAT=y +CONFIG_GRKERNSEC_CHROOT_UNIX=y +CONFIG_GRKERNSEC_CHROOT_FINDTASK=y +CONFIG_GRKERNSEC_CHROOT_NICE=y +CONFIG_GRKERNSEC_CHROOT_SYSCTL=y +CONFIG_GRKERNSEC_CHROOT_CAPS=y + +# +# Kernel Auditing +# +# CONFIG_GRKERNSEC_AUDIT_GROUP is not set +# CONFIG_GRKERNSEC_EXECLOG is not set +CONFIG_GRKERNSEC_RESLOG=y +CONFIG_GRKERNSEC_CHROOT_EXECLOG=y +# CONFIG_GRKERNSEC_AUDIT_CHDIR is not set +CONFIG_GRKERNSEC_AUDIT_MOUNT=y +CONFIG_GRKERNSEC_AUDIT_IPC=y +CONFIG_GRKERNSEC_SIGNAL=y +CONFIG_GRKERNSEC_FORKFAIL=y +CONFIG_GRKERNSEC_TIME=y +CONFIG_GRKERNSEC_PROC_IPADDR=y +# CONFIG_GRKERNSEC_AUDIT_TEXTREL is not set + +# +# Executable Protections +# +CONFIG_GRKERNSEC_EXECVE=y +CONFIG_GRKERNSEC_SHM=y +CONFIG_GRKERNSEC_DMESG=y +CONFIG_GRKERNSEC_TPE=y +# CONFIG_GRKERNSEC_TPE_ALL is not set +CONFIG_GRKERNSEC_TPE_INVERT=y +CONFIG_GRKERNSEC_TPE_GID=1005 + +# +# Network Protections +# +CONFIG_GRKERNSEC_RANDNET=y +CONFIG_GRKERNSEC_SOCKET=y +CONFIG_GRKERNSEC_SOCKET_ALL=y +CONFIG_GRKERNSEC_SOCKET_ALL_GID=1004 +CONFIG_GRKERNSEC_SOCKET_CLIENT=y +CONFIG_GRKERNSEC_SOCKET_CLIENT_GID=1003 +CONFIG_GRKERNSEC_SOCKET_SERVER=y +CONFIG_GRKERNSEC_SOCKET_SERVER_GID=1002 + +# +# Sysctl support +# +CONFIG_GRKERNSEC_SYSCTL=y +CONFIG_GRKERNSEC_SYSCTL_ON=y + +# +# Logging Options +# +CONFIG_GRKERNSEC_FLOODTIME=10 +CONFIG_GRKERNSEC_FLOODBURST=4 +# CONFIG_KEYS is not set +# CONFIG_SECURITY is not set diff --git a/app-admin/grsecurity-scripts/files/sysctl.conf b/app-admin/grsecurity-scripts/files/sysctl.conf new file mode 100644 index 0000000..f32a9e6 --- /dev/null +++ b/app-admin/grsecurity-scripts/files/sysctl.conf @@ -0,0 +1,88 @@ +# +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +## +## GRsecurity sysctl options +## + +# +# Misc Restrictions +# + +#kernel.grsecurity.execve_limiting = 1 +#kernel.grsecurity.fifo_restrictions = 1 +#kernel.grsecurity.linking_restrictions = 1 +#kernel.grsecurity.dmesg = 1 + +# +# Misc Protections +# + +#kernel.grsecurity.destroy_unused_shm = 1 + +# +# Socket Restrictions +# + +#kernel.grsecurity.socket_server_gid = 1002 +#kernel.grsecurity.socket_server = 1 +#kernel.grsecurity.socket_client_gid = 1003 +#kernel.grsecurity.socket_client = 1 +#kernel.grsecurity.socket_all_gid = 1004 +#kernel.grsecurity.socket_all = 1 + +# +# Trusted Path Execution +# + +#kernel.grsecurity.tpe_gid = 1005 +#kernel.grsecurity.tpe = 1 + +# +# Chroot Restrictions +# + +#kernel.grsecurity.chroot_findtask = 1 +#kernel.grsecurity.chroot_deny_sysctl = 1 +#kernel.grsecurity.chroot_caps = 1 +#kernel.grsecurity.chroot_execlog = 1 +#kernel.grsecurity.chroot_restrict_nice = 1 +#kernel.grsecurity.chroot_deny_mknod = 1 +#kernel.grsecurity.chroot_deny_chmod = 1 +#kernel.grsecurity.chroot_enforce_chdir = 1 +#kernel.grsecurity.chroot_deny_pivot = 1 +#kernel.grsecurity.chroot_deny_chroot = 1 +#kernel.grsecurity.chroot_deny_fchdir = 1 +#kernel.grsecurity.chroot_deny_mount = 1 +#kernel.grsecurity.chroot_deny_unix = 1 +#kernel.grsecurity.chroot_deny_shmat = 1 + +# +# Auditing & Logging +# + +kernel.grsecurity.audit_ipc = 1 +kernel.grsecurity.audit_mount = 1 + +kernel.grsecurity.forkfail_logging = 1 +kernel.grsecurity.resource_logging = 1 +kernel.grsecurity.signal_logging = 1 +kernel.grsecurity.timechange_logging = 1 + +# +# Disable the loading of modules +# + +#kernel.grsecurity.disable_modules = 1 + +# +# Finally lock the sysctl settings +# + +#kernel.grsecurity.grsec_lock = 1 diff --git a/app-admin/grsecurity-scripts/grsecurity-scripts-1.ebuild b/app-admin/grsecurity-scripts/grsecurity-scripts-1.ebuild new file mode 100644 index 0000000..ba4c951 --- /dev/null +++ b/app-admin/grsecurity-scripts/grsecurity-scripts-1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +IUSE="" +DESCRIPTION="grsecurity scripts" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DEPEND="sys-apps/gradm" + +src_unpack() { + : NOP +} + +src_compile() { + : NOP +} + +src_install() { + local scripts="grsecurity-sysctl grsecurity-rbac grsecurity-rbac-learning" + for s in ${scripts}; do + doinitd ${FILESDIR}/${s} + done + + insinto /etc/grsec + doins ${FILESDIR}/sysctl.conf + + dodoc ${FILESDIR}/sample-kernel-config-pax-grsec.txt +} + +pkg_postinst() { + einfo + einfo "See the included sample kernel config file for kernel" + einfo "configuration options regarding PaX and grsecurity that" + einfo "fit the bundled grsecurity sysctl.conf settings:" + einfo " -> sample-kernel-config-pax-grsec.txt" + einfo + einfo "To set the grsecurity kernel parameters automagically on" + einfo "boot, you should now adjust /etc/grsec/sysctl.conf and add" + einfo "the 'grsecurity-sysctl' init script to the boot runlevel:" + einfo " rc-update add grsecurity-sysctl boot" + einfo + + einfo + einfo "If you want to use the grsecurity RBAC system learning mode," + einfo "you should add the init script 'grsecurity-rbac-learning' to the" + einfo "boot runlevel to catch as many events as possible:" + einfo " rc-update add grsecurity-rbac-learning boot" + einfo + + ewarn + ewarn "If you enable the 'grsecurity-rbac-learning' init script to be" + ewarn "started on boot, you can only finish the grsecurity RBAC" + ewarn "system learning mode using 'gradm -D' from the terminal it" + ewarn "was initially being started on (/dev/console, in this case)!" + ewarn + + einfo + einfo "To enable the grsecurity RBAC system automagically on" + einfo "boot, you should now adjust /etc/grsec/policy and add" + einfo "the 'grsecurity-rbac' init script to the boot runlevel:" + einfo " rc-update add grsecurity-rbac boot" + einfo + + ewarn + ewarn "For both the grsecurity RBAC system learning and production" + ewarn "mode, you must create passwords for the RBAC system itself" + ewarn "and the RBAC system 'admin' role by running the following" + ewarn "commands:" + ewarn + ewarn "To create the grsecurity RBAC system main password:" + ewarn " gradm -P" + ewarn + ewarn "To create the grsecurity RBAC system role 'admin' password:" + ewarn " gradm -P admin" + ewarn +} diff --git a/app-admin/grub-scripts/ChangeLog b/app-admin/grub-scripts/ChangeLog new file mode 100644 index 0000000..a19f6bf --- /dev/null +++ b/app-admin/grub-scripts/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-admin/grub-scripts +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 19 Aug 2008; Wolfram Schlich +files/grub.conf, + +files/grub-md5-crypt.sh, +files/grub-set-default, +grub-scripts-1.ebuild: + initial import + diff --git a/app-admin/grub-scripts/Manifest b/app-admin/grub-scripts/Manifest new file mode 100644 index 0000000..45b7355 --- /dev/null +++ b/app-admin/grub-scripts/Manifest @@ -0,0 +1,5 @@ +AUX grub-md5-crypt.sh 149 RMD160 6822575379e966464228309a483d9a243ef3dbb6 SHA1 796812efa09fb42e997b0e6b5a4ed005e3e8463e SHA256 2a1314e5c41a31cf15d60b40f43c7bbf049e12c5ac530c5c421aba8b9464d54c +AUX grub-set-default 3255 RMD160 ec97628bb1d2d6a7667965d3b8029615cb119bd4 SHA1 4e00f3a19d0bb5c907bb21da2cfc3f59122cd9e2 SHA256 a8395834f4cff198ac0567c441d67c450596ad04387c7f4562f590be3921c083 +AUX grub.conf 1273 RMD160 ec082a778a5c9887fd478ef3c8f149b9bbdb2b6a SHA1 0408deef4324aaaa17ce00597577df37fc8a1b26 SHA256 6d4f87114c8eac828e75bcfefda94761adbb00d7565054f3dfce71e1687aae67 +EBUILD grub-scripts-1.ebuild 880 RMD160 eef78f34e14d75e596911096868e739b2c499942 SHA1 2f7c1ca0de1a74f3222747040863ff27cffece09 SHA256 4f57b36aecb4bc1f22b8d3f02bfdc7339703fb9ea7b848af774981bf69827253 +MISC ChangeLog 289 RMD160 ac3fbba1f5598c8d36cbd5777b4f8390dfa37820 SHA1 72abb1235b7fc6786f5ae3a86e0e508dff15345b SHA256 ae439c6fe9e6099fa58f3824007b6dcbbc7e85c0439a1deac9fc22588c1efdb3 diff --git a/app-admin/grub-scripts/files/grub-md5-crypt.sh b/app-admin/grub-scripts/files/grub-md5-crypt.sh new file mode 100755 index 0000000..a9c1edb --- /dev/null +++ b/app-admin/grub-scripts/files/grub-md5-crypt.sh @@ -0,0 +1,6 @@ +#!/bin/bash +/sbin/grub --batch --device-map=/dev/null <<-EOF | grep '^Encrypted: ' | sed 's/^Encrypted: //' + md5crypt + $(cat) + quit + EOF diff --git a/app-admin/grub-scripts/files/grub-set-default b/app-admin/grub-scripts/files/grub-set-default new file mode 100755 index 0000000..19162b2 --- /dev/null +++ b/app-admin/grub-scripts/files/grub-set-default @@ -0,0 +1,140 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# +# This script looks for a grub-entry=N kernel option +# (needs to be specified in /boot/grub/grub.conf by hand +# and for each kernel entry with the correct number) +# and calls grub-set-default with its value as argument. +# Used to update /boot/grub/default with the current +# running kernel entry for a convenient use of the grub +# fallback mechanism. +# +# Suggestion: +# Copy this script to /etc/init.d/grub-set-default, +# add it to the boot runlevel and use the following +# kernel options in grub.conf: +# +# grub-entry=N panic=5 panic_on_oops=1 +# +# WARNING: +# This script expects /boot to either reside on a separate volume +# and be mounted (readonly is ok), or to be part of the rootfs. +# It is however recommended to put /boot on a separate volume +# and mount it automatically but readonly, so System.map can +# be read but no files (kernel images etc.) can be damaged, removed +# or tampered with in any other way by accident. +# +# Direct feedback to Wolfram Schlich . +# + +depend() { + need localmount +} + +start() { + + # check for /proc stuff + if [[ ! -e /proc/cmdline || ! -e /proc/mounts ]]; then + eerror "/proc does not appear to be mounted, cannot set grub default entry" + eend 1 + return 1 + fi + + # grub.conf entry number to be set as default + declare -i grub_entry=-1 + + # is /boot on a separate volume and mounted read-only? + declare -i boot_ro=0 + + # split kernel command line into positional arguments + IFS=' ' + set -- $( rw" + if ! /bin/mount -o remount,rw /boot; then + eerror "Failed to remount /boot rw" + eend 1 + return 1 + fi + fi + + # call grub-set-default + ebegin "Setting grub default entry to current entry ${grub_entry}" + /sbin/grub-set-default ${grub_entry} + eend ${?} + + # remount /boot ro if needed + if [ ${boot_ro} -eq 1 ]; then + #einfo "Mount point /boot needs remounting -> ro" + if ! /bin/mount -o remount,ro /boot; then + eerror "Failed to remount /boot ro" + eend 1 + return 1 + fi + fi + +} diff --git a/app-admin/grub-scripts/files/grub.conf b/app-admin/grub-scripts/files/grub.conf new file mode 100644 index 0000000..864e12a --- /dev/null +++ b/app-admin/grub-scripts/files/grub.conf @@ -0,0 +1,46 @@ +## +## $Header$ +## Wolfram Schlich +## Licensed under the GNU GPL v2 or later +## + +# > +# > generic settings +# > + +password --md5 %pw_grub_md5% +lock +timeout 10 + +# >> serial console (disable grub splashimage and kernel framebuffer!) +serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 +terminal --timeout=10 console serial + +# >> splash image (disable when using serial console!) +# splashimage = (hd0,0)/boot/grub/splash.xpm.gz + +# >> load last booted kernel by default +default saved +fallback 0 + +# > +# > kernels +# > + +# >> Fallback entry +title = Gentoo Linux [Fallback] (local,serial) {rc:default} + root (hd0,0) + kernel (hd0,0)/bzImage-%kv% root=%dev_root% grub-entry=0 panic=60 panic_on_oops=1 console=ttyS0,115200n8 console=tty0 softlevel=default + savedefault + +# >> Kernel #1 +title = Gentoo Linux [%kv%] (local,serial) {rc:default} + root (hd0,0) + kernel (hd0,0)/bzImage-%kv% root=%dev_root% grub-entry=1 panic=60 panic_on_oops=1 console=ttyS0,115200n8 console=tty0 softlevel=default + savedefault fallback + +# >> Kernel #2 +title = Gentoo Linux [%kv%] (serial,local) {rc:default} + root (hd0,0) + kernel (hd0,0)/bzImage-%kv% root=%dev_root% grub-entry=2 panic=60 panic_on_oops=1 console=tty0 console=ttyS0,115200n8 softlevel=default + savedefault fallback diff --git a/app-admin/grub-scripts/grub-scripts-1.ebuild b/app-admin/grub-scripts/grub-scripts-1.ebuild new file mode 100644 index 0000000..79cfec7 --- /dev/null +++ b/app-admin/grub-scripts/grub-scripts-1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +IUSE="" +DESCRIPTION="grub scripts" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RDEPEND="sys-boot/grub" + +src_unpack() { + : NOP +} + +src_compile() { + : NOP +} + +src_install() { + doinitd "${FILESDIR}"/grub-set-default + dosbin "${FILESDIR}"/grub-md5-crypt.sh + dodoc "${FILESDIR}"/grub.conf +} + +pkg_postinst() { + einfo + einfo "To set the grub default entry automagically on boot, you" + einfo "should now adjust /boot/grub/grub.conf (see the bundled" + einfo "grub.conf example for details) and add the 'grub-set-default'" + einfo "init script to the boot runlevel:" + einfo " rc-update add grub-set-default boot" + einfo +} diff --git a/app-admin/lvm-snapshot-backup-wrapper/ChangeLog b/app-admin/lvm-snapshot-backup-wrapper/ChangeLog new file mode 100644 index 0000000..4776d90 --- /dev/null +++ b/app-admin/lvm-snapshot-backup-wrapper/ChangeLog @@ -0,0 +1,23 @@ +# ChangeLog for app-admin/lvm-snapshot-backup-wrapper +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 18 Mar 2011; Wolfram Schlich + -lvm-snapshot-backup-wrapper-2-r1.ebuild, + +lvm-snapshot-backup-wrapper-2-r2.ebuild: + add EAPI=1 due to bashinator slot dependency + + 28 May 2009; Wolfram Schlich + -lvm-snapshot-backup-wrapper-2.ebuild, + +lvm-snapshot-backup-wrapper-2-r1.ebuild: + fix dependency for USE=rsnapshot + + 27 May 2009; Wolfram Schlich + -lvm-snapshot-backup-wrapper-1.ebuild, + +lvm-snapshot-backup-wrapper-2.ebuild: + version bump + + 27 May 2009; Wolfram Schlich +metadata.xml, + +lvm-snapshot-backup-wrapper-1.ebuild: + initial import + diff --git a/app-admin/lvm-snapshot-backup-wrapper/Manifest b/app-admin/lvm-snapshot-backup-wrapper/Manifest new file mode 100644 index 0000000..d443fb6 --- /dev/null +++ b/app-admin/lvm-snapshot-backup-wrapper/Manifest @@ -0,0 +1,4 @@ +DIST lvm-snapshot-backup-wrapper-2.tar.bz2 4226 RMD160 2800a13bb91da2f65fc4486d75916b71eaecedff SHA1 2dd1c162d24cd2b3a8314c9914ec27efea69d69d SHA256 2f414b60a1d5bd9995b2c8200d93395f0ff499cd8959ad592556a5747f918559 +EBUILD lvm-snapshot-backup-wrapper-2-r2.ebuild 810 RMD160 ecace16c11e8ba0c5871f4f4fa184aa6dca1a6ed SHA1 9e568bba7a4fd6c50c9152f430627c542397b33a SHA256 6a4c77d86f895d84e1e298c750d35b1a209210119fb9f0a16e75c1a61fe42d3b +MISC ChangeLog 779 RMD160 d75eca57fc446a4b2b4426bfc313dcbcc9606250 SHA1 3b1cc69b01aecc1cfbc2cdcd8058f036cb1292e0 SHA256 baae726c961e4ea36387c89b3fab6a5149d6cd78077039f0236f370bc151704c +MISC metadata.xml 509 RMD160 b34e949fd814a2ec48c70be6320662ac845a2e04 SHA1 e2dbc02fb28866bbacdba38c77e2c74fc1ac5cda SHA256 ef31efb8aa25da1970c13b7f492eee31a9d05f815b81dbbf35799844769446e3 diff --git a/app-admin/lvm-snapshot-backup-wrapper/lvm-snapshot-backup-wrapper-2-r2.ebuild b/app-admin/lvm-snapshot-backup-wrapper/lvm-snapshot-backup-wrapper-2-r2.ebuild new file mode 100644 index 0000000..a37a1c3 --- /dev/null +++ b/app-admin/lvm-snapshot-backup-wrapper/lvm-snapshot-backup-wrapper-2-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=1 + +DESCRIPTION="LVM Snapshot Backup Wrapper" +HOMEPAGE="http://www.bashinator.org/projects/lvm-snapshot-backup-wrapper" + +SRC_URI="http://www.bashinator.org/projects/lvm-snapshot-backup-wrapper/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="amd64 x86" +IUSE="rdiff-backup +rsnapshot sudo" + +DEPEND="" +RDEPEND="app-shells/bashinator:0 + >=app-admin/lvm-snaptool-1 + sudo? ( app-admin/sudo ) + rdiff-backup? ( app-backup/rdiff-backup ) + rsnapshot? ( net-misc/rsync )" + +src_compile() { :; } + +src_install() { + insinto /etc/${PN} + doins ${PN}.cfg.sh + doins bashinator.cfg.sh + dosbin ${PN}.sh + insinto /usr/lib + doins ${PN}.lib.sh + docinto example + PORTAGE_COMPRESS= dodoc example/* +} diff --git a/app-admin/lvm-snapshot-backup-wrapper/metadata.xml b/app-admin/lvm-snapshot-backup-wrapper/metadata.xml new file mode 100644 index 0000000..e9af826 --- /dev/null +++ b/app-admin/lvm-snapshot-backup-wrapper/metadata.xml @@ -0,0 +1,15 @@ + + + + no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + + Depend on rdiff-backup + Depend on rsnapshot + Depend on sudo for execution by unprivileged users + + diff --git a/app-admin/lvm-snaptool/ChangeLog b/app-admin/lvm-snaptool/ChangeLog new file mode 100644 index 0000000..d4c55ad --- /dev/null +++ b/app-admin/lvm-snaptool/ChangeLog @@ -0,0 +1,25 @@ +# ChangeLog for app-admin/lvm-snaptool +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 18 Mar 2011; Wolfram Schlich + -lvm-snaptool-1.2.ebuild, -lvm-snaptool-1.4.ebuild, + +lvm-snaptool-1.4-r1.ebuild: + add EAPI=1 due to bashinator slot dependency, removed old version. + + 22 Mar 2010; Wolfram Schlich + +lvm-snaptool-1.4.ebuild: + version bump + + 07 Oct 2009; Wolfram Schlich -lvm-snaptool-1.ebuild, + -lvm-snaptool-1.1.ebuild, +lvm-snaptool-1.2.ebuild: + version bump, this time REALLY fixes a bug with bash-4. removed old versions. + + 07 Oct 2009; Wolfram Schlich + +lvm-snaptool-1.1.ebuild: + version bump, fixes a bug with bash-4 + + 27 May 2009; Wolfram Schlich +metadata.xml, + +lvm-snaptool-1.ebuild: + initial import + diff --git a/app-admin/lvm-snaptool/Manifest b/app-admin/lvm-snaptool/Manifest new file mode 100644 index 0000000..382ad74 --- /dev/null +++ b/app-admin/lvm-snaptool/Manifest @@ -0,0 +1,4 @@ +DIST lvm-snaptool-1.4.tar.bz2 8990 RMD160 74af377637b90c0ba1a41444990c3a0156bda663 SHA1 514cf2090503bb0f8a9cea6b737763b631c1bb62 SHA256 8a40edbeaf21aab336eea0d5b159d58f2f7020cb5561e1648b9da7a54224c5b3 +EBUILD lvm-snaptool-1.4-r1.ebuild 610 RMD160 63b8c6951ec5024c2601db5323f369a4ad7b8c6f SHA1 258a3df38801a530337d1c430c5aa2d815a88130 SHA256 02a5ca29ef8f34206df4f3c2595033bba0abb1e31a2fdf8e026d976ae1c917a0 +MISC ChangeLog 874 RMD160 c6d14384979aeff437abba5893fbed2b522b4225 SHA1 3be5a1c1b5af8203c4b42dfc9c84a498f98dbec7 SHA256 13b2386e379f726b1eb298a75354a442a9060325060c03068d5b21c65a170620 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-admin/lvm-snaptool/lvm-snaptool-1.4-r1.ebuild b/app-admin/lvm-snaptool/lvm-snaptool-1.4-r1.ebuild new file mode 100644 index 0000000..fa16cfc --- /dev/null +++ b/app-admin/lvm-snaptool/lvm-snaptool-1.4-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=1 + +DESCRIPTION="LVM Snapshot Toolkit" +HOMEPAGE="http://www.bashinator.org/projects/lvm-snaptool" + +SRC_URI="http://www.bashinator.org/projects/lvm-snaptool/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="app-shells/bashinator:0 + sys-fs/lvm2 + sys-fs/e2fsprogs + sys-devel/bc" + +src_compile() { :; } + +src_install() { + insinto /etc/${PN} + doins ${PN}.cfg.sh + doins bashinator.cfg.sh + dosbin ${PN}.sh + insinto /usr/lib + doins ${PN}.lib.sh +} diff --git a/app-admin/lvm-snaptool/metadata.xml b/app-admin/lvm-snaptool/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-admin/lvm-snaptool/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-admin/mon/Manifest b/app-admin/mon/Manifest new file mode 100644 index 0000000..28a0f38 --- /dev/null +++ b/app-admin/mon/Manifest @@ -0,0 +1,24 @@ +AUX mon-1.2.0-sendmail.patch 1450 RMD160 26e24a127b07855973b848f7ced95cd540ebc16e SHA1 37062b6764c688d7c09c122e276dbb63847b95d6 SHA256 7f72873f2669138ab1ee8fa6a1129936e8f5c65bee5da23b9ae03c0b9adfdab5 +MD5 70400bd77cafb35cae2c10c4bcb5ba3a files/mon-1.2.0-sendmail.patch 1450 +RMD160 26e24a127b07855973b848f7ced95cd540ebc16e files/mon-1.2.0-sendmail.patch 1450 +SHA256 7f72873f2669138ab1ee8fa6a1129936e8f5c65bee5da23b9ae03c0b9adfdab5 files/mon-1.2.0-sendmail.patch 1450 +AUX mon-1.2.0-syslog.patch 483 RMD160 a44e89b478a6a197095cbddcf138b7121f45d17f SHA1 17378c67c02bed9d413ff61f481aa5d606a59c4c SHA256 6cbd6683d55bbfd1da0f0b395a36bc4e177a9446899e6fdce26da4c2658b5b9e +MD5 bb5741768a3c76b028fe778e16359791 files/mon-1.2.0-syslog.patch 483 +RMD160 a44e89b478a6a197095cbddcf138b7121f45d17f files/mon-1.2.0-syslog.patch 483 +SHA256 6cbd6683d55bbfd1da0f0b395a36bc4e177a9446899e6fdce26da4c2658b5b9e files/mon-1.2.0-syslog.patch 483 +AUX mon.cf 751 RMD160 1a039992f4e7812be4a029b9eddf07c6301e8d2b SHA1 757751288e49b15c492c646875377a523ce9dfbd SHA256 209da270077b8837bc10f10c1b13a8a2d835fe1c633b7676c6862ee10b9c3f17 +MD5 0a1e2a0813ad7879c29b8233ccddddbf files/mon.cf 751 +RMD160 1a039992f4e7812be4a029b9eddf07c6301e8d2b files/mon.cf 751 +SHA256 209da270077b8837bc10f10c1b13a8a2d835fe1c633b7676c6862ee10b9c3f17 files/mon.cf 751 +AUX mon.init 731 RMD160 a3515e8d9c61b3868eb64387a72f59b9589cd738 SHA1 f5ebfd680f4de41ac8d5243b6c63c8f1778617b4 SHA256 52d096ee3ebbf26e422cad715abaec14f3e3208e8df5616f0b2a1adf8f2a15ca +MD5 4fce90c7d9dc2d7873e2c39ef91fba27 files/mon.init 731 +RMD160 a3515e8d9c61b3868eb64387a72f59b9589cd738 files/mon.init 731 +SHA256 52d096ee3ebbf26e422cad715abaec14f3e3208e8df5616f0b2a1adf8f2a15ca files/mon.init 731 +DIST mon-1.2.0.tar.bz2 245480 RMD160 51a40f2eda425c23f2afe92ffbf0ebe0cc5c58fe SHA1 e3a0c8e687c65cc944c8ce17cb1a3a7a8c4cc018 SHA256 a97550bf5051eb8dc4f77c0f30fa501f138f51e49f0957ce6967e7916213bf91 +EBUILD mon-1.2.0.ebuild 1496 RMD160 9830bb6f1e2943e2a7dd5bfaaf31aff36115613d SHA1 ed9982e23f347080b96689030f4e8476543ec4b6 SHA256 b6449a85b3e047deac575deee647f62f5bc938d0745f79774b478aca7395d8ee +MD5 d846cb9880d584c22ff7fceea71f7ef3 mon-1.2.0.ebuild 1496 +RMD160 9830bb6f1e2943e2a7dd5bfaaf31aff36115613d mon-1.2.0.ebuild 1496 +SHA256 b6449a85b3e047deac575deee647f62f5bc938d0745f79774b478aca7395d8ee mon-1.2.0.ebuild 1496 +MD5 3b199947de74d27ea4a2021870a2553b files/digest-mon-1.2.0 232 +RMD160 5e88daf12d596add085f791840d717e5f1c0ce17 files/digest-mon-1.2.0 232 +SHA256 29749b7ab0c96e67b24797785c597ab6d11399938d7c5d752a3db4fb9bdfb5b5 files/digest-mon-1.2.0 232 diff --git a/app-admin/mon/files/digest-mon-1.2.0 b/app-admin/mon/files/digest-mon-1.2.0 new file mode 100644 index 0000000..5a961fa --- /dev/null +++ b/app-admin/mon/files/digest-mon-1.2.0 @@ -0,0 +1,3 @@ +MD5 ed52e4d4c6bbe8bca72f2a7843c0bcea mon-1.2.0.tar.bz2 245480 +RMD160 51a40f2eda425c23f2afe92ffbf0ebe0cc5c58fe mon-1.2.0.tar.bz2 245480 +SHA256 a97550bf5051eb8dc4f77c0f30fa501f138f51e49f0957ce6967e7916213bf91 mon-1.2.0.tar.bz2 245480 diff --git a/app-admin/mon/files/mon-1.2.0-sendmail.patch b/app-admin/mon/files/mon-1.2.0-sendmail.patch new file mode 100644 index 0000000..e174295 --- /dev/null +++ b/app-admin/mon/files/mon-1.2.0-sendmail.patch @@ -0,0 +1,36 @@ +diff -urN mon-1.2.0.orig/alert.d/mail.alert mon-1.2.0/alert.d/mail.alert +--- mon-1.2.0.orig/alert.d/mail.alert 2005-04-17 09:42:26.000000000 +0200 ++++ mon-1.2.0/alert.d/mail.alert 2007-09-03 18:19:50.000000000 +0200 +@@ -46,7 +46,7 @@ + $t = localtime($opt_t); + ($wday,$mon,$day,$tm) = split (/\s+/, $t); + +-open (MAIL, "| /usr/lib/sendmail -oi -t $mailfrom") || ++open (MAIL, "| /usr/sbin/sendmail -oi -t $mailfrom") || + die "could not open pipe to mail: $!\n"; + print MAIL < -pwman-0.3.4.ebuild: + removed old version + + 06 Mar 2009; Wolfram Schlich pwman-0.3.9.ebuild: + added amd64 + diff --git a/app-admin/pwman/Manifest b/app-admin/pwman/Manifest new file mode 100644 index 0000000..7cee0d9 --- /dev/null +++ b/app-admin/pwman/Manifest @@ -0,0 +1,3 @@ +DIST pwman-0.3.9.tar.gz 103819 RMD160 2bbbf8c53219cc61bb5aa3334b10735c16e92952 SHA1 e0803f68330d8c94e54c230475bf62f0b012694f SHA256 2df0885988fb786feb4fe905ac724fc50b93d85f63432b04561f20e734528442 +EBUILD pwman-0.3.9.ebuild 522 RMD160 ac568c9dd5f3b5e1803a098390f48f914f18d201 SHA1 10c179e6a30f6795cf20e329e2c443a2e486ed6a SHA256 63cb62294a6d50a0dee0e404818bb0290f4b7cfa21a3514b734c9c98d809aa34 +MISC ChangeLog 301 RMD160 517e1b5d887a24907733fbe628196d2785bb3f98 SHA1 0c13f0594f4bf6a19d2d059bad56132449f105d3 SHA256 fb7d7dd04492cacac2b19164a4e0343dc0b95c516fbbe019852c8b6e170de353 diff --git a/app-admin/pwman/pwman-0.3.9.ebuild b/app-admin/pwman/pwman-0.3.9.ebuild new file mode 100644 index 0000000..70c8cde --- /dev/null +++ b/app-admin/pwman/pwman-0.3.9.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +DESCRIPTION="console password manager" +HOMEPAGE="http://pwman.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="x86 amd64" +DEPEND="sys-libs/ncurses dev-libs/libxml2" +RDEPEND="${DEPEND}" + +src_compile() { + econf || die "configure failed" + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" +} diff --git a/app-admin/pwman3/Manifest b/app-admin/pwman3/Manifest new file mode 100644 index 0000000..9da991d --- /dev/null +++ b/app-admin/pwman3/Manifest @@ -0,0 +1,8 @@ +DIST Pwman3-0.0.5.tar.gz 28757 RMD160 4455700e7926dfd8b2fa7a004cfdda1994d770ec SHA1 1520c7aef9aa48582154c30b575edd53fdb0da49 SHA256 22bcd58ba9131ea40502724542266de7fdb54e381a921097db985591591b2b45 +EBUILD pwman3-0.0.5.ebuild 535 RMD160 9f671017f6595fb59a1dfa368f4a2a875c3b4aac SHA1 9c377310fc030db65968a1ed4505222279de9f58 SHA256 21d2bdecb29a5297731cee65b7b7de0418212072138eb1f5cb16ac5fd1c4337c +MD5 f1540101e878debb1a0fe137779a18d8 pwman3-0.0.5.ebuild 535 +RMD160 9f671017f6595fb59a1dfa368f4a2a875c3b4aac pwman3-0.0.5.ebuild 535 +SHA256 21d2bdecb29a5297731cee65b7b7de0418212072138eb1f5cb16ac5fd1c4337c pwman3-0.0.5.ebuild 535 +MD5 e6901e48ca536d2cc7b935618e62d281 files/digest-pwman3-0.0.5 235 +RMD160 47c46978264e0a467d1883a50544c6229539a219 files/digest-pwman3-0.0.5 235 +SHA256 91141e4374214c82d9529168de895f8be1875d85dd4932222852553ce0059e5b files/digest-pwman3-0.0.5 235 diff --git a/app-admin/pwman3/files/digest-pwman3-0.0.5 b/app-admin/pwman3/files/digest-pwman3-0.0.5 new file mode 100644 index 0000000..34f8fa9 --- /dev/null +++ b/app-admin/pwman3/files/digest-pwman3-0.0.5 @@ -0,0 +1,3 @@ +MD5 4e92074487a252574ee7b2ef2fc7456c Pwman3-0.0.5.tar.gz 28757 +RMD160 4455700e7926dfd8b2fa7a004cfdda1994d770ec Pwman3-0.0.5.tar.gz 28757 +SHA256 22bcd58ba9131ea40502724542266de7fdb54e381a921097db985591591b2b45 Pwman3-0.0.5.tar.gz 28757 diff --git a/app-admin/pwman3/pwman3-0.0.5.ebuild b/app-admin/pwman3/pwman3-0.0.5.ebuild new file mode 100644 index 0000000..091021b --- /dev/null +++ b/app-admin/pwman3/pwman3-0.0.5.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit distutils + +DESCRIPTION="console based password management application" +HOMEPAGE="http://pwman.bleurgh.com/" +MY_P="Pwman3-${PV}" +S="${WORKDIR}/${MY_P}" +SRC_URI="http://pwman.bleurgh.com/~ivan/pwman3/source/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +DEPEND=">=dev-python/pysqlite-2.0.0 + dev-python/pycrypto + dev-python/celementtree" + +src_compile() { + : +} + +src_install() { + distutils_src_install +} diff --git a/app-admin/pwsafe/Manifest b/app-admin/pwsafe/Manifest new file mode 100644 index 0000000..bcbffe2 --- /dev/null +++ b/app-admin/pwsafe/Manifest @@ -0,0 +1,8 @@ +DIST pwsafe-0.2.0.tar.gz 127433 RMD160 5509379f0bb4acea855183e1249395cdc23954d2 SHA1 026643a391796a527a48ffccf93d542113ca79d4 SHA256 61e91dc5114fe014a49afabd574eda5ff49b36c81a6d492c03fcb10ba6af47b7 +EBUILD pwsafe-0.2.0.ebuild 538 RMD160 3a3d508602bde94559b122e91af38e42ef187a9d SHA1 d2406930c7d6e7865927efa2f01bc9eac55ea63a SHA256 e9cf88b82a4163f1664b5948e7ca2841accf31e2cccb75b6774066a19afd92bf +MD5 5ab1172e3816555d603d56ccbc73cdbb pwsafe-0.2.0.ebuild 538 +RMD160 3a3d508602bde94559b122e91af38e42ef187a9d pwsafe-0.2.0.ebuild 538 +SHA256 e9cf88b82a4163f1664b5948e7ca2841accf31e2cccb75b6774066a19afd92bf pwsafe-0.2.0.ebuild 538 +MD5 3cbdffef07c96feb1025a192c890d847 files/digest-pwsafe-0.2.0 238 +RMD160 2130c6f703ea9053e460ca0a7c24c26795f93521 files/digest-pwsafe-0.2.0 238 +SHA256 8cffce90e9c9c5b50b323a9b900001411a03f1771d0d1742bacd151c2fbc52a7 files/digest-pwsafe-0.2.0 238 diff --git a/app-admin/pwsafe/files/digest-pwsafe-0.2.0 b/app-admin/pwsafe/files/digest-pwsafe-0.2.0 new file mode 100644 index 0000000..4c2ff0e --- /dev/null +++ b/app-admin/pwsafe/files/digest-pwsafe-0.2.0 @@ -0,0 +1,3 @@ +MD5 4bb36538a2772ecbf1a542bc7d4746c0 pwsafe-0.2.0.tar.gz 127433 +RMD160 5509379f0bb4acea855183e1249395cdc23954d2 pwsafe-0.2.0.tar.gz 127433 +SHA256 61e91dc5114fe014a49afabd574eda5ff49b36c81a6d492c03fcb10ba6af47b7 pwsafe-0.2.0.tar.gz 127433 diff --git a/app-admin/pwsafe/pwsafe-0.2.0.ebuild b/app-admin/pwsafe/pwsafe-0.2.0.ebuild new file mode 100644 index 0000000..16423cb --- /dev/null +++ b/app-admin/pwsafe/pwsafe-0.2.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="pwsafe" +HOMEPAGE="http://nsd.dyndns.org/pwsafe/" +SRC_URI="http://nsd.dyndns.org/pwsafe/releases/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +DEPEND="dev-libs/openssl + sys-libs/readline + sys-libs/ncurses" + +src_compile() { + econf || die "configure failed" + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc README NEWS ChangeLog TODO +} diff --git a/app-admin/syslog-ng/ChangeLog b/app-admin/syslog-ng/ChangeLog new file mode 100644 index 0000000..7e5c6e7 --- /dev/null +++ b/app-admin/syslog-ng/ChangeLog @@ -0,0 +1,40 @@ +# ChangeLog for app-admin/syslog-ng +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Nov 2009; Wolfram Schlich + -files/syslog-ng-2.1.1-libdbi.patch, +files/syslog-ng.conf-3.0, + files/syslog-ng.init, -syslog-ng-2.0.9_p20080626.ebuild, + -syslog-ng-2.1.1.ebuild, -syslog-ng-2.1.3.ebuild, + +syslog-ng-3.0.4-r100.ebuild: + version bump with special config for 3.0; removed old stuff + + 18 Mar 2009; Wolfram Schlich + +syslog-ng-2.1.4.ebuild: + version bump + + 29 Nov 2008; Wolfram Schlich + files/syslog-ng.logrotate, +syslog-ng-2.1.3.ebuild: + version bump, changed logrotate script to restart mailgraph + + 07 Oct 2008; Wolfram Schlich + +files/syslog-ng-2.1.1-libdbi.patch, +syslog-ng-2.1.1.ebuild: + version bump + + 26 Jun 2008; Wolfram Schlich files/syslog-ng.conf, + -syslog-ng-2.0.8_p20080205.ebuild, -syslog-ng-2.0.9_p20080328.ebuild, + +syslog-ng-2.0.9_p20080626.ebuild: + version bump, removed old versions + + 31 Mar 2008; Wolfram Schlich files/syslog-ng.conf: + added dedicated logfile for nagios + + 28 Mar 2008; Wolfram Schlich + -syslog-ng-2.0.5_p20070727.ebuild, -syslog-ng-2.0.6_p20071204.ebuild, + -syslog-ng-2.0.7_p20080124.ebuild: + removed old versions + + 28 Mar 2008; Wolfram Schlich + +syslog-ng-2.0.9_p20080328.ebuild: + version bump + diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest new file mode 100644 index 0000000..73b2620 --- /dev/null +++ b/app-admin/syslog-ng/Manifest @@ -0,0 +1,11 @@ +AUX syslog-ng.conf 22103 RMD160 e3a40952182d382e121ff55e36d5e84398ba3293 SHA1 bab8f1043bcb5211031b40a649251c25328135cd SHA256 72cb47ed0f3e881ed24e73a421293ada3838e41a7ea79334b72cd099ed4d8089 +AUX syslog-ng.conf-3.0 22487 RMD160 eddb69f6396b240c25ee57532e479100fd53ed71 SHA1 71d1fbf722e8bd2ea519b6f6a95a4b82190dad66 SHA256 a01c069a838e8b7866e6345079d297f40f6aa35e1bf10fe74aa7262a174ac1e5 +AUX syslog-ng.confd 150 RMD160 b5ab31e1c285fdd2f41324abc2c6b39bce59038d SHA1 c5df6ef1eca2a169fb3073816d4a06b7c85c0b0c SHA256 8319ca8e39a5dab5ddc82eede088e1f58ff25deef330804648000359cb736a3f +AUX syslog-ng.init 1768 RMD160 3da373260b51150d8fa6103abbd215123459f33d SHA1 7c4aa322d5c68f93db667ecd36410ef8aceb46dd SHA256 bbdd8e1913e04c284d0823b95a19ea0ff0e8090013ac4197faa806dc0ccb4a8d +AUX syslog-ng.logrotate 1263 RMD160 258262e4a5a1b2b464c290769d265404e201ac64 SHA1 ea05ac9f2679fd99e03e55a60e809fc0abe8b897 SHA256 6b8831fbfcf0bcc39acf200e319a6e245b09151cfbc1a65d577cdc6272a76108 +AUX syslog-ng.remote.current.cron 471 RMD160 443451ea8d3ae75642b2803634ec53ac0c3f22e0 SHA1 176546b01806d30ebeac8842b343fead2b1630ca SHA256 f8266bfbbd75f1d2516ead3828a7eb7d826164f36cb241d65c56dd64cad0e212 +DIST syslog-ng_2.1.4.tar.gz 423703 RMD160 2a87cb05de9a25f5b09cd488cf9d2104ba29aa33 SHA1 8080ff36f4da3a987cba505ff312650943f4c6c4 SHA256 e2189c7dbf617f2fc883ab0a8a86100dbe7cb4853c6b39732d77e73f335b0502 +DIST syslog-ng_3.0.4.tar.gz 548607 RMD160 97a467e304ff1669cdfc9061838b180b28e58c9e SHA1 a0b37b14b88d92577a384883c6287593e7b203f1 SHA256 00fe3aeb25acf18e37973228475ae0dd3d9791620f500d2c918d582c35a25068 +EBUILD syslog-ng-2.1.4.ebuild 3888 RMD160 9056e213f6d036f28c257f753faa22e891b535b3 SHA1 57fdcf32b5e4bf026068bf4dbcff2cc7a256b748 SHA256 3a401b24a565956e141866b4d11387060c92ccf0b14a50c737b438c24592b8d4 +EBUILD syslog-ng-3.0.4-r100.ebuild 4277 RMD160 9c4585abc6d1ff931843bf53b018132f17b7f720 SHA1 40ef67ec44d4b90429814300591d7eed60950b16 SHA256 0d7753dda8ed4559c5f086eb7d241d4b1e27f5cc2e5fc1f5eee8aa5070500350 +MISC ChangeLog 1471 RMD160 5d6634acf520e50894a5cbdbf45cce188e448e2c SHA1 daf57a00100261173aa3db005148604c001e0a55 SHA256 daf4ba17ce8bd5d90a4db2026fd215ce58b14ed1044d2bb1984b0daf906dd43f diff --git a/app-admin/syslog-ng/files/syslog-ng.conf b/app-admin/syslog-ng/files/syslog-ng.conf new file mode 100644 index 0000000..d99f3e7 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf @@ -0,0 +1,505 @@ +# $Header: /home/wschlich/work/gentoo/autosetup/gentoo-autosetup-current/gentoo-autosetup.d/syslog-ng/RCS/syslog-ng.conf,v 1.2 2007/05/31 10:31:37 wschlich Exp wschlich $ +# vim:nowrap: +# syslog-ng config created by +# - Wolfram Schlich +# - Klaus Schleicher +# Distributed under the terms of the GNU General Public License v2 +# +# see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/index.html + +## +## global options +## +## see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch09s06.html +## + +options { + + ## general settings + time_reopen(10); # Reopen a dead connection after this many seconds + time_reap(120); # Close an idle destination file after this many seconds + time_sleep(5); # Wait these many milliseconds between poll iterations + ts_format(rfc3164); # Timestamp format: rfc3164|rfc3339|bsd|iso + log_fifo_size(1000); # Output queue size + log_msg_size(8192); # Max size of a single message + log_fetch_limit(1000); # The maximum number of messages fetched from a source during a single poll loop. + flush_lines(10); # Buffer this many lines of output (0 to send to disk immediately) + flush_timeout(1000); # Wait at most this many milliseconds before forcibly flushing the output buffer + mark_freq(300); # MARK line logging interval + stats_freq(0); # Stats logging interval (0 = disabled) + + ## remote logging + normalize_hostnames(yes); # Do normalize hostnames (transform to lower case) + chain_hostnames(on); # Chain hostnames? + keep_hostname(yes); # Keep the hostname the client sent? + keep_timestamp(no); # Do not use the timestamp the client sent -- it might be wrong + use_dns(yes); # Use DNS? Good for log servers. + use_fqdn(no); # Use FQDNs? Good for log servers. + dns_cache(yes); # Cache DNS results? + dns_cache_size(1024); # Number of DNS lookup results to cache + dns_cache_expire(3600); # Expire cached successful DNS lookup results after this many seconds + dns_cache_expire_failed(60); # Expire cached failed DNS lookup results after this many seconds + + ## log file handling + create_dirs(yes); # Create directories for log files if they don't exist + dir_owner("root"); # Owner of newly created directories + dir_group("adm"); # Group of newly created directories + dir_perm(0750); # Permissions of newly created directories + owner("root"); # Owner of newly created log files + group("adm"); # Group of newly created log files + perm(0640); # Permissions of newly created log files + + ## misc + # Some program send log messages through a private implementation. + # and sometimes that implementation is bad. If this happen syslog-ng + # may recognise the program name as hostname. Whit this option + # we tell the syslog-ng that if a hostname match this regexp than that + # is not a real hostname. + bad_hostname("^gconfd$"); + +}; + +## +## filters +## +## see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s06.html +## + +## standard syslog facilities +filter f_kern { facility(kern); }; +filter f_auth { facility(auth); }; # -- note: 'security' is a deprecated alias +filter f_authpriv { facility(authpriv); }; +filter f_syslog { facility(syslog); }; +filter f_daemon { facility(daemon); }; +filter f_cron { facility(cron); }; +filter f_ftp { facility(ftp); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_news { facility(news); }; +filter f_uucp { facility(uucp); }; +filter f_user { facility(user); }; +filter f_local0 { facility(local0); }; +filter f_local1 { facility(local1); }; +filter f_local2 { facility(local2); }; +filter f_local3 { facility(local3); }; +filter f_local4 { facility(local4); }; +filter f_local5 { facility(local5); }; +filter f_local6 { facility(local6); }; +filter f_local7 { facility(local7); }; + +## standard syslog priorities: "exactly" +filter f_emerg { priority(emerg); }; # 0 -- note: 'panic' is a deprecated alias +filter f_alert { priority(alert); }; # 1 +filter f_crit { priority(crit); }; # 2 +filter f_err { priority(err); }; # 3 -- note: 'error' is a deprecated alias +filter f_warning { priority(warning); }; # 4 -- note: 'warn' is a deprecated alias +filter f_notice { priority(notice); }; # 5 +filter f_info { priority(info); }; # 6 +filter f_debug { priority(debug); }; # 7 + +## standard syslog priorities: "at least" +filter f_alert+ { priority(alert..emerg); }; # 1-0 +filter f_crit+ { priority(crit..emerg); }; # 2-0 +filter f_err+ { priority(err..emerg); }; # 3-0 +filter f_warning+ { priority(warning..emerg); }; # 4-0 +filter f_notice+ { priority(notice..emerg); }; # 5-0 +filter f_info+ { priority(info..emerg); }; # 6-0 +filter f_debug+ { priority(debug..emerg); }; # 7-0 + +## +## templates for the log messages +## +## see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s07.html +## +## WARNING: syslog logfile analysis tools might stumble over non-standard +## formats! tools like mailgraph and tenshi just come to mind. +## +## for tenshi, it's easy to circumvent problems by either using the standard +## format for the tenshi fifo or by using the "logprefix" feature in tenshi.conf +## to match the custom format, e.g. when using facility and priority as alerting +## criteria. +## +## mailgraph probably needs to be patched for being able to deal with a +## non-standard log message format. +## + +# macro quick-reference: +# - DATE: "Jun 13 15:58:00" (default syslog date) +# - FULLDATE: "2006 Jun 13 15:56:57" +# - ISODATE: "2006-06-13T15:56:51+02:00" +# - PRI: see http://www.faqs.org/rfcs/rfc3164.html, 4.1.1 +# - TZOFFSET: "+02:00" + +## default message format (standard syslog message format) +template t_default { template("${DATE} ${HOST} ${MSG}\n"); template_escape(no); }; + +## log and admin console messagee formats +template t_logtty { template("${DATE}; ${FACILITY}.${PRIORITY}; ${MSG}\n"); template_escape(no); }; +template t_admintty { template("${DATE}; ${FACILITY}.${PRIORITY}; ${MSG}\n"); template_escape(no); }; + +## custom local message format (used by default throughout this configuration, also see t_remote_r) +template t_local { template("${YEAR}-${MONTH}-${DAY} ${HOUR}:${MIN}:${SEC} ${TZOFFSET}; ${HOST}; ${FACILITY}.${PRIORITY}; ${MSG}\n"); template_escape(no); }; + +## tenshi message format (tenshi.conf needs to be adjusted for this format!) +template t_tenshi { template("${HOST}; ${FACILITY}.${PRIORITY}; ${MSG}\n"); template_escape(no); }; + +## mailgraph message format +template t_mgraph { template("${DATE} ${HOST} ${MSG}\n"); template_escape(no); }; + +## remote reception message format (replaces time information of received messages with local system time) +template t_remote_r { template("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC} ${R_TZOFFSET}; ${HOST}/${SOURCEIP}; ${FACILITY}.${PRIORITY}; ${MSG}\n"); template_escape(no); }; + +## remote delivery message format (standard syslog protocol format) +template t_remote_d { template("<${PRI}>${DATE} ${HOST} ${MSG}\n"); template_escape(no); }; + +## +## local sources +## +## see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s03.html +## + +## local syslog messages + syslog-ng internal messages +source s_local { + unix-stream("/dev/log" max-connections(1000)); + internal(); +}; + +## kernel messages +source s_kernel { + file("/proc/kmsg" flags(kernel) log_prefix("kernel: ")); +}; + +## +## local destinations and log paths +## +## see http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s04.html +## and http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s05.html +## + +# +# discard messages +# + +## example for discarding certain messages using an empty destination and the final flag +#destination d_null { }; +#filter f_null { match("I am a message that wants to be discarded"); }; +#log { source(s_local); filter(f_null); destination(d_null); flags(final); }; + +# +# system specials +# + +## kernel messages +destination d_kernel { file("/var/log/syslog-ng/kernel.log" template(t_local)); }; +log { source(s_kernel); destination(d_kernel); }; + +## log console +destination d_logtty { file("/dev/tty10" template(t_logtty)); }; +log { source(s_local); source(s_kernel); destination(d_logtty); }; + +## admin console +destination d_admintty { usertty("root"); }; +log { source(s_local); filter(f_emerg); destination(d_admintty); }; + +## tenshi (log monitoring): log all messages to a fifo -- note: the fifo needs to be created with mkfifo first! +#destination d_tenshi { fifo("/var/log/tenshi.fifo" owner("root") group("tenshi") perm(0640) template(t_tenshi)); }; +#log { source(s_local); source(s_kernel); destination(d_tenshi); }; + +## mailgraph: log all messages for facility 'mail' to a fifo -- note: the fifo needs to be created with mkfifo first! +#destination d_mgraph { fifo("/var/log/mgraph.fifo" owner("root") group("mgraph") perm(0640) template(t_mgraph)); }; +#log { source(s_local); filter(f_mail); destination(d_mgraph); }; + +# +# application specific +# + +## firewall (iptables, using custom iptables log prefixes) +destination d_firewall { file("/var/log/syslog-ng/firewall.log" template(t_local)); }; +filter f_firewall { match("^kernel: ipt_FW ") or match("^kernel: ip4t_FW ") or match("^kernel: ip6t_FW "); }; +log { source(s_kernel); filter(f_firewall); destination(d_firewall); }; + +## sudo +destination d_sudo { file("/var/log/syslog-ng/sudo.log" template(t_local)); }; +filter f_sudo { program("^sudo$"); }; +log { source(s_local); filter(f_sudo); destination(d_sudo); }; + +## sshd +destination d_sshd { file("/var/log/syslog-ng/sshd.log" template(t_local)); }; +filter f_sshd { program("^sshd$") or program("^sftp-server$"); }; +log { source(s_local); filter(f_sshd); destination(d_sshd); }; + +## cron +destination d_cron { file("/var/log/syslog-ng/cron.log" template(t_local)); }; +filter f_cron { facility(cron); }; +log { source(s_local); filter(f_cron); destination(d_cron); }; + +## xinetd +destination d_xinetd { file("/var/log/syslog-ng/xinetd.log" template(t_local)); }; +filter f_xinetd { program("^xinetd$"); }; +log { source(s_local); filter(f_xinetd); destination(d_xinetd); }; + +## postfix +destination d_postfix { file("/var/log/syslog-ng/postfix.log" template(t_local)); }; +filter f_postfix { program("^postfix/") or program("^postgrey"); }; +log { source(s_local); filter(f_postfix); destination(d_postfix); }; + +## fetchmail +destination d_fetchmail { file("/var/log/syslog-ng/fetchmail.log" template(t_local)); }; +filter f_fetchmail { program("^fetchmail$"); }; +log { source(s_local); filter(f_fetchmail); destination(d_fetchmail); }; + +## dovecot +destination d_dovecot { file("/var/log/syslog-ng/dovecot.log" template(t_local)); }; +filter f_dovecot { program("^dovecot$"); }; +log { source(s_local); filter(f_dovecot); destination(d_dovecot); }; + +## courier smtp/imap/pop3 +destination d_courier { file("/var/log/syslog-ng/courier.log" template(t_local)); }; +filter f_courier { program("^courier") or program("^pop3d$") or program("^pop3d-ssl$") or program("^imapd$") or program("^imapd-ssl$"); }; +log { source(s_local); filter(f_courier); destination(d_courier); }; + +## uw-imap +#destination d_uwimap { file("/var/log/syslog-ng/uw-imap.log" template(t_local)); }; +#filter f_uwimap { program("^ipop3d$") or program("^imapd$"); }; +#log { source(s_local); filter(f_uwimap); destination(d_uwimap); }; + +## antivir +destination d_antivir { file("/var/log/syslog-ng/antivir.log" template(t_local)); }; +filter f_antivir { program("^antivir$"); }; +log { source(s_local); filter(f_antivir); destination(d_antivir); }; + +## antivir mailgate +destination d_avmailgate { file("/var/log/syslog-ng/avmailgate.log" template(t_local)); }; +filter f_avmailgate { program("^avmailgate.bin$") or program("^avgated$") or program("^avgatefwd$"); }; +log { source(s_local); filter(f_avmailgate); destination(d_avmailgate); }; + +## clamav +destination d_clamav { file("/var/log/syslog-ng/clamav.log" template(t_local)); }; +filter f_clamav { program("^clamd$") or program("^freshclam$"); }; +log { source(s_local); filter(f_clamav); destination(d_clamav); }; + +## amavis +## mark debug messages as final so they don't get into any other file +destination d_amavis { file("/var/log/syslog-ng/amavis.log" template(t_local)); }; +filter f_amavis { program("^amavis$"); }; +log { source(s_local); filter(f_amavis); filter(f_debug); destination(d_amavis); flags(final); }; +log { source(s_local); filter(f_amavis); destination(d_amavis); }; + +## spamassassin +destination d_spamassassin { file("/var/log/syslog-ng/spamassassin.log" template(t_local)); }; +filter f_spamassassin { program("^spamd$") or program("^spamc"); }; +log { source(s_local); filter(f_spamassassin); destination(d_spamassassin); }; + +## ntpd +destination d_ntpd { file("/var/log/syslog-ng/ntpd.log" template(t_local)); }; +filter f_ntpd { program("^ntpd$"); }; +log { source(s_local); filter(f_ntpd); destination(d_ntpd); }; + +## OpenVPN +destination d_openvpn { file("/var/log/syslog-ng/openvpn.log" template(t_local)); }; +filter f_openvpn { program("^openvpn"); }; +log { source(s_local); filter(f_openvpn); destination(d_openvpn); }; + +## pppd +destination d_pppd { file("/var/log/syslog-ng/pppd.log" template(t_local)); }; +filter f_pppd { program("^pppd$"); }; +log { source(s_local); filter(f_pppd); destination(d_pppd); }; + +## pmacctd +destination d_pmacctd { file("/var/log/syslog-ng/pmacctd.log" template(t_local)); }; +filter f_pmacctd { program("^pmacctd$"); }; +log { source(s_local); filter(f_pmacctd); destination(d_pmacctd); }; + +## nagios +destination d_nagios { file("/var/log/syslog-ng/nagios.log" template(t_local)); }; +filter f_nagios { program("^nagios$"); }; +log { source(s_local); filter(f_nagios); destination(d_nagios); }; + +## named +destination d_named { file("/var/log/syslog-ng/named.log" template(t_local)); }; +filter f_named { program("^named$"); }; +log { source(s_local); filter(f_named); destination(d_named); }; + +## OpenLDAP SLAPD +## mark debug messages as final so they don't get into any other file +destination d_slapd { file("/var/log/syslog-ng/slapd.log" template(t_local)); }; +filter f_slapd { program("^slapd$"); }; +log { source(s_local); filter(f_slapd); filter(f_debug); destination(d_slapd); flags(final); }; +log { source(s_local); filter(f_slapd); destination(d_slapd); }; + +## samba +destination d_samba { file("/var/log/syslog-ng/samba.log" template(t_local)); }; +filter f_samba { program("^[ns]mbd$"); }; +log { source(s_local); filter(f_samba); destination(d_samba); }; + +## jabberd +destination d_jabberd { file("/var/log/syslog-ng/jabberd.log" template(t_local)); }; +filter f_jabberd { program("^jabberd/"); }; +log { source(s_local); filter(f_jabberd); destination(d_jabberd); }; + +## php-cli +destination d_php { file("/var/log/syslog-ng/php.log" template(t_local)); }; +filter f_php { program("^php$"); }; +log { source(s_local); filter(f_php); destination(d_php); }; + +## hardened php +destination d_hphp { file("/var/log/syslog-ng/hphp.log" template(t_local)); }; +filter f_hphp { program("^hphp$"); }; +log { source(s_local); filter(f_hphp); destination(d_hphp); }; + +## hddtemp +destination d_hddtemp { file("/var/log/syslog-ng/hddtemp.log" template(t_local)); }; +filter f_hddtemp { program("^hddtemp$"); }; +log { source(s_local); filter(f_hddtemp); destination(d_hddtemp); }; + +## smartd (smartmontools) +destination d_smartd { file("/var/log/syslog-ng/smartd.log" template(t_local)); }; +filter f_smartd { program("^smartd$"); }; +log { source(s_local); filter(f_smartd); destination(d_smartd); }; + +## arpwatch +destination d_arpwatch { file("/var/log/syslog-ng/arpwatch.log" template(t_local)); }; +filter f_arpwatch { program("^arpwatch$"); }; +log { source(s_local); filter(f_arpwatch); destination(d_arpwatch); }; + +## DRBD +destination d_drbd { file("/var/log/syslog-ng/drbd.log" template(t_local)); }; +filter f_drbd { match("^kernel: drbd([[:digit:]]+)?:"); }; +log { source(s_kernel); filter(f_drbd); destination(d_drbd); }; + +## Linux-HA: attrd +destination d_ha_attrd { file("/var/log/syslog-ng/ha/attrd.log" template(t_local)); }; +filter f_ha_attrd { program("^attrd$"); }; +log { source(s_local); filter(f_ha_attrd); destination(d_ha_attrd); }; + +## Linux-HA: ccm +destination d_ha_ccm { file("/var/log/syslog-ng/ha/ccm.log" template(t_local)); }; +filter f_ha_ccm { program("^ccm$"); }; +log { source(s_local); filter(f_ha_ccm); destination(d_ha_ccm); }; + +## Linux-HA: cib +destination d_ha_cib { file("/var/log/syslog-ng/ha/cib.log" template(t_local)); }; +filter f_ha_cib { program("^cib$"); }; +log { source(s_local); filter(f_ha_cib); destination(d_ha_cib); }; + +## Linux-HA: cibmon +destination d_ha_cibmon { file("/var/log/syslog-ng/ha/cibmon.log" template(t_local)); }; +filter f_ha_cibmon { program("^cibmon$"); }; +log { source(s_local); filter(f_ha_cibmon); destination(d_ha_cibmon); }; + +## Linux-HA: crmd +destination d_ha_crmd { file("/var/log/syslog-ng/ha/crmd.log" template(t_local)); }; +filter f_ha_crmd { program("^crmd$"); }; +log { source(s_local); filter(f_ha_crmd); destination(d_ha_crmd); }; + +## Linux-HA: heartbeat +destination d_ha_heartbeat { file("/var/log/syslog-ng/ha/heartbeat.log" template(t_local)); }; +filter f_ha_heartbeat { program("^heartbeat$"); }; +log { source(s_local); filter(f_ha_heartbeat); destination(d_ha_heartbeat); }; + +## Linux-HA: ipfail +destination d_ha_ipfail { file("/var/log/syslog-ng/ha/ipfail.log" template(t_local)); }; +filter f_ha_ipfail { program("^ipfail$"); }; +log { source(s_local); filter(f_ha_ipfail); destination(d_ha_ipfail); }; + +## Linux-HA: logd +destination d_ha_logd { file("/var/log/syslog-ng/ha/logd.log" template(t_local)); }; +filter f_ha_logd { program("^logd$"); }; +log { source(s_local); filter(f_ha_logd); destination(d_ha_logd); }; + +## Linux-HA: lrmd +destination d_ha_lrmd { file("/var/log/syslog-ng/ha/lrmd.log" template(t_local)); }; +filter f_ha_lrmd { program("^lrmd$"); }; +log { source(s_local); filter(f_ha_lrmd); destination(d_ha_lrmd); }; + +## Linux-HA: pengine +destination d_ha_pengine { file("/var/log/syslog-ng/ha/pengine.log" template(t_local)); }; +filter f_ha_pengine { program("^pengine$"); }; +log { source(s_local); filter(f_ha_pengine); destination(d_ha_pengine); }; + +## Linux-HA: pingd +destination d_ha_pingd { file("/var/log/syslog-ng/ha/pingd.log" template(t_local)); }; +filter f_ha_pingd { program("^pingd$"); }; +log { source(s_local); filter(f_ha_pingd); destination(d_ha_pingd); }; + +## Linux-HA: stonithd +destination d_ha_stonithd { file("/var/log/syslog-ng/ha/stonithd.log" template(t_local)); }; +filter f_ha_stonithd { program("^stonithd$"); }; +log { source(s_local); filter(f_ha_stonithd); destination(d_ha_stonithd); }; + +## Linux-HA: tengine +destination d_ha_tengine { file("/var/log/syslog-ng/ha/tengine.log" template(t_local)); }; +filter f_ha_tengine { program("^tengine$"); }; +log { source(s_local); filter(f_ha_tengine); destination(d_ha_tengine); }; + +## Linux-HA: special discarding of debug and XML messages for any default destinations +#destination d_ha_discard { }; +#filter f_ha_debug { facility(local0) and priority(debug); }; +#log { source(s_local); filter(f_ha_debug); destination(d_ha_discard); flags(final); }; +#filter f_ha_xml { facility(local0) and (match("log_data_element:") or match("log_cib_diff:") or match("retrieveCib:") or match("cibmon_diff:")); }; +#log { source(s_local); filter(f_ha_xml); destination(d_ha_discard); flags(final); }; + +## gentoo hardened stuff +destination d_avc { file("/var/log/syslog-ng/avc.log" template(t_local)); }; +destination d_audit { file("/var/log/syslog-ng/audit.log" template(t_local)); }; +destination d_pax { file("/var/log/syslog-ng/pax.log" template(t_local)); }; +destination d_grsec { file("/var/log/syslog-ng/grsec.log" template(t_local)); }; +filter f_avc { match(".*avc:"); }; +filter f_audit { match("^audit") and not match(".*avc:"); }; +filter f_pax { match("^PAX:"); }; +filter f_grsec { match("^grsec:"); }; +log { source(s_kernel); filter(f_pax); destination(d_pax); }; +log { source(s_kernel); filter(f_grsec); destination(d_grsec); }; +log { source(s_kernel); filter(f_audit); destination(d_audit); }; +log { source(s_kernel); filter(f_avc); destination(d_avc); }; + +# +# default: all messages (local syslog + kernel) +# +# should be at the end so that application specific messages with +# "final" flag are not logged +# + +destination d_messages { file("/var/log/messages" template(t_local)); }; +log { source(s_local); source(s_kernel); destination(d_messages); }; + +## +## remote delivery +## + +## remote destination: syslog server directly via UDP (standard syslog) +#destination d_remote { udp("syslog.example.com" port(514) template(t_remote_d)); }; +#log { source(s_local); source(s_kernel); destination(d_remote); }; + +## remote destination: syslog server via TCP and stunnel (for secured logging) +#destination d_remote { tcp("localhost" port(514) template(t_remote_d)); }; +#log { source(s_local); source(s_kernel); destination(d_remote); }; + +## +## remote reception +## + +## remote source +#source s_remote { +# udp(localip("0.0.0.0") localport(514)); +# udp(localip("127.0.0.1") localport(514)); +# udp(localip("192.168.0.1") localport(514)); +# tcp(localip("0.0.0.0") localport(514) max-connections(5)); +# tcp(localip("127.0.0.1") localport(514) max-connections(50)); +# tcp(localip("192.168.0.1") localport(514) max-connections(50)); +#}; + +## tenshi (log monitoring) +#log { source(s_remote); destination(d_tenshi); }; + +## all hosts, all messages +#destination d_remote_hosts { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/messages" template(t_remote_r)); }; +#log { source(s_remote); destination(d_remote_hosts); }; + +## all hosts, kernel messages +#destination d_remote_hosts_kernel { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/kernel.log" template(t_remote_r)); }; +#log { source(s_remote); filter(f_kern); destination(d_remote_hosts_kernel); }; + +## all hosts, user messages +#destination d_remote_hosts_user { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/user.log" template(t_remote_r)); }; +#log { source(s_remote); filter(f_user); destination(d_remote_hosts_user); }; diff --git a/app-admin/syslog-ng/files/syslog-ng.conf-3.0 b/app-admin/syslog-ng/files/syslog-ng.conf-3.0 new file mode 100644 index 0000000..106e59c --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf-3.0 @@ -0,0 +1,513 @@ +@version: 3.0 +# +# $Header: $ +# vim:nowrap: +# syslog-ng config created by +# - Wolfram Schlich +# - Klaus Schleicher +# Distributed under the terms of the GNU General Public License v2 +# +# see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/index.html +# + +## +## global options +## +## see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch08s09.html +## + +options { + + ## general settings + time_reopen(10); # Reopen a dead connection after this many seconds + time_reap(120); # Close an idle destination file after this many seconds + time_sleep(5); # Wait these many milliseconds between poll iterations + ts_format(rfc3164); # Timestamp format: rfc3164|rfc3339|bsd|iso + log_fifo_size(1000); # Output queue size + log_msg_size(8192); # Max size of a single message + log_fetch_limit(1000); # The maximum number of messages fetched from a source during a single poll loop. + flush_lines(10); # Buffer this many lines of output (0 to send to disk immediately) + flush_timeout(1000); # Wait at most this many milliseconds before forcibly flushing the output buffer + mark_freq(300); # MARK line logging interval + stats_freq(0); # Stats logging interval (0 = disabled) + + ## remote logging + normalize_hostnames(yes); # Do normalize hostnames (transform to lower case) + chain_hostnames(on); # Chain hostnames? + keep_hostname(yes); # Keep the hostname the client sent? + keep_timestamp(no); # Do not use the timestamp the client sent -- it might be wrong + use_dns(yes); # Use DNS? Good for log servers. + use_fqdn(no); # Use FQDNs? Good for log servers. + dns_cache(yes); # Cache DNS results? + dns_cache_size(1024); # Number of DNS lookup results to cache + dns_cache_expire(3600); # Expire cached successful DNS lookup results after this many seconds + dns_cache_expire_failed(60); # Expire cached failed DNS lookup results after this many seconds + + ## log file handling + create_dirs(yes); # Create directories for log files if they don't exist + dir_owner("root"); # Owner of newly created directories + dir_group("adm"); # Group of newly created directories + dir_perm(0750); # Permissions of newly created directories + owner("root"); # Owner of newly created log files + group("adm"); # Group of newly created log files + perm(0640); # Permissions of newly created log files + + ## misc + # Some program send log messages through a private implementation. + # and sometimes that implementation is bad. If this happen syslog-ng + # may recognise the program name as hostname. Whit this option + # we tell the syslog-ng that if a hostname match this regexp than that + # is not a real hostname. + bad_hostname("^gconfd$"); + +}; + +## +## filters +## +## see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch03s06.html +## + +## standard syslog facilities +filter f_kern { facility(kern); }; +filter f_auth { facility(auth); }; # -- note: 'security' is a deprecated alias +filter f_authpriv { facility(authpriv); }; +filter f_syslog { facility(syslog); }; +filter f_daemon { facility(daemon); }; +filter f_cron { facility(cron); }; +filter f_ftp { facility(ftp); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_news { facility(news); }; +filter f_uucp { facility(uucp); }; +filter f_user { facility(user); }; +filter f_local0 { facility(local0); }; +filter f_local1 { facility(local1); }; +filter f_local2 { facility(local2); }; +filter f_local3 { facility(local3); }; +filter f_local4 { facility(local4); }; +filter f_local5 { facility(local5); }; +filter f_local6 { facility(local6); }; +filter f_local7 { facility(local7); }; + +## standard syslog priorities: "exactly" +filter f_emerg { priority(emerg); }; # 0 -- note: 'panic' is a deprecated alias +filter f_alert { priority(alert); }; # 1 +filter f_crit { priority(crit); }; # 2 +filter f_err { priority(err); }; # 3 -- note: 'error' is a deprecated alias +filter f_warning { priority(warning); }; # 4 -- note: 'warn' is a deprecated alias +filter f_notice { priority(notice); }; # 5 +filter f_info { priority(info); }; # 6 +filter f_debug { priority(debug); }; # 7 + +## standard syslog priorities: "at least" +filter f_alert+ { priority(alert..emerg); }; # 1-0 +filter f_crit+ { priority(crit..emerg); }; # 2-0 +filter f_err+ { priority(err..emerg); }; # 3-0 +filter f_warning+ { priority(warning..emerg); }; # 4-0 +filter f_notice+ { priority(notice..emerg); }; # 5-0 +filter f_info+ { priority(info..emerg); }; # 6-0 +filter f_debug+ { priority(debug..emerg); }; # 7-0 + +## +## templates for the log messages +## +## see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch03s07.html +## +## WARNING: syslog logfile analysis tools might stumble over non-standard +## formats! tools like mailgraph and tenshi just come to mind. +## +## for tenshi, it's easy to circumvent problems by either using the standard +## format for the tenshi fifo or by using the "logprefix" feature in tenshi.conf +## to match the custom format, e.g. when using facility and priority as alerting +## criteria. +## +## mailgraph probably needs to be patched for being able to deal with a +## non-standard log message format. +## + +# macro quick-reference: +# - DATE: "Jun 13 15:58:00" (default syslog date) +# - FULLDATE: "2006 Jun 13 15:56:57" +# - ISODATE: "2006-06-13T15:56:51+02:00" +# - PRI: see http://www.faqs.org/rfcs/rfc3164.html, 4.1.1 +# - TZOFFSET: "+02:00" + +## default message format (standard syslog message format) +#template t_default { template("${DATE} ${HOST} ${MSGHDR}${MSG}\n"); template_escape(no); }; +## default message format (standard syslog-ng-3.0 message format) +template t_default { template("${ISODATE} ${HOST} ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## log and admin console messagee formats +template t_logtty { template("${DATE}; ${FACILITY}.${PRIORITY}; ${MSGHDR}${MSG}\n"); template_escape(no); }; +template t_admintty { template("${DATE}; ${FACILITY}.${PRIORITY}; ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## custom local message format (used by default throughout this configuration, also see t_remote_r) +template t_local { template("${YEAR}-${MONTH}-${DAY} ${HOUR}:${MIN}:${SEC} ${TZOFFSET}; ${HOST}; ${FACILITY}.${PRIORITY}; ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## tenshi message format (tenshi.conf needs to be adjusted for this format!) +template t_tenshi { template("${HOST}; ${FACILITY}.${PRIORITY}; ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## mailgraph message format +template t_mgraph { template("${DATE} ${HOST} ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## remote reception message format (replaces time information of received messages with local system time) +template t_remote_r { template("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC} ${R_TZOFFSET}; ${HOST}/${SOURCEIP}; ${FACILITY}.${PRIORITY}; ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## remote delivery message format (standard syslog protocol format) +template t_remote_d { template("<${PRI}>${DATE} ${HOST} ${MSGHDR}${MSG}\n"); template_escape(no); }; + +## +## local sources +## +## see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch03s03.html +## and http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch08s01.html +## + +## local syslog messages + syslog-ng internal messages +source s_local { + unix-stream("/dev/log" max-connections(1000)); + internal(); +}; + +## kernel messages +source s_kernel { + file("/proc/kmsg" flags(kernel) program_override("kernel")); +}; + +## +## local destinations and log paths +## +## see http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch03s04.html +## and http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch03s05.html +## and http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch08s02.html +## and http://www.balabit.com/dl/html/syslog-ng-v3.0-guide-admin-en.html/ch08s03.html +## + +# +# discard messages +# + +## example for discarding certain messages using an empty destination and the final flag +#destination d_null { }; +#filter f_null { message("I am a message that wants to be discarded"); }; +#log { source(s_local); filter(f_null); destination(d_null); flags(final); }; + +# +# system specials +# + +## kernel messages +destination d_kernel { file("/var/log/syslog-ng/kernel.log" template(t_local)); }; +log { source(s_kernel); destination(d_kernel); }; + +## log console +destination d_logtty { file("/dev/tty10" template(t_logtty)); }; +log { source(s_local); source(s_kernel); destination(d_logtty); }; + +## admin console +destination d_admintty { usertty("root"); }; +log { source(s_local); filter(f_emerg); destination(d_admintty); }; + +## tenshi (log monitoring): log all messages to a fifo -- note: the fifo needs to be created with mkfifo first! +#destination d_tenshi { fifo("/var/log/tenshi.fifo" owner("root") group("tenshi") perm(0640) template(t_tenshi)); }; +#log { source(s_local); source(s_kernel); destination(d_tenshi); }; + +## mailgraph: log all messages for facility 'mail' to a fifo -- note: the fifo needs to be created with mkfifo first! +#destination d_mgraph { fifo("/var/log/mgraph.fifo" owner("root") group("mgraph") perm(0640) template(t_mgraph)); }; +#log { source(s_local); filter(f_mail); destination(d_mgraph); }; + +# +# application specific +# + +## firewall (iptables, using custom iptables log prefixes) +destination d_firewall { file("/var/log/syslog-ng/firewall.log" template(t_local)); }; +filter f_firewall { message("^ipt_FW ") or message("^ip4t_FW ") or message("^ip6t_FW "); }; +log { source(s_kernel); filter(f_firewall); destination(d_firewall); }; + +## sudo +destination d_sudo { file("/var/log/syslog-ng/sudo.log" template(t_local)); }; +filter f_sudo { program("^sudo$"); }; +log { source(s_local); filter(f_sudo); destination(d_sudo); }; + +## sshd +destination d_sshd { file("/var/log/syslog-ng/sshd.log" template(t_local)); }; +filter f_sshd { program("^sshd$") or program("^sftp-server$"); }; +log { source(s_local); filter(f_sshd); destination(d_sshd); }; + +## cron +destination d_cron { file("/var/log/syslog-ng/cron.log" template(t_local)); }; +filter f_cron { facility(cron); }; +log { source(s_local); filter(f_cron); destination(d_cron); }; + +## xinetd +destination d_xinetd { file("/var/log/syslog-ng/xinetd.log" template(t_local)); }; +filter f_xinetd { program("^xinetd$"); }; +log { source(s_local); filter(f_xinetd); destination(d_xinetd); }; + +## postfix +destination d_postfix { file("/var/log/syslog-ng/postfix.log" template(t_local)); }; +filter f_postfix { program("^postfix/") or program("^postgrey"); }; +log { source(s_local); filter(f_postfix); destination(d_postfix); }; + +## fetchmail +destination d_fetchmail { file("/var/log/syslog-ng/fetchmail.log" template(t_local)); }; +filter f_fetchmail { program("^fetchmail$"); }; +log { source(s_local); filter(f_fetchmail); destination(d_fetchmail); }; + +## dovecot +destination d_dovecot { file("/var/log/syslog-ng/dovecot.log" template(t_local)); }; +filter f_dovecot { program("^dovecot$"); }; +log { source(s_local); filter(f_dovecot); destination(d_dovecot); }; + +## courier smtp/imap/pop3 +destination d_courier { file("/var/log/syslog-ng/courier.log" template(t_local)); }; +filter f_courier { program("^courier") or program("^pop3d$") or program("^pop3d-ssl$") or program("^imapd$") or program("^imapd-ssl$"); }; +log { source(s_local); filter(f_courier); destination(d_courier); }; + +## uw-imap +#destination d_uwimap { file("/var/log/syslog-ng/uw-imap.log" template(t_local)); }; +#filter f_uwimap { program("^ipop3d$") or program("^imapd$"); }; +#log { source(s_local); filter(f_uwimap); destination(d_uwimap); }; + +## antivir +destination d_antivir { file("/var/log/syslog-ng/antivir.log" template(t_local)); }; +filter f_antivir { program("^antivir$"); }; +log { source(s_local); filter(f_antivir); destination(d_antivir); }; + +## antivir mailgate +destination d_avmailgate { file("/var/log/syslog-ng/avmailgate.log" template(t_local)); }; +filter f_avmailgate { program("^avmailgate.bin$") or program("^avgated$") or program("^avgatefwd$"); }; +log { source(s_local); filter(f_avmailgate); destination(d_avmailgate); }; + +## clamav +destination d_clamav { file("/var/log/syslog-ng/clamav.log" template(t_local)); }; +filter f_clamav { program("^clamd$") or program("^freshclam$"); }; +log { source(s_local); filter(f_clamav); destination(d_clamav); }; + +## amavis +## mark debug messages as final so they don't get into any other file +destination d_amavis { file("/var/log/syslog-ng/amavis.log" template(t_local)); }; +filter f_amavis { program("^amavis$"); }; +log { source(s_local); filter(f_amavis); filter(f_debug); destination(d_amavis); flags(final); }; +log { source(s_local); filter(f_amavis); destination(d_amavis); }; + +## spamassassin +destination d_spamassassin { file("/var/log/syslog-ng/spamassassin.log" template(t_local)); }; +filter f_spamassassin { program("^spamd$") or program("^spamc"); }; +log { source(s_local); filter(f_spamassassin); destination(d_spamassassin); }; + +## ntpd +destination d_ntpd { file("/var/log/syslog-ng/ntpd.log" template(t_local)); }; +filter f_ntpd { program("^ntpd$"); }; +log { source(s_local); filter(f_ntpd); destination(d_ntpd); }; + +## OpenVPN +destination d_openvpn { file("/var/log/syslog-ng/openvpn.log" template(t_local)); }; +filter f_openvpn { program("^openvpn"); }; +log { source(s_local); filter(f_openvpn); destination(d_openvpn); }; + +## pppd +destination d_pppd { file("/var/log/syslog-ng/pppd.log" template(t_local)); }; +filter f_pppd { program("^pppd$"); }; +log { source(s_local); filter(f_pppd); destination(d_pppd); }; + +## pmacctd +destination d_pmacctd { file("/var/log/syslog-ng/pmacctd.log" template(t_local)); }; +filter f_pmacctd { program("^pmacctd$"); }; +log { source(s_local); filter(f_pmacctd); destination(d_pmacctd); }; + +## nagios +destination d_nagios { file("/var/log/syslog-ng/nagios.log" template(t_local)); }; +filter f_nagios { program("^nagios$"); }; +log { source(s_local); filter(f_nagios); destination(d_nagios); }; + +## named +destination d_named { file("/var/log/syslog-ng/named.log" template(t_local)); }; +filter f_named { program("^named$"); }; +log { source(s_local); filter(f_named); destination(d_named); }; + +## OpenLDAP SLAPD +## mark debug messages as final so they don't get into any other file +destination d_slapd { file("/var/log/syslog-ng/slapd.log" template(t_local)); }; +filter f_slapd { program("^slapd$"); }; +log { source(s_local); filter(f_slapd); filter(f_debug); destination(d_slapd); flags(final); }; +log { source(s_local); filter(f_slapd); destination(d_slapd); }; + +## samba +destination d_samba { file("/var/log/syslog-ng/samba.log" template(t_local)); }; +filter f_samba { program("^[ns]mbd$"); }; +log { source(s_local); filter(f_samba); destination(d_samba); }; + +## jabberd +destination d_jabberd { file("/var/log/syslog-ng/jabberd.log" template(t_local)); }; +filter f_jabberd { program("^jabberd/"); }; +log { source(s_local); filter(f_jabberd); destination(d_jabberd); }; + +## php-cli +destination d_php { file("/var/log/syslog-ng/php.log" template(t_local)); }; +filter f_php { program("^php$"); }; +log { source(s_local); filter(f_php); destination(d_php); }; + +## hardened php +destination d_hphp { file("/var/log/syslog-ng/hphp.log" template(t_local)); }; +filter f_hphp { program("^hphp$"); }; +log { source(s_local); filter(f_hphp); destination(d_hphp); }; + +## hddtemp +destination d_hddtemp { file("/var/log/syslog-ng/hddtemp.log" template(t_local)); }; +filter f_hddtemp { program("^hddtemp$"); }; +log { source(s_local); filter(f_hddtemp); destination(d_hddtemp); }; + +## smartd (smartmontools) +destination d_smartd { file("/var/log/syslog-ng/smartd.log" template(t_local)); }; +filter f_smartd { program("^smartd$"); }; +log { source(s_local); filter(f_smartd); destination(d_smartd); }; + +## arpwatch +destination d_arpwatch { file("/var/log/syslog-ng/arpwatch.log" template(t_local)); }; +filter f_arpwatch { program("^arpwatch$"); }; +log { source(s_local); filter(f_arpwatch); destination(d_arpwatch); }; + +## DRBD +destination d_drbd { file("/var/log/syslog-ng/drbd.log" template(t_local)); }; +filter f_drbd { message("^drbd([[:digit:]]+)?:"); }; +log { source(s_kernel); filter(f_drbd); destination(d_drbd); }; + +## Linux-HA: attrd +destination d_ha_attrd { file("/var/log/syslog-ng/ha/attrd.log" template(t_local)); }; +filter f_ha_attrd { program("^attrd$"); }; +log { source(s_local); filter(f_ha_attrd); destination(d_ha_attrd); }; + +## Linux-HA: ccm +destination d_ha_ccm { file("/var/log/syslog-ng/ha/ccm.log" template(t_local)); }; +filter f_ha_ccm { program("^ccm$"); }; +log { source(s_local); filter(f_ha_ccm); destination(d_ha_ccm); }; + +## Linux-HA: cib +destination d_ha_cib { file("/var/log/syslog-ng/ha/cib.log" template(t_local)); }; +filter f_ha_cib { program("^cib$"); }; +log { source(s_local); filter(f_ha_cib); destination(d_ha_cib); }; + +## Linux-HA: cibmon +destination d_ha_cibmon { file("/var/log/syslog-ng/ha/cibmon.log" template(t_local)); }; +filter f_ha_cibmon { program("^cibmon$"); }; +log { source(s_local); filter(f_ha_cibmon); destination(d_ha_cibmon); }; + +## Linux-HA: crmd +destination d_ha_crmd { file("/var/log/syslog-ng/ha/crmd.log" template(t_local)); }; +filter f_ha_crmd { program("^crmd$"); }; +log { source(s_local); filter(f_ha_crmd); destination(d_ha_crmd); }; + +## Linux-HA: heartbeat +destination d_ha_heartbeat { file("/var/log/syslog-ng/ha/heartbeat.log" template(t_local)); }; +filter f_ha_heartbeat { program("^heartbeat$"); }; +log { source(s_local); filter(f_ha_heartbeat); destination(d_ha_heartbeat); }; + +## Linux-HA: ipfail +destination d_ha_ipfail { file("/var/log/syslog-ng/ha/ipfail.log" template(t_local)); }; +filter f_ha_ipfail { program("^ipfail$"); }; +log { source(s_local); filter(f_ha_ipfail); destination(d_ha_ipfail); }; + +## Linux-HA: logd +destination d_ha_logd { file("/var/log/syslog-ng/ha/logd.log" template(t_local)); }; +filter f_ha_logd { program("^logd$"); }; +log { source(s_local); filter(f_ha_logd); destination(d_ha_logd); }; + +## Linux-HA: lrmd +destination d_ha_lrmd { file("/var/log/syslog-ng/ha/lrmd.log" template(t_local)); }; +filter f_ha_lrmd { program("^lrmd$"); }; +log { source(s_local); filter(f_ha_lrmd); destination(d_ha_lrmd); }; + +## Linux-HA: pengine +destination d_ha_pengine { file("/var/log/syslog-ng/ha/pengine.log" template(t_local)); }; +filter f_ha_pengine { program("^pengine$"); }; +log { source(s_local); filter(f_ha_pengine); destination(d_ha_pengine); }; + +## Linux-HA: pingd +destination d_ha_pingd { file("/var/log/syslog-ng/ha/pingd.log" template(t_local)); }; +filter f_ha_pingd { program("^pingd$"); }; +log { source(s_local); filter(f_ha_pingd); destination(d_ha_pingd); }; + +## Linux-HA: stonithd +destination d_ha_stonithd { file("/var/log/syslog-ng/ha/stonithd.log" template(t_local)); }; +filter f_ha_stonithd { program("^stonithd$"); }; +log { source(s_local); filter(f_ha_stonithd); destination(d_ha_stonithd); }; + +## Linux-HA: tengine +destination d_ha_tengine { file("/var/log/syslog-ng/ha/tengine.log" template(t_local)); }; +filter f_ha_tengine { program("^tengine$"); }; +log { source(s_local); filter(f_ha_tengine); destination(d_ha_tengine); }; + +## Linux-HA: special discarding of debug and XML messages for any default destinations +#destination d_ha_discard { }; +#filter f_ha_debug { facility(local0) and priority(debug); }; +#log { source(s_local); filter(f_ha_debug); destination(d_ha_discard); flags(final); }; +#filter f_ha_xml { facility(local0) and (program("^log_data_element") or program("^log_cib_diff") or program("^retrieveCib") or program("^cibmon_diff")); }; +#log { source(s_local); filter(f_ha_xml); destination(d_ha_discard); flags(final); }; + +## gentoo hardened stuff +destination d_avc { file("/var/log/syslog-ng/avc.log" template(t_local)); }; +destination d_audit { file("/var/log/syslog-ng/audit.log" template(t_local)); }; +destination d_pax { file("/var/log/syslog-ng/pax.log" template(t_local)); }; +destination d_grsec { file("/var/log/syslog-ng/grsec.log" template(t_local)); }; +filter f_avc { message("avc:"); }; +filter f_audit { message("^audit") and not message("avc:"); }; +filter f_pax { message("^PAX:"); }; +filter f_grsec { message("^grsec:"); }; +log { source(s_kernel); filter(f_avc); destination(d_avc); }; +log { source(s_kernel); filter(f_audit); destination(d_audit); }; +log { source(s_kernel); filter(f_pax); destination(d_pax); }; +log { source(s_kernel); filter(f_grsec); destination(d_grsec); }; + +# +# default: all messages (local syslog + kernel) +# +# should be at the end so that application specific messages with +# "final" flag are not logged +# + +destination d_messages { file("/var/log/messages" template(t_local)); }; +log { source(s_local); source(s_kernel); destination(d_messages); }; + +## +## remote delivery +## + +## remote destination: syslog server directly via UDP (standard syslog) +#destination d_remote { udp("syslog.example.com" port(514) template(t_remote_d)); }; +#log { source(s_local); source(s_kernel); destination(d_remote); }; + +## remote destination: syslog server via TCP and stunnel (for secured logging) +#destination d_remote { tcp("localhost" port(514) template(t_remote_d)); }; +#log { source(s_local); source(s_kernel); destination(d_remote); }; + +## +## remote reception +## + +## remote source +#source s_remote { +# udp(localip("0.0.0.0") localport(514)); +# udp(localip("127.0.0.1") localport(514)); +# udp(localip("192.168.0.1") localport(514)); +# tcp(localip("0.0.0.0") localport(514) max-connections(5)); +# tcp(localip("127.0.0.1") localport(514) max-connections(50)); +# tcp(localip("192.168.0.1") localport(514) max-connections(50)); +#}; + +## tenshi (log monitoring) +#log { source(s_remote); destination(d_tenshi); }; + +## all hosts, all messages +#destination d_remote_hosts { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/messages" template(t_remote_r)); }; +#log { source(s_remote); destination(d_remote_hosts); }; + +## all hosts, kernel messages +#destination d_remote_hosts_kernel { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/kernel.log" template(t_remote_r)); }; +#log { source(s_remote); filter(f_kern); destination(d_remote_hosts_kernel); }; + +## all hosts, user messages +#destination d_remote_hosts_user { file("/var/log/syslog-ng.remote/${R_YEAR}/${R_MONTH}/${R_DAY}/${HOST}/user.log" template(t_remote_r)); }; +#log { source(s_remote); filter(f_user); destination(d_remote_hosts_user); }; diff --git a/app-admin/syslog-ng/files/syslog-ng.confd b/app-admin/syslog-ng/files/syslog-ng.confd new file mode 100644 index 0000000..170862f --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.confd @@ -0,0 +1,6 @@ +# Config file for /etc/init.d/syslog-ng + +# Put any additional options for syslog-ng here. +# See syslog-ng(8) for more information. + +SYSLOG_NG_OPTS="" diff --git a/app-admin/syslog-ng/files/syslog-ng.init b/app-admin/syslog-ng/files/syslog-ng.init new file mode 100644 index 0000000..6696182 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.init @@ -0,0 +1,62 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +opts="checkconfig reload" + +depend() { + # Make networking dependency conditional on configuration + case $(sed 's/#.*//' /etc/syslog-ng/syslog-ng.conf) in + *source*tcp*|*source*udp*|*destination*tcp*|*destination*udp*) + need net + use stunnel + after dns ;; + esac + + need clock hostname localmount + provide logger + + # kludge for baselayout-1 compatibility + [ -z "${svclib}" ] && config /etc/syslog-ng/syslog-ng.conf +} + +checkconfig() { + if [ ! -e /etc/syslog-ng/syslog-ng.conf ] ; then + eerror "You need to create /etc/syslog-ng/syslog-ng.conf first." + eerror "An example can be found in /etc/syslog-ng/syslog-ng.conf.sample" + return 1 + fi + syslog-ng -s + + # the start and reload functions have their own eends so + # avoid calling this twice when there are no problems + [ $? -eq 0 ] || eend $? "Configuration error. Please fix your configfile (/etc/syslog-ng/syslog-ng.conf)" +} + +start() { + checkconfig || return 1 + ebegin "Starting syslog-ng" + [ -n "${SYSLOG_NG_OPTS}" ] && SYSLOG_NG_OPTS="-- ${SYSLOG_NG_OPTS}" + start-stop-daemon --start --quiet --exec /usr/sbin/syslog-ng ${SYSLOG_NG_OPTS} + eend $? "Failed to start syslog-ng" +} + +stop() { + ebegin "Stopping syslog-ng" + start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid + eend $? "Failed to stop syslog-ng" + sleep 1 # needed for syslog-ng to stop in case we're restarting +} + +reload() { + if [ ! -f /var/run/syslog-ng.pid ]; then + eerror "syslog-ng isn't running" + return 1 + fi + checkconfig || return 1 + ebegin "Reloading configuration and re-opening log files" + start-stop-daemon --stop --oknodo --signal HUP \ + --pidfile /var/run/syslog-ng.pid + eend $? +} diff --git a/app-admin/syslog-ng/files/syslog-ng.logrotate b/app-admin/syslog-ng/files/syslog-ng.logrotate new file mode 100644 index 0000000..1116846 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.logrotate @@ -0,0 +1,42 @@ +# $Header: $ +# logrotate config for syslog-ng local logs created by +# - Wolfram Schlich +# - Klaus Schleicher +# Distributed under the terms of the GNU General Public License v2 + +/var/log/messages /var/log/syslog-ng/*.log { + ## save rotated logfiles to another directory + olddir /var/log/syslog-ng.archive + ## rotate daily + daily + ## keep 30 old copies + rotate 30 + ## use .YYYYMMDD instead of .0,.1,.2 etc. + dateext + ## also rotate empty logfiles to strictly retain chronology + ifempty + ## re-create source logfile with original permissions + ## do NOT use copy or copytruncate! + create + ## compress on next logrotate run (e.g. next day) to give + ## programs the chance to close the old logfile + delaycompress + ## compress logfiles + compress + compresscmd /bin/gzip + compressoptions -9 + uncompresscmd /bin/gunzip + ## don't throw an error when a file doesn't exist + missingok + ## reload syslog-ng after rotating all logfiles + sharedscripts + postrotate + /etc/init.d/syslog-ng reload >/dev/null + ## restart mailgraph because mgraph.fifo + ## was closed and reopened upon syslog-ng + ## reload, causing mailgraph to shutdown + if [ -e /etc/init.d/mailgraph ]; then + /etc/init.d/mailgraph restart >/dev/null + fi + endscript +} diff --git a/app-admin/syslog-ng/files/syslog-ng.remote.current.cron b/app-admin/syslog-ng/files/syslog-ng.remote.current.cron new file mode 100755 index 0000000..f6047c6 --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.remote.current.cron @@ -0,0 +1,11 @@ +#!/bin/bash +# Wolfram Schlich +# Script to maintain the /var/log/syslog-ng.remote/current symlink +# To be placed in /etc/cron.daily +syslog_ng_remote_dir=/var/log/syslog-ng.remote +current="$(date +%Y/%m/%d)" +current_src="${syslog_ng_remote_dir}/${current}" +current_dst="${syslog_ng_remote_dir}/current" +test -d "${current_src}" || exit 1 +test -L "${current_dst}" && { rm -f "${current_dst}" || exit 2; } +ln -sf "${current}" "${current_dst}" || exit 3 diff --git a/app-admin/syslog-ng/syslog-ng-2.1.4.ebuild b/app-admin/syslog-ng/syslog-ng-2.1.4.ebuild new file mode 100644 index 0000000..f6c4508 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-2.1.4.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools fixheadtails + +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/products/syslog_ng/" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${PV}/source/${PN}_${PV}.tar.gz" +RESTRICT="nomirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="doc ipv6 logrotate spoof-source sql static tcpd" + +RDEPEND=">=dev-libs/eventlog-0.2.6 + spoof-source? ( net-libs/libnet ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + sql? ( >=dev-db/libdbi-0.8.3 ) + >=dev-libs/glib-2.2" +DEPEND="${RDEPEND} + sys-devel/flex" +PROVIDE="virtual/logger" + +src_unpack() { + unpack ${A} + cd ${S} + ht_fix_file configure + if use doc; then + cd "${S}/doc/reference" + unpack ./syslog-ng.html.tar.gz || die "failed to unpack docs" + fi +} + +src_compile() { + econf \ + --sysconfdir=/etc/syslog-ng \ + --disable-dependency-tracking \ + $(use_enable ipv6) \ + $(use_enable spoof-source) \ + $(use_enable sql) \ + $(use_enable !static dynamic-linking) \ + $(use_enable static static-linking) \ + $(use_enable tcpd tcp-wrapper) \ + || die + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog NEWS README \ + doc/examples/syslog-ng.conf.sample \ + doc/reference/{syslog-ng.xml,syslog-ng.xsl,syslog-ng.txt} \ + contrib/{syslog2ng,syslog-ng.vim,relogger.pl} + use doc && dohtml doc/sgml/syslog-ng.html/* + + newinitd ${FILESDIR}/syslog-ng.init syslog-ng + + insinto /etc/syslog-ng + newins ${FILESDIR}/syslog-ng.conf syslog-ng.conf + + if use logrotate; then + insinto /etc/logrotate.d + newins ${FILESDIR}/syslog-ng.logrotate syslog-ng + diropts -m 0750 -o root -g adm + dodir /var/log/syslog-ng.archive + fi + + dodoc ${FILESDIR}/syslog-ng.remote.current.cron +} + +pkg_postinst() { + einfo + einfo "The bundled syslog-ng.conf is prepared for being used" + einfo "for standalone, logclient and logserver installations" + einfo "(they can all be combined for one installation if desired)." + einfo + einfo "For standalone or logserver installations, local messages" + einfo "should be logged to /var/log/messages (all messages)" + einfo "and /var/log/syslog-ng/ (for application or facility based" + einfo "logging) and be archived to /var/log/syslog-ng.archive/" + einfo "using the bundled logrotate config snippet." + einfo + einfo "If you are using this installation for a logserver," + einfo "remote messages should be logged to a directory like" + einfo "/var/log/syslog-ng.remote/YEAR/MONTH/DAY/HOSTNAME/" + einfo "and NOT be rotated with logrotate (syslog-ng.conf has" + einfo "an example on logging to such a destination)." + einfo "You can use the included syslog-ng.remote.current.cron" + einfo "to maintain a current symlink from 'current' to the" + einfo "current YEAR/MONTH/DAY directory for convenience (makes" + einfo "it easier to 'tail -f' or 'less +F' the current logfiles)." + einfo "To do so, simply copy the cron script to /etc/cron.daily/." + einfo "You might also want to have a look at stunnel for securely" + einfo "tunneling remote log messages via SSL over TCP." + einfo "I might add some stunnel sample configs to this package" + einfo "in the future ;-)" + einfo + einfo "You might want to use app-admin/tenshi for monitoring" + einfo "the logs. The bundled syslog-ng.conf is prepared for" + einfo "logging messages to a dedicated fifo for tenshi, which" + einfo "is believed to be the best solution available." + einfo + ewarn + ewarn "ATTENTION: since version 2.0.1, the values of the" + ewarn " syslog-ng.conf options dir_owner()," + ewarn " dir_group(), owner() and group()" + ewarn " MUST be quoted when they are a" + ewarn " string instead of a UID/GID!" + ewarn +} diff --git a/app-admin/syslog-ng/syslog-ng-3.0.4-r100.ebuild b/app-admin/syslog-ng/syslog-ng-3.0.4-r100.ebuild new file mode 100644 index 0000000..ca1f50b --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-3.0.4-r100.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/syslog-ng-3.0.4.ebuild,v 1.5 2009/10/30 11:04:45 maekke Exp $ + +EAPI=2 +inherit fixheadtails eutils + +MY_PV=${PV/_/} +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="http://www.balabit.com/products/syslog_ng/" +SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/syslog-ng_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" +IUSE="caps ipv6 pcre selinux spoof-source sql ssl static tcpd" +RESTRICT="test" + +LIBS_DEPEND=" + spoof-source? ( net-libs/libnet ) + ssl? ( dev-libs/openssl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + >=dev-libs/eventlog-0.2 + >=dev-libs/glib-2.10.1:2 + caps? ( sys-libs/libcap ) + sql? ( >=dev-db/libdbi-0.8.3 )" +RDEPEND=" + !static? ( + pcre? ( dev-libs/libpcre ) + ${LIBS_DEPEND} + )" +DEPEND="${RDEPEND} + ${LIBS_DEPEND} + dev-util/pkgconfig + sys-devel/flex" +PROVIDE="virtual/logger" + +src_prepare() { + ht_fix_file configure +} + +src_configure() { + local myconf + + if use static ; then + myconf="${myconf} --enable-static-linking" + if use pcre ; then + ewarn "USE=pcre is incompatible with static linking" + myconf="${myconf} --disable-pcre" + fi + else + myconf="${myconf} --enable-dynamic-linking" + fi + econf \ + --disable-dependency-tracking \ + --sysconfdir=/etc/syslog-ng \ + --with-pidfile-dir=/var/run \ + $(use_enable caps linux-caps) \ + $(use_enable ipv6) \ + $(use_enable pcre) \ + $(use_enable spoof-source) \ + $(use_enable sql) \ + $(use_enable ssl) \ + $(use_enable tcpd tcp-wrapper) \ + ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS ChangeLog NEWS README \ + doc/examples/{syslog-ng.conf.sample,syslog-ng.conf.solaris} \ + contrib/syslog-ng.conf* \ + contrib/syslog2ng # "${FILESDIR}/syslog-ng.conf."* + dohtml doc/reference/syslog-ng.html/* + + newinitd ${FILESDIR}/syslog-ng.init syslog-ng + + insinto /etc/syslog-ng + newins ${FILESDIR}/syslog-ng.conf-3.0 syslog-ng.conf + + insinto /etc/logrotate.d + newins ${FILESDIR}/syslog-ng.logrotate syslog-ng + diropts -m 0750 -o root -g adm + dodir /var/log/syslog-ng.archive + + dodoc ${FILESDIR}/syslog-ng.remote.current.cron +} + +pkg_postinst() { + einfo + einfo "The bundled syslog-ng.conf is prepared for being used" + einfo "for standalone, logclient and logserver installations" + einfo "(they can all be combined for one installation if desired)." + einfo + einfo "For standalone or logserver installations, local messages" + einfo "should be logged to /var/log/messages (all messages)" + einfo "and /var/log/syslog-ng/ (for application or facility based" + einfo "logging) and be archived to /var/log/syslog-ng.archive/" + einfo "using the bundled logrotate config snippet." + einfo + einfo "If you are using this installation for a logserver," + einfo "remote messages should be logged to a directory like" + einfo "/var/log/syslog-ng.remote/YEAR/MONTH/DAY/HOSTNAME/" + einfo "and NOT be rotated with logrotate (syslog-ng.conf has" + einfo "an example on logging to such a destination)." + einfo "You can use the included syslog-ng.remote.current.cron" + einfo "to maintain a current symlink from 'current' to the" + einfo "current YEAR/MONTH/DAY directory for convenience (makes" + einfo "it easier to 'tail -f' or 'less +F' the current logfiles)." + einfo "To do so, simply copy the cron script to /etc/cron.daily/." + einfo "You might also want to have a look at stunnel for securely" + einfo "tunneling remote log messages via SSL over TCP." + einfo "I might add some stunnel sample configs to this package" + einfo "in the future ;-)" + einfo + einfo "You might want to use app-admin/tenshi for monitoring" + einfo "the logs. The bundled syslog-ng.conf is prepared for" + einfo "logging messages to a dedicated fifo for tenshi, which" + einfo "is believed to be the best solution available." + einfo + ewarn + ewarn "ATTENTION: since version 2.0.1, the values of the" + ewarn " syslog-ng.conf options dir_owner()," + ewarn " dir_group(), owner() and group()" + ewarn " MUST be quoted when they are a" + ewarn " string instead of a UID/GID!" + ewarn +} diff --git a/app-antivirus/antivir-core/ChangeLog b/app-antivirus/antivir-core/ChangeLog new file mode 100644 index 0000000..e524b43 --- /dev/null +++ b/app-antivirus/antivir-core/ChangeLog @@ -0,0 +1,16 @@ +# ChangeLog for app-antivirus/antivir-core +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 09 Dec 2008; Wolfram Schlich + antivir-core-2.1.12_p19.ebuild: + added multilib eclass + + 07 Oct 2008; Wolfram Schlich + antivir-core-2.1.12_p19.ebuild: + add ~amd64 + + 29 Jul 2008; Wolfram Schlich +metadata.xml, + antivir-core-2.1.12_p19.ebuild: + fixups + diff --git a/app-antivirus/antivir-core/Manifest b/app-antivirus/antivir-core/Manifest new file mode 100644 index 0000000..d91bbde --- /dev/null +++ b/app-antivirus/antivir-core/Manifest @@ -0,0 +1,7 @@ +AUX 2.1.12_p19/avupdater.conf 615 RMD160 ea08210b70b04ca1edec7b3460cfd095d88711ce SHA1 a254866aa4f7c44ab84839ee206a112ea262879b SHA256 8158dd1225f8384b4e0abff38850b87c001f897a10f34243df2cb69c3711a37d +DIST antivir-updateplugin-prof-2.1.10.tar.gz 362704 RMD160 b0c24ef7fd3f623689a20e1795044e9fd61fd909 SHA1 605e82e96183740cdb314c7e11cef4e06ee723ab SHA256 9a555956b21b61b18b700c5408424b9258041fbd04195abde670dd0096fe9b13 +DIST antivir-workstation-prof-2.1.12-19.tar.gz 47657621 RMD160 2dd5f8c1cac069a42309e8e6f97a9e3de754b0fa SHA1 765b07d46f6f2805c1d320cd59083214fddfbfa4 SHA256 d5128e9dacab1cf5e40c4bf9244e49a3278875e62d2412175efc1ff27d5b9861 +DIST mirror.zip 25421 RMD160 b723453ff3b71c90fe3056ab6f88b9e175038110 SHA1 587f3af17b60a0804ce8944e193241cbb392033b SHA256 f6f0fbc8ef102b8cda70a5c8f53012ce975e492b07ef23402bfbe4ca7cc05a9c +EBUILD antivir-core-2.1.12_p19.ebuild 4256 RMD160 f9a9717a83d16a5e2ba1a2a3962ca780d9e7fee2 SHA1 82bade62d9a55c7c70d17817f510285386d1bb0e SHA256 a44dc70ecc0286539225e38f85ecf2b2e74b0e4d32f479344550a64d3755ec2f +MISC ChangeLog 452 RMD160 d338a82331c8ae614996b9db0a4b02c1b09a456c SHA1 1ed7d880f4f3d9f278a3508d78726aaa4c42553b SHA256 d5af4578ad22ecbaae4cfe86b86286341d7bfac21c5186a7ffa945aceb031912 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-antivirus/antivir-core/antivir-core-2.1.12_p19.ebuild b/app-antivirus/antivir-core/antivir-core-2.1.12_p19.ebuild new file mode 100644 index 0000000..9b4016d --- /dev/null +++ b/app-antivirus/antivir-core/antivir-core-2.1.12_p19.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - install/config: copy keyfile? +## + +inherit eutils multilib + +DESCRIPTION="AVIRA AntiVir virus scanner (core)" +MY_P="${PN/core/workstation}-prof-${PV/_p/-}" +SRC_URI="http://dl.antivir.de/down/unix/packages/${MY_P}.tar.gz + mirror? ( http://dl.antivir.de/down/unix/mirror.zip ) + smc? ( http://dl.antivir.de/down/unix/packages/antivir-updateplugin-prof-2.1.10.tar.gz )" +HOMEPAGE="http://www.antivir.de/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="crypt gui mirror smc" +DEPEND="" +RDEPEND="" +S="${WORKDIR}/${MY_P}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" + +} + +src_install () { + + # + # Home directory + # + + diropts -oroot -groot -m0755 + dodir "${AVHOMEDIR}" + diropts -oroot -g"${AVGROUP}" -m0770 + dodir "${AVHOMEDIR}/.storage" "${AVHOMEDIR}/updcomp" + insinto "${AVHOMEDIR}" + insopts -oroot -g"${AVGROUP}" -m0644 + + # + # Executables, libraries and misc components + # + + exeopts -oroot -g"${AVGROUP}" -m2755 + exeinto "${AVHOMEDIR}" + doexe bin/linux_glibc22/antivir + diropts "" + dodir \ + "${DESTTREE}/bin" \ + "${DESTTREE}/sbin" + dosym "${AVHOMEDIR}/antivir" "${DESTTREE}/bin/antivir" + if use mirror; then + exeopts -oroot -g"${AVGROUP}" -m0750 + doexe "${WORKDIR}"/antivir-mirror + fi + + # + # VDF + # + + insinto "${AVHOMEDIR}" + doins vdf/*.vdf + + # + # Key file (TODO FIXME) + # + + if [ -f "${FILESDIR}/hbedv.key" ]; then + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVHOMEDIR}" + doins "${FILESDIR}/hbedv.key" + fi +# dodir /etc/env.d && echo "CONFIG_PROTECT=\"${AVHOMEDIR}/hbedv.key\"" >"${D}/etc/env.d/99antivir" + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVCONFDIR}" + doins \ + "${FILESDIR}"/${PV}/avupdater.conf + if use mirror; then + newins "${WORKDIR}"/antivir-mirror.conf.default antivir-mirror.conf + fi + + ## TODO:GUI + + ## TODO:SMC + + # + # Documents + # + + dodoc \ + LICENSE \ + LICENSE.DE \ + README \ + doc/CHANGELOG \ + doc/MANUAL \ + legal/LICENSE.* + if use crypt; then + dodoc pgp/antivir.gpg + newdoc pgp/README README.gpg + fi + if use mirror; then + newdoc "${WORKDIR}"/README README.mirror + newdoc "${WORKDIR}"/LIESMICH LIESMICH.mirror + newdoc "${WORKDIR}"/product-types.txt antivir-mirror.product-types.txt + fi + +} + +pkg_preinst() { + + # + # Check for legacy files + # + + # Updater config: antivir.conf -> avupdater.conf + if [ -e "${AVCONFDIR}/antivir.conf" ]; then + ewarn + ewarn "You have a deprecated antivir.conf in ${AVCONFDIR}/." + ewarn "Please use ${AVCONFDIR}/avupdater.conf for the AntiVir Updater settings." + ewarn "A sample avupdater.conf has been installed to ${AVCONFDIR}/avupdater.conf" + ewarn "Please compare the settings from antivir.conf with those in avupdater.conf," + ewarn "modify those in avupdater.conf as needed and remove antivir.conf when done." + ewarn + fi + +} + +pkg_postinst() { + + # + # Config + # + + echo + einfo "" + einfo "Configuration" + einfo "=============" + einfo "" + einfo "Please run..." + einfo "" + einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "" + einfo "...to configure the package!" + + echo + +} + +pkg_config () { + + # + # Automatic updates + # Generate a random number between 1 and 59 for the crontab + # + + rand="$$$(date +%s)" + min="$[ ($rand % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo "\t${min} * * * * root exec ${AVHOMEDIR}/antivir --update >/dev/null" + einfo "" + echo + + ## TODO: mirror script +} diff --git a/app-antivirus/antivir-core/files/2.1.12_p19/avupdater.conf b/app-antivirus/antivir-core/files/2.1.12_p19/avupdater.conf new file mode 100755 index 0000000..e2b3151 --- /dev/null +++ b/app-antivirus/antivir-core/files/2.1.12_p19/avupdater.conf @@ -0,0 +1,26 @@ +## reporting via mail +EmailTo root + +## logging +#LogTo /var/log/antivir.log +SyslogFacility user +SyslogPriority notice + +## proxy server +#HTTPProxyServer proxy.example.com +#HTTPProxyPort 3128 +#HTTPProxyUsername username +#HTTPProxyPassword password + +## general update settings +#HTTPUpdateServer http://antivir.example.com +#UpdaterKeepsBackups + +## avupdater (better use cron) +#AutoUpdateEvery2Hours +#AutoUpdateDaily +#AutoUpdateTime 4:23 + +## GPG (for verification of signed binaries) +GnuPGBinary /usr/bin/gpg +GnuPGOptions --keyserver x-hkp://subkeys.pgp.net --keyserver-options auto-key-retrieve,honor-http-proxy,verbose diff --git a/app-antivirus/antivir-core/metadata.xml b/app-antivirus/antivir-core/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-antivirus/antivir-core/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-antivirus/antivir-internet-update-manager/ChangeLog b/app-antivirus/antivir-internet-update-manager/ChangeLog new file mode 100644 index 0000000..9f5fe0f --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/ChangeLog @@ -0,0 +1,17 @@ +# ChangeLog for app-antivirus/antivir-internet-update-manager +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 02 Jun 2009; Wolfram Schlich ++, + -files/2.4.0.6/antivir-ium.init.d, -files/2.4.0.6/ium.conf, + -files/2.4.0.6/mirrorconfig.xml, + -antivir-internet-update-manager-2.4.0.6.ebuild, + +antivir-internet-update-manager-2.4.0.6.3.ebuild: + version bump + + 02 Jun 2009; Wolfram Schlich + +files/2.4.0.6/antivir-ium.init.d, +files/2.4.0.6/ium.conf, + +files/2.4.0.6/mirrorconfig.xml, + +antivir-internet-update-manager-2.4.0.6.ebuild: + initial import + diff --git a/app-antivirus/antivir-internet-update-manager/Manifest b/app-antivirus/antivir-internet-update-manager/Manifest new file mode 100644 index 0000000..0bc33af --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/Manifest @@ -0,0 +1,6 @@ +AUX 2.4.0.6.3/antivir-ium.init.d 625 RMD160 5c3cd8d10a6aacf12c71eefa18228c75cd8e4ee6 SHA1 0cb414c1af96d8057baab66d9512819e76b89a07 SHA256 6ded8ef8e8ab9c5d8a168c69eb55e7ccaab6fc1df8cda69c9df1285a393a4878 +AUX 2.4.0.6.3/ium.conf 1964 RMD160 a9caae7cf6527fd2525275b557ef0521d704e8bf SHA1 e6a8042e8ff014a83ab4022d0a6ad5ea0f515517 SHA256 ebc270009ca99f15420dd367d6bf5bbc9db3abd771cbe583661f68310d675d1e +AUX 2.4.0.6.3/mirrorconfig.xml 1756 RMD160 28757eb166088ecf5bf21bc137df8a97413e710c SHA1 b79d9901c70fc4156845e238269abe36b4450b59 SHA256 752535d2d9ae0aaae6f9340217898670d42a07c18d9e6e415ca9dcb9d21f2425 +DIST avira_update_manager_unix_en.tar.gz 2146016 RMD160 51c375249b7d88c1c577184f3401b6bdb591d900 SHA1 f9a1f50d0913d9cb628eb655c2b36a1376003a46 SHA256 43560e68c2a1fe0938d0ad203757bb8f1b41d0bb0b0c08b287a5b0d87b0852d1 +EBUILD antivir-internet-update-manager-2.4.0.6.3.ebuild 5104 RMD160 afb08363c949d1f8fe1197304285e0cd9ee55bf8 SHA1 92085aa3fcf27b0cc3a4bb32064068dee3828ee8 SHA256 fb1a012c5a4c5cac68fab3702a33c5e4400baffd64c10462186ab5fc8f2271ff +MISC ChangeLog 639 RMD160 6df2f2c4ca6f094e1ce6441af6029787238465f2 SHA1 29f969e08e9af7a0fe95e4227a3c83daac4113d2 SHA256 3fb4fce20a39f876ffd8ae39a7c25d93ee30f04a8f9f1548a5d44ebe0ff55a92 diff --git a/app-antivirus/antivir-internet-update-manager/antivir-internet-update-manager-2.4.0.6.3.ebuild b/app-antivirus/antivir-internet-update-manager/antivir-internet-update-manager-2.4.0.6.3.ebuild new file mode 100644 index 0000000..87174cf --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/antivir-internet-update-manager-2.4.0.6.3.ebuild @@ -0,0 +1,234 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - ? +## + +inherit eutils pax-utils + +DESCRIPTION="AVIRA AntiVir Update Manager" +MY_P="avira_update_manager_unix-${PV%.*}-${PV##*.}" +SRC_URI="http://dl1.pro.antivir.de/package/ium/unix/en/avira_update_manager_unix_en.tar.gz" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND=">=app-antivirus/antivir-savapi-3" +S="${WORKDIR}/${MY_P}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc/avira}" +AVIUMHTTPDIR="${AVIUMHTTPDIR:-/var/avira/ium/HttpRoot}" +AVIUMLOGDIR="${AVIUMLOGDIR:-/var/log/ium}" +AVUSER="${AVUSER:-avgate}" +AVUID="${AVUID:-220}" +AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" +AVHOSTNAME="${AVHOSTNAME:-$(hostname -f)}" + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" + enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_install() { + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}/ium" + insinto "${AVHOMEDIR}/ium" + exeopts -oroot -g"${AVGROUP}" -m2750 + insopts -oroot -g"${AVGROUP}" -m0640 + doexe bin/linux_glibc22/ium + doins bin/linux_glibc22/ium_msg.avr + doins bin/linux_glibc22/libcommon.so + doins bin/linux_glibc22/common_msg.avr + doins etc/iumproducts.xml + + local libupdate_ver=0.1.0.33 + doins bin/linux_glibc22/libupdate.so.${libupdate_ver} + dosym "libupdate.so.${libupdate_ver}" "${AVHOMEDIR}/ium/libupdate.so.0" + dosym "libupdate.so.${libupdate_ver}" "${AVHOMEDIR}/ium/libupdate.so" + + diropts "" + dodir "${DESTTREE}/sbin" + dosym "${AVHOMEDIR}/ium/ium" "${DESTTREE}/sbin/avium" + + newexe script/avira_start.sh.template avium + doexe script/avium_start.sh + doexe script/avium_restart.sh + doexe script/avium_stop.sh + + insinto "${AVHOMEDIR}/ium/ssl" + doins cert/cacert.pem + doins cert/server.pem + + # + # Init script + # + + exeopts -oroot -groot -m0755 + exeinto /etc/init.d + newexe "${FILESDIR}/${PV}/antivir-ium.init.d" antivir-ium + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVCONFDIR}" + doins "${FILESDIR}"/${PV}/ium.conf + dosed "s:%AVIUMHTTPDIR%:${AVIUMHTTPDIR}:g" "${AVCONFDIR}/ium.conf" + doins "${FILESDIR}"/${PV}/mirrorconfig.xml + + # + # IUM log directory + # + + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0750 + dodir "${AVIUMLOGDIR}" + dodir "${AVIUMHTTPDIR}" + + # + # Documents + # + + dodoc \ + LICENSE \ + LICENSE.DE \ + README \ + doc/MANUAL + + # + # Templates + # + + insinto "${AVHOMEDIR}/ium" + insopts -m0644 + doins templates/*.htm + doins doc/mail_template_iumstatus.txt + +} + +pkg_postinst() { + + # + # Manual invocation + # + + elog + elog "Manually adding products to get updates for" + elog "===========================================" + elog + elog " ${AVHOMEDIR}/ium/ium --add_products" + elog + elog "Manually getting updates for products" + elog "=====================================" + elog + elog " ${AVHOMEDIR}/ium/ium --get_updates" + elog + + echo + + # + # Automatic updates for products + # + + rand="$(date +%N 2>/dev/null)" + min="$[ (${rand:-${RANDOM}} % 59) + 1 ]" + elog + elog "Automatically getting updates for products" + elog "==========================================" + elog + elog "Add the following line to your /etc/crontab or a new file" + elog "in /etc/cron.d/ to make AntiVir check for updates" + elog "${min} minutes after every full hour:" + elog + elog " ${min} * * * * root exec ${AVHOMEDIR}/ium/ium --get_updates >/dev/null" + elog + + echo + + # + # Automatic updates for IUM + # + + rand="$(date +%N 2>/dev/null)" + min="$[ (${rand:-${RANDOM}} % 59) + 1 ]" + elog + elog "Automatically getting updates for IUM itself" + elog "===========================================" + elog + elog "Add the following line to your /etc/crontab or a new file" + elog "in /etc/cron.d/ to make AntiVir check for updates" + elog "${min} minutes after every full hour:" + elog + elog " ${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=IUM >/dev/null" + elog + + echo + + # + # Client configuration info + # + + elog + elog "Configuring clients" + elog "===================" + elog + elog "Windows clients" + elog "---------------" + elog + elog "Options -> General -> Update -> Webserver -> Download Server:" + elog " http://iumserver:7080/upd" + elog + elog "Linux clients" + elog "-------------" + elog + elog "For SAVAPI2 products add these two options in /etc/avupdater.conf:" + elog " HTTPUpdateServer 'iumserver':7080" + elog " IgnoreRemoteServerSpec yes" + elog + elog "For SAVAPI3 products adjust /etc/avupdate.conf as follows:" + elog " internet-srvs=http://iumserver:7080/upd" + elog + + echo + + # + # Templates + # + + elog + elog "Using the HTML templates" + elog "========================" + elog + elog "The templates were installed into" + elog + elog "\t${AVHOMEDIR}/ium" + elog + +} diff --git a/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d new file mode 100755 index 0000000..d296554 --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d @@ -0,0 +1,36 @@ +#!/sbin/runscript + +svc_name="Avira AntiVir Internet Update Manager" + +avium_script="/usr/lib/AntiVir/ium/avium" +avium_config="/etc/avira/ium.conf" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${avium_script}" ]; then + eerror "AntiVir IUM script [${avium_script}] missing" + return 1 + fi + if [ ! -r "${avium_config}" ]; then + eerror "AntiVir IUM config [${avium_config}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${avium_script}" start + eend $? +} + +stop() { + checkconfig || return 2 + ebegin "Stopping ${svc_name}" + "${avium_script}" stop + eend $? +} diff --git a/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/ium.conf b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/ium.conf new file mode 100644 index 0000000..a3d3f61 --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/ium.conf @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/mirrorconfig.xml b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/mirrorconfig.xml new file mode 100644 index 0000000..a60ff73 --- /dev/null +++ b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/mirrorconfig.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app-antivirus/antivir-mailgate/ChangeLog b/app-antivirus/antivir-mailgate/ChangeLog new file mode 100644 index 0000000..8d3dd8a --- /dev/null +++ b/app-antivirus/antivir-mailgate/ChangeLog @@ -0,0 +1,25 @@ +# ChangeLog for app-antivirus/antivir-mailgate +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 11 Nov 2009; Wolfram Schlich + antivir-mailgate-3.0.0_p14.ebuild: + change SRC_URI + + 04 Mar 2009; Wolfram Schlich + +files/3.0.0_p14/antivir-mailgate.initd, + +files/3.0.0_p14/avmailgate.conf.diff.postfix.bz2, + +files/3.0.0_p14/avmailgate-scanner.conf.diff.bz2, + +antivir-mailgate-3.0.0_p14.ebuild: + version bump + + 09 Dec 2008; Wolfram Schlich + antivir-mailgate-2.1.4_p7-r1.ebuild: + added ~amd64 + + 15 Apr 2008; Wolfram Schlich + +files/2.1.4_p7/antivir-mailgate.init.d, + +files/2.1.4_p7/avmailgate.conf.diff.postfix, + +files/2.1.4_p7/avupdater.conf, +antivir-mailgate-2.1.4_p7.ebuild: + version bump + diff --git a/app-antivirus/antivir-mailgate/Manifest b/app-antivirus/antivir-mailgate/Manifest new file mode 100644 index 0000000..db491ff --- /dev/null +++ b/app-antivirus/antivir-mailgate/Manifest @@ -0,0 +1,12 @@ +AUX 2.1.4_p7/antivir-mailgate.init.d 898 RMD160 a12942a6cf8da27c5f81adbf664f3ee18b93235a SHA1 0962a1e2984dd05b422fe0b60dd1130e857979ee SHA256 035233b80a5f045cec10de2958e219f5f26c18c54de714165f60840d25ad37d5 +AUX 2.1.4_p7/avmailgate.conf.diff.postfix.bz2 5441 RMD160 6bbd8034dc30f6dac14837f995a41c4c85db6f99 SHA1 bed730d418122d56d532a891a5f450a26ec5a709 SHA256 ba282cad20e11c99b34b60bd5d04446bf6f73b110626ec1c60ba4b7c09d1d208 +AUX 2.1.4_p7/avupdater.conf 621 RMD160 865549dfa52ac4787e5c992f51751d73c11630c4 SHA1 82e87c29ca000044530cafeda4cbb9d98097671c SHA256 3dbac1f331fc34bb9f79bf0faa9f729a2601b0938c0fa09a8cc0365b04266392 +AUX 3.0.0_p14/antivir-mailgate.initd 914 RMD160 76676ec1567eed718ef42bf544aaac97e7d9199b SHA1 d0513ac129be814471e6d227c11cd353389caea1 SHA256 109cf5ad9bd344843d4449c64ccebabbdeff4986abf1390e922bb0c3c1962738 +AUX 3.0.0_p14/avmailgate-scanner.conf.diff.bz2 739 RMD160 990a5123af9d306d0a0ba4321bb28bf4bd92819a SHA1 16dae66743e50736688ec455891c3dbce0d8129f SHA256 8e1df8fe3204232c8493cf330e3abca20f72a95f7bd7682f1a48988740baa715 +AUX 3.0.0_p14/avmailgate.conf.diff.postfix.bz2 4956 RMD160 e58e8abcdcca507a0eeb9e622150944a5e53ac6f SHA1 1accef8fb518ebb81983b9284f532f37f716c17f SHA256 0e98cd1bcd99e3cea27fec91d50fa0196b689dd90f09f8bf5689c48f5d3f925a +DIST antivir-mailgate-prof-2.1.4-7.tar.gz 67012825 RMD160 1fd8ff0b0bfc95a3d06014feeaed4868136c7c9f SHA1 e007111a14c51337c63cb5590381828365a4a0e6 SHA256 2498484d745fdd7c3b6af3fc790a9b2b7d5e2dc202d0d4868501b372ca9e294e +DIST antivir-mailgate-prof-3.0.0-14.tar.gz 31856751 RMD160 20ad6af92fdef49145bbffdf2376a955110e9892 SHA1 457c617e57d38e8e3d2f95ecc1d16bf347d967d4 SHA256 0df70bb0e4c6612c2c7a678f41648d8d23951c564a0dd4ea52f96f4c656abb0a +EBUILD antivir-mailgate-2.1.4_p7-r1.ebuild 7441 RMD160 ccb05a1387578ca2c3db48c982201964c4810f1a SHA1 8f4ae83241db9a4d8d8112b08fd6edbfa7be9a07 SHA256 9e533ba0c524690e47ae6be496fa8082d18ff980986fe8543bfde90e3f61e9bc +EBUILD antivir-mailgate-3.0.0_p14.ebuild 8422 RMD160 f3f48caa8bfc04be9ca72315723f24e2fdb083ce SHA1 cc88cbb2b13bf0a47f502a6fd08ba9dbf7d8a4a5 SHA256 54d2897870a66eca5f4674ce6e192ccce7b4217f623b9dbb6d66e02a20c43fdd +MISC ChangeLog 832 RMD160 62ceafa2c022ef6cd56af082221bc3f494682c23 SHA1 db11ed019c0da029d14289a0c175d9f2dd26218c SHA256 a1abdf4a90b5504407333ca168e177dab2c6cd2377304773a6a58b0dfcebd2bd +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-antivirus/antivir-mailgate/antivir-mailgate-2.1.4_p7-r1.ebuild b/app-antivirus/antivir-mailgate/antivir-mailgate-2.1.4_p7-r1.ebuild new file mode 100644 index 0000000..211b261 --- /dev/null +++ b/app-antivirus/antivir-mailgate/antivir-mailgate-2.1.4_p7-r1.ebuild @@ -0,0 +1,336 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - config: setup avmailgate.acl? +## - install/config: copy keyfile? +## - config: setup mta config? -> show INSTALL.$mta file, at least +## - install/config: avguard? -> check if avspooldir is excluded in guard config +## - install/config: gui? +## + +inherit eutils pax-utils multilib + +DESCRIPTION="AVIRA AntiVir MailGate SMTP mail virus scanner" +MY_P="${PN}-prof-${PV/_p/-}" +SRC_URI="http://dl.antivir.de/down/unix/packages/${MY_P}.tar.gz" +HOMEPAGE="http://www.antivir.de/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="postfix spamfilter" # TODO: gui exim qmail sendmail smc +DEPEND="" +RDEPEND=">=app-antivirus/antivir-core-2.1.12_p19 + postfix? ( mail-mta/postfix )" +S="${WORKDIR}/${MY_P}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc}" +AVSPOOLDIR="${AVSPOOLDIR:-/var/spool/avmailgate}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +AVPIDDIR="${AVPIDDIR:-/var/tmp}" +AVUSER="${AVUSER:-avgate}" +AVUID="${AVUID:-220}" +AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" +AVHOSTNAME="${AVHOSTNAME:-$(hostname -f)}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" + enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_unpack() { + + unpack ${A} + cd "${S}" + + # + # MTA specific config + # + + if use postfix; then + pushd ./etc >/dev/null \ + && epatch "${FILESDIR}/${PV}/avmailgate.conf.diff.postfix.bz2" \ + && popd >/dev/null + fi + +} + +src_install() { + + # + # Base directories + # + + if use spamfilter; then + diropts -oroot -g"${AVGROUP}" -m0750 + dodir /var/lib/AntiVir + dodir /var/tmp/AntiVir + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0750 + dodir /var/tmp/AntiVir/asmailgate + dodir /var/lib/AntiVir/asmailgate + diropts "" + dosym /var/lib/AntiVir/asmailgate "${AVHOMEDIR}/mailgate-var" + fi + + # + # Executables, libraries and misc components + # + + exeopts -oroot -g"${AVGROUP}" -m2750 + exeinto "${AVHOMEDIR}" + doexe bin/linux_glibc22/avmailgate.bin + diropts "" + dodir \ + "${DESTTREE}/sbin" + dosym "${AVHOMEDIR}/avmailgate.bin" "${DESTTREE}/sbin/avmailgate" + + if use spamfilter; then + exeopts -o"${AVUSER}" -g"${AVGROUP}" -m2750 + exeinto "${AVHOMEDIR}" + doexe contrib/asmailgate/bin/linux_glibc22/avmg_ext_filter.bin + pax-mark -m "${D}${AVHOMEDIR}"/avmg_ext_filter.bin + insopts -o"${AVUSER}" -g"${AVGROUP}" -m0644 + insinto "${AVHOMEDIR}" + doins contrib/asmailgate/bin/linux_glibc22/libasmailgate.so + doins contrib/asmailgate/data/asmailgate.dat + insinto /var/lib/AntiVir/asmailgate + doins contrib/asmailgate/var/as_sdk_features.yml + doins contrib/asmailgate/var/asconfig.yml + doins contrib/asmailgate/var/asmailgate.yml + fi + + # + # Init script + # + + exeopts -oroot -groot -m0755 + exeinto /etc/init.d + newexe "${FILESDIR}/${PV}/antivir-mailgate.init.d" antivir-mailgate + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVCONFDIR}" + doins \ + etc/avmailgate.acl \ + etc/avmailgate.conf \ + etc/avmailgate.ignore \ + etc/avmailgate.scan \ + etc/avmailgate.warn +# use gui && doins etc/avmailgate.conf-gui + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVCONFDIR%:${AVCONFDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVSPOOLDIR%:${AVSPOOLDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVPIDDIR%:${AVPIDDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVHOSTNAME%:${AVHOSTNAME}:g" "${AVCONFDIR}/avmailgate.conf" + if use spamfilter; then + dosed "s:^EnableSpamCheck NO:EnableSpamCheck YES:g" "${AVCONFDIR}/avmailgate.conf" + touch "${T}/asmailgate.except" + doins "${T}/asmailgate.except" + fi + + # + # Spool directory + # + + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0700 + dodir "${AVSPOOLDIR}" + keepdir "${AVSPOOLDIR}" + for dir in incoming outgoing rejected; do + dodir "${AVSPOOLDIR}/${dir}" + keepdir "${AVSPOOLDIR}/${dir}" + done + + ## TODO:GUI + + ## TODO:SMC + + # + # Documents + # + + dodoc \ + LICENSE \ + LICENSE.DE \ + README \ + doc/CHANGELOG \ + doc/INSTALL \ + doc/INSTALL.DE \ + doc/MANUAL \ + doc/RELEASE_NOTES \ + doc/avmailgate_de.pdf \ + doc/avmailgate_en.pdf \ + legal/LICENSE.* + use postfix && dodoc \ + doc/INSTALL.postfix +# use exim && dodoc \ +# doc/INSTALL.exim +# use sendmail && dodoc \ +# doc/INSTALL.sendmail +# use qmail && dodoc \ +# doc/INSTALL.qmail +# use qmail && use gui && dodoc \ +# doc/INSTALL.qmail.gui + doman \ + doc/man/avmailgate.8 \ + doc/man/avmailgate.conf.5 + + # + # Templates + # + + diropts "" + dodir "${AVHOMEDIR}/templates.sample" + insopts "" + insinto "${AVHOMEDIR}/templates.sample" + doins \ + templates/en/patho-administrator \ + templates/en/patho-recipient \ + templates/en/patho-sender \ + templates/en/alert-administrator \ + templates/en/alert-recipient \ + templates/en/alert-sender + if use spamfilter; then + doins \ + templates/spamfilter-subjects + fi + +} + +pkg_preinst() { + + # + # Check for legacy files + # + + # Templates: virus-* -> alert-* + for t in administrator recipient sender; do + tf="${AVHOMEDIR}/templates/virus-${t}" + new_tf="${AVHOMEDIR}/templates/alert-${t}" + if [ -e "${tf}" ]; then + ewarn + ewarn "You have an old notification mail template file in ${AVHOMEDIR}/templates/:" + ewarn " -> ${tf}" + ewarn "Please rename it as follows:" + ewarn " -> ${new_tf}" + ewarn + fi + done + +} + +pkg_postinst() { + + # + # Config + # + + echo + einfo "" + einfo "Configuration" + einfo "=============" + einfo "" + einfo "Please run..." + einfo "" + einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "" + einfo "...to configure the package!" + einfo "" + echo + +} + +pkg_config() { + + # + # Init script + # + + echo + einfo "" + einfo "Using the init script" + einfo "=====================" + einfo "" + einfo "Simply run..." + einfo "" + einfo "\trc-update add antivir-mailgate default" + einfo "" + einfo "...and your're done." + einfo "" + + # + # Templates + # + + echo + einfo "" + einfo "Using the notification mail templates" + einfo "=====================================" + einfo "" + einfo "The sample templates were installed into" + einfo "" + einfo "\t${AVHOMEDIR}/templates.sample" + einfo "" + einfo "To use them, simply do..." + einfo "" + einfo "\tcd ${AVHOMEDIR}" + einfo "\tmv templates.sample templates" + einfo "" + einfo "...and edit the files in the 'templates'-subdirectory." + einfo "" + + # + # MTA config + # TODO: qmail exim sendmail + # + + if use postfix; then + echo + einfo "" + einfo "MTA configuration (Postfix)" + einfo "===========================" + einfo "" + einfo "See INSTALL.postfix. Quickstart:" + einfo "" + einfo "1) Add the following line to /etc/postfix/main.cf:" + einfo "" + einfo "\tcontent_filter = smtp:127.0.0.1:10024" + einfo "" + einfo "2) Add the following line to /etc/postfix/master.cf:" + einfo "" + einfo "\tlocalhost:10025 inet n - y - - smtpd -o content_filter=" + einfo "" + fi + +} diff --git a/app-antivirus/antivir-mailgate/antivir-mailgate-3.0.0_p14.ebuild b/app-antivirus/antivir-mailgate/antivir-mailgate-3.0.0_p14.ebuild new file mode 100644 index 0000000..83eccad --- /dev/null +++ b/app-antivirus/antivir-mailgate/antivir-mailgate-3.0.0_p14.ebuild @@ -0,0 +1,368 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - config: setup avmailgate.acl? +## - install/config: copy keyfile? +## - config: setup mta config? -> show INSTALL.$mta file, at least +## - install/config: avguard? -> check if avspooldir is excluded in guard config +## - install/config: gui? +## + +inherit eutils pax-utils + +DESCRIPTION="AVIRA AntiVir MailGate SMTP mail virus scanner" +MY_P="${PN}-prof-${PV/_p/-}" +SRC_URI="http://wolfram.schlich.org/linux/gentoo/distfiles/${MY_P}.tar.gz" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="postfix spamfilter" # TODO: gui exim qmail sendmail smc +DEPEND="" +RDEPEND=">=app-antivirus/antivir-savapi-3 + postfix? ( mail-mta/postfix )" +S="${WORKDIR}/${MY_P}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc}" +AVSPOOLDIR="${AVSPOOLDIR:-/var/spool/avmailgate}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +AVPIDDIR="${AVPIDDIR:-/var/tmp}" +AVSAVAPISOCKET="${AVSAVAPISOCKET:-/var/run/avmailgate/scanner}" +AVUSER="${AVUSER:-avgate}" +AVUID="${AVUID:-220}" +AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" +AVHOSTNAME="${AVHOSTNAME:-$(hostname -f)}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" + enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_unpack() { + + unpack ${A} + cd "${S}" + + # + # MTA specific config + # + + if use postfix; then + pushd ./etc >/dev/null \ + && epatch "${FILESDIR}/${PV}/avmailgate.conf.diff.postfix.bz2" \ + && popd >/dev/null + fi + + # + # scanner config + # + + pushd ./etc >/dev/null \ + && epatch "${FILESDIR}/${PV}/avmailgate-scanner.conf.diff.bz2" \ + && popd >/dev/null + +} + +src_install() { + + # + # Base directories + # + + if use spamfilter; then + diropts -oroot -g"${AVGROUP}" -m0750 + dodir /var/tmp/AntiVir + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0750 + dodir /var/tmp/AntiVir/asmailgate + diropts "" + fi + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2750 + doexe bin/linux_glibc22/avmailgate.bin + exeopts -oroot -g"${AVGROUP}" -m0750 + newexe script/avira_start.sh.template avmailgate + doexe script/avmailgate_start.sh + doexe script/avmailgate_stop.sh + doexe script/avmailgate_restart.sh + doexe script/avmailgate_post.sh + diropts "" + dodir "${DESTTREE}/sbin" + dosym "${AVHOMEDIR}/avmailgate.bin" "${DESTTREE}/sbin/avmailgate" + if use spamfilter; then + exeopts -o"${AVUSER}" -g"${AVGROUP}" -m2750 + exeinto "${AVHOMEDIR}" + doexe contrib/asmailgate/bin/linux_glibc22/avmg_ext_filter.bin + insopts -o"${AVUSER}" -g"${AVGROUP}" -m0644 + insinto "${AVHOMEDIR}" + doins contrib/asmailgate/bin/linux_glibc22/libasmailgate.so + doins contrib/asmailgate/data/asmailgate.dat + fi + + # + # Init script + # + + exeopts -oroot -groot -m0755 + exeinto /etc/init.d + newexe "${FILESDIR}/${PV}/antivir-mailgate.initd" antivir-mailgate + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVCONFDIR}" + doins \ + etc/avmailgate.acl \ + etc/avmailgate.conf \ + etc/avmailgate.ignore \ + etc/avmailgate.scan \ + etc/avmailgate.warn +# use gui && doins etc/avmailgate.conf-gui + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVCONFDIR%:${AVCONFDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVSPOOLDIR%:${AVSPOOLDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVPIDDIR%:${AVPIDDIR}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/avmailgate.conf" + dosed "s:%AVHOSTNAME%:${AVHOSTNAME}:g" "${AVCONFDIR}/avmailgate.conf" + + doins etc/avmailgate-scanner.conf + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avmailgate-scanner.conf" + dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/avmailgate-scanner.conf" + dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/avmailgate-scanner.conf" + dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/avmailgate-scanner.conf" + + if use spamfilter; then + dosed "s:^EnableSpamCheck NO:EnableSpamCheck YES:g" "${AVCONFDIR}/avmailgate.conf" + touch "${T}/asmailgate.except" + doins "${T}/asmailgate.except" + fi + + # + # Spool directory + # + + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0700 + dodir "${AVSPOOLDIR}" + keepdir "${AVSPOOLDIR}" + for dir in incoming outgoing rejected; do + dodir "${AVSPOOLDIR}/${dir}" + keepdir "${AVSPOOLDIR}/${dir}" + done + + ## TODO:GUI + + ## TODO:SMC + + # + # Documents + # + + dodoc \ + LICENSE \ + LICENSE.DE \ + README \ + doc/CHANGELOG \ + doc/INSTALL \ + doc/INSTALL.DE \ + doc/MANUAL \ + doc/RELEASE_NOTES \ + doc/avmailgate_en.pdf \ + legal/LICENSE.* + use postfix && dodoc \ + doc/INSTALL.postfix +# use exim && dodoc \ +# doc/INSTALL.exim +# use sendmail && dodoc \ +# doc/INSTALL.sendmail +# use qmail && dodoc \ +# doc/INSTALL.qmail +# use qmail && use gui && dodoc \ +# doc/INSTALL.qmail.gui + doman \ + doc/man/avmailgate.8 \ + doc/man/avmailgate.conf.5 + + # + # Templates + # + + diropts "" + dodir "${AVHOMEDIR}/templates.sample" + insopts "" + insinto "${AVHOMEDIR}/templates.sample" + doins \ + templates/en/patho-administrator \ + templates/en/patho-recipient \ + templates/en/patho-sender \ + templates/en/alert-administrator \ + templates/en/alert-recipient \ + templates/en/alert-sender + if use spamfilter; then + doins \ + templates/spamfilter-subjects + fi + +} + +pkg_preinst() { + + # + # Check for legacy files + # + + # Templates: virus-* -> alert-* + for t in administrator recipient sender; do + tf="${AVHOMEDIR}/templates/virus-${t}" + new_tf="${AVHOMEDIR}/templates/alert-${t}" + if [ -e "${tf}" ]; then + ewarn + ewarn "You have an old notification mail template file in ${AVHOMEDIR}/templates/:" + ewarn " -> ${tf}" + ewarn "Please rename it as follows:" + ewarn " -> ${new_tf}" + ewarn + fi + done + +} + +pkg_postinst() { + + # + # Config + # + + echo + einfo "" + einfo "Configuration" + einfo "=============" + einfo "" + einfo "Please run..." + einfo "" + einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "" + einfo "...to configure the package!" + einfo "" + echo + +} + +pkg_config() { + + # + # Init script + # + + echo + einfo "" + einfo "Using the init script" + einfo "=====================" + einfo "" + einfo "Simply run..." + einfo "" + einfo "\trc-update add antivir-mailgate default" + einfo "" + einfo "...and your're done." + einfo "" + + # + # Templates + # + + echo + einfo "" + einfo "Using the notification mail templates" + einfo "=====================================" + einfo "" + einfo "The sample templates were installed into" + einfo "" + einfo "\t${AVHOMEDIR}/templates.sample" + einfo "" + einfo "To use them, simply do..." + einfo "" + einfo "\tcd ${AVHOMEDIR}" + einfo "\tmv templates.sample templates" + einfo "" + einfo "...and edit the files in the 'templates'-subdirectory." + einfo "" + + # + # MTA config + # TODO: qmail exim sendmail + # + + if use postfix; then + echo + einfo "" + einfo "MTA configuration (Postfix)" + einfo "===========================" + einfo "" + einfo "See INSTALL.postfix. Quickstart:" + einfo "" + einfo "1) Add the following line to /etc/postfix/main.cf:" + einfo "" + einfo "\tcontent_filter = smtp:127.0.0.1:10024" + einfo "" + einfo "2) Add the following line to /etc/postfix/master.cf:" + einfo "" + einfo "\tlocalhost:10025 inet n - y - - smtpd -o content_filter=" + einfo "" + fi + + # + # Automatic updates + # Generate a random number between 1 and 59 for the crontab + # + + rand="$$$(date +%s)" + min="$[ ($rand % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo "\t${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=mailgate >/dev/null" + einfo "" + echo + +} diff --git a/app-antivirus/antivir-mailgate/files/2.1.4_p7/antivir-mailgate.init.d b/app-antivirus/antivir-mailgate/files/2.1.4_p7/antivir-mailgate.init.d new file mode 100755 index 0000000..2c7d466 --- /dev/null +++ b/app-antivirus/antivir-mailgate/files/2.1.4_p7/antivir-mailgate.init.d @@ -0,0 +1,46 @@ +#!/sbin/runscript +## 2003 by H+BEDV Datentechnik GmbH, +## Wolfram Schlich + +svc_name="AntiVir MailGate" + +## required binaries +avmailgate_bin="/usr/lib/AntiVir/avmailgate.bin" + +## required config files +avmailgate_cfg="/etc/avmailgate.conf" +avmailgate_acl="/etc/avmailgate.acl" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${avmailgate_bin}" ]; then + eerror "avmailgate binary [${avmailgate_bin}] missing" + return 1 + fi + if [ ! -r "${avmailgate_cfg}" ]; then + eerror "avmailgate config [${avmailgate_cfg}] missing" + return 1 + fi + if [ ! -r "${avmailgate_acl}" ]; then + eerror "avmailgate acl [${avmailgate_acl}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${avmailgate_bin}" --start + eend $? +} + +stop() { + checkconfig || return 2 + ebegin "Stopping ${svc_name}" + "${avmailgate_bin}" --stop + eend $? +} diff --git a/app-antivirus/antivir-mailgate/files/2.1.4_p7/avmailgate.conf.diff.postfix.bz2 b/app-antivirus/antivir-mailgate/files/2.1.4_p7/avmailgate.conf.diff.postfix.bz2 new file mode 100644 index 0000000..f0ede41 Binary files /dev/null and b/app-antivirus/antivir-mailgate/files/2.1.4_p7/avmailgate.conf.diff.postfix.bz2 differ diff --git a/app-antivirus/antivir-mailgate/files/2.1.4_p7/avupdater.conf b/app-antivirus/antivir-mailgate/files/2.1.4_p7/avupdater.conf new file mode 100755 index 0000000..1453987 --- /dev/null +++ b/app-antivirus/antivir-mailgate/files/2.1.4_p7/avupdater.conf @@ -0,0 +1,26 @@ +## reporting via mail +EmailTo postmaster + +## logging +#LogTo /var/log/antivir.log +SyslogFacility user +SyslogPriority notice + +## proxy server +#HTTPProxyServer proxy.example.com +#HTTPProxyPort 3128 +#HTTPProxyUsername username +#HTTPProxyPassword password + +## general update settings +#HTTPUpdateServer http://antivir.example.com +#UpdaterKeepsBackups + +## avupdater (better use cron) +#AutoUpdateEvery2Hours +#AutoUpdateDaily +#AutoUpdateTime 4:23 + +## GPG (for verification of signed binaries) +GnuPGBinary /usr/bin/gpg +GnuPGOptions --keyserver x-hkp://subkeys.pgp.net --keyserver-options auto-key-retrieve,honor-http-proxy,verbose diff --git a/app-antivirus/antivir-mailgate/files/3.0.0_p14/antivir-mailgate.initd b/app-antivirus/antivir-mailgate/files/3.0.0_p14/antivir-mailgate.initd new file mode 100755 index 0000000..f1cb9b8 --- /dev/null +++ b/app-antivirus/antivir-mailgate/files/3.0.0_p14/antivir-mailgate.initd @@ -0,0 +1,44 @@ +#!/sbin/runscript + +svc_name="AntiVir MailGate" + +## required executables +antivir_mailgate_script="/usr/lib/AntiVir/avmailgate" + +## required config files +antivir_mailgate_cfg="/etc/avmailgate.conf" +antivir_mailgate_acl="/etc/avmailgate.acl" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${antivir_mailgate_script}" ]; then + eerror "AntiVir MailGate script [${antivir_mailgate_script}] missing" + return 1 + fi + if [ ! -r "${antivir_mailgate_cfg}" ]; then + eerror "AntiVir MailGate config [${antivir_mailgate_cfg}] missing" + return 1 + fi + if [ ! -r "${antivir_mailgate_acl}" ]; then + eerror "AntiVir MailGate ACL [${antivir_mailgate_acl}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${antivir_mailgate_script}" start + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${svc_name}" + "${antivir_mailgate_script}" stop + eend $? +} diff --git a/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate-scanner.conf.diff.bz2 b/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate-scanner.conf.diff.bz2 new file mode 100644 index 0000000..19c85a3 Binary files /dev/null and b/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate-scanner.conf.diff.bz2 differ diff --git a/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate.conf.diff.postfix.bz2 b/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate.conf.diff.postfix.bz2 new file mode 100644 index 0000000..2347478 Binary files /dev/null and b/app-antivirus/antivir-mailgate/files/3.0.0_p14/avmailgate.conf.diff.postfix.bz2 differ diff --git a/app-antivirus/antivir-mailgate/metadata.xml b/app-antivirus/antivir-mailgate/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-antivirus/antivir-mailgate/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-antivirus/antivir-savapi/ChangeLog b/app-antivirus/antivir-savapi/ChangeLog new file mode 100644 index 0000000..d6677eb --- /dev/null +++ b/app-antivirus/antivir-savapi/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for app-antivirus/antivir-savapi +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 02 Jun 2009; Wolfram Schlich + +files/3.0.5.17/antivir-savapi.conf, +files/3.0.5.17/antivir-savapi.initd, + +files/3.0.5.17/avupdate.conf, +antivir-savapi-3.0.5.17.ebuild: + version bump + + 04 Mar 2009; Wolfram Schlich + +files/3.0.4_p32/antivir-savapi.conf, + +files/3.0.4_p32/antivir-savapi.initd, +files/3.0.4_p32/avupdate.conf, + +metadata.xml, +antivir-savapi-3.0.4_p32.ebuild: + initial import + diff --git a/app-antivirus/antivir-savapi/Manifest b/app-antivirus/antivir-savapi/Manifest new file mode 100644 index 0000000..0269fdd --- /dev/null +++ b/app-antivirus/antivir-savapi/Manifest @@ -0,0 +1,12 @@ +AUX 3.0.4_p32/antivir-savapi.conf 4060 RMD160 69bcb774bb52a9204f4aea6f46f8edd52cb0eed5 SHA1 688f3a4647f0e9199bf987d6070942e8213e247a SHA256 28ff617e5897f95a5a90c73b6469facd69deda717dd3fb680acdc8f9cf3c8370 +AUX 3.0.4_p32/antivir-savapi.initd 1196 RMD160 998f1e154faea52ee829241dfc7b68c8dc020ed7 SHA1 38edb72f6a5993649eb47140cc125e20f8411d06 SHA256 50e39ef969836c38eacf3aa39ce4bf8266e9ade9107837dd21c85670f35caefb +AUX 3.0.4_p32/avupdate.conf 1818 RMD160 d119181616626b8baa0011e9f5ad65c21cc97ba9 SHA1 73d442a204d1337e214922093c12f9b4b2190c56 SHA256 54a3828786a5168068e663f654c6d9caa7d00fcd3e510d034fbb725915b64c53 +AUX 3.0.5.17/antivir-savapi.conf 4060 RMD160 69bcb774bb52a9204f4aea6f46f8edd52cb0eed5 SHA1 688f3a4647f0e9199bf987d6070942e8213e247a SHA256 28ff617e5897f95a5a90c73b6469facd69deda717dd3fb680acdc8f9cf3c8370 +AUX 3.0.5.17/antivir-savapi.initd 1196 RMD160 998f1e154faea52ee829241dfc7b68c8dc020ed7 SHA1 38edb72f6a5993649eb47140cc125e20f8411d06 SHA256 50e39ef969836c38eacf3aa39ce4bf8266e9ade9107837dd21c85670f35caefb +AUX 3.0.5.17/avupdate.conf 1818 RMD160 5215f87c342e8f46d8a0645d9441c2cd42a760db SHA1 5a0e874d5118dd9897b25c8dfe8f07396acbc072 SHA256 ed27fb1a8b504e9b8511c1077c0faad5e9e9a4b0bb0db9183e43c6a6afe5b070 +DIST antivir-mailgate-prof.tgz 31856751 RMD160 20ad6af92fdef49145bbffdf2376a955110e9892 SHA1 457c617e57d38e8e3d2f95ecc1d16bf347d967d4 SHA256 0df70bb0e4c6612c2c7a678f41648d8d23951c564a0dd4ea52f96f4c656abb0a +DIST antivir-server-prof.tar.gz 44063389 RMD160 ea8ae5318b4a091b0188bfa76e0779d334f5c83b SHA1 73deea933d83759cf78629661a9e2b1054accbbb SHA256 dcf884b8d1fb0ae5d532e226ff82d54d10fb1e4847aa8a7d40b8c84e658893df +EBUILD antivir-savapi-3.0.4_p32.ebuild 3881 RMD160 161f5a458199c4ae0c02bca75b49a5c52b61986d SHA1 27dda7b84e0ada649b2c63fbff993ffa190822f5 SHA256 5f64360c5f33b0e4c896bbd83c4db83b693f38c67dc22f05d15a0944e741f791 +EBUILD antivir-savapi-3.0.5.17.ebuild 3615 RMD160 2eafe87762d43e39d731947e5812911420e379ea SHA1 992327773338f001cde6a69780f39bc4e9207378 SHA256 ca9ef23ed1006214e64d81a4a3556840af2b7d07a237df72c7343fcf7c7f1031 +MISC ChangeLog 576 RMD160 137fce0d351a9af9cd265faabec77c8c965a87cc SHA1 d0d89cacb6530d173bb47f365ea78197ec8df96a SHA256 6e1470342b4964a5f82dd90df1d7a27e37150baf749be713cae07e0d9c1fbd87 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild b/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild new file mode 100644 index 0000000..5aaf343 --- /dev/null +++ b/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - install/config: copy keyfile? +## + +inherit eutils + +DESCRIPTION="AVIRA AntiVir virus scanner (SAVAPI)" +#MY_P="${PN/savapi/mailgate}-prof-${PV/_p/-}" +MY_P="${PN/savapi/mailgate}-prof-3.0.0-14" +MY_P2="${PN/savapi/mailgate}-prof" +SRC_URI="http://dl1.pro.antivir.de/package/mailgate/unix/en/${MY_P2}.tgz" +#SRC_URI="http://storage.bu.avira.com/pub/savapi/2008.10.07/savapi3-${PV/_p/.}-linux_glibc22.zip" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND="" +S="${WORKDIR}/${MY_P}" +#S="${WORKDIR}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc/avira}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +#AVSAVAPISOCKET="${AVSAVAPISOCKET:-/var/run/antivir-savapi/scanner}" +#AVUSER="${AVUSER:-avgate}" +#AVUID="${AVUID:-220}" +#AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" +# enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_unpack() { + unpack ${A} + cd "${S}" +# ln -s . bin; ln -s . linux_glibc22 +} + +src_install () { + + # + # Home directory + # + + diropts -oroot -groot -m0755 + dodir "${AVHOMEDIR}" + diropts -oroot -g"${AVGROUP}" -m0770 + insinto "${AVHOMEDIR}" + insopts -oroot -g"${AVGROUP}" -m0644 + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2755 + doexe bin/linux_glibc22/savapi + doexe bin/linux_glibc22/avupdate.bin + doexe bin/linux_glibc22/avlinfo + exeopts -oroot -g"${AVGROUP}" -m0755 + doexe script/savapi3_reload.sh + doexe script/savapi3_post.sh + doexe script/avupdate + doexe script/post_install.sh + doins bin/linux_glibc22/avupdate_msg.avr + doins bin/linux_glibc22/ae*.so + doins bin/linux_glibc22/ae*.dat + lv=$(cd bin/linux_glibc22; ls -1 libsavapi3.so.*); lv=${lv##*.so.} + doins bin/linux_glibc22/libsavapi3.so.${lv} + dosym libsavapi3.so.${lv} "${AVHOMEDIR}"/libsavapi3.so + diropts "" + dodir "${DESTTREE}/bin" + dosym "${AVHOMEDIR}/savapi" "${DESTTREE}/bin/savapi" + + # + # Init script + # + +# exeopts -oroot -groot -m0755 +# exeinto /etc/init.d +# newexe "${FILESDIR}/${PV}/antivir-savapi.initd" antivir-savapi + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 +# insinto "${AVCONFDIR}" +# doins "${FILESDIR}"/${PV}/antivir-savapi.conf +# dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/antivir-savapi.conf" + insinto "${AVCONFDIR}" + doins "${FILESDIR}"/${PV}/avupdate.conf + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avupdate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avupdate.conf" + +} + +pkg_config () { + + # + # Automatic updates + # Generate a random number between 1 and 59 for the crontab + # + + rand="$$$(date +%s)" + min="$[ ($rand % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo "\t${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=scanner >/dev/null" + einfo "" + echo + +} diff --git a/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild b/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild new file mode 100644 index 0000000..08a1da3 --- /dev/null +++ b/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - install/config: copy keyfile? +## + +inherit eutils + +DESCRIPTION="AVIRA AntiVir virus scanner (SAVAPI)" +MY_P="${PN/savapi/server}-prof-3.0.2-5" +SRC_URI="http://dl1.pro.antivir.de/package/srv_avira/unix/en/prof/antivir-server-prof.tar.gz" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND="" +S="${WORKDIR}/${MY_P}" +#S="${WORKDIR}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror binchecks" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc/avira}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +#AVSAVAPISOCKET="${AVSAVAPISOCKET:-/var/run/antivir-savapi/scanner}" +#AVUSER="${AVUSER:-avgate}" +#AVUID="${AVUID:-220}" +#AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" +# enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_install () { + + # + # Home directory + # + + diropts -oroot -groot -m0755 + dodir "${AVHOMEDIR}" + diropts -oroot -g"${AVGROUP}" -m0770 + insinto "${AVHOMEDIR}" + insopts -oroot -g"${AVGROUP}" -m0644 + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2755 + doexe bin/linux_glibc22/savapi + doexe bin/linux_glibc22/avupdate.bin + doexe bin/linux_glibc22/avlinfo + exeopts -oroot -g"${AVGROUP}" -m0755 + doexe script/savapi3_reload.sh + doexe script/savapi3_post.sh + doexe script/avupdate + doexe script/post_install.sh + doins bin/linux_glibc22/avupdate_msg.avr + doins bin/linux_glibc22/ae*.so + doins bin/linux_glibc22/ae*.dat + lv=$(cd bin/linux_glibc22; ls -1 libsavapi3.so.*); lv=${lv##*.so.} + doins bin/linux_glibc22/libsavapi3.so.${lv} + dosym libsavapi3.so.${lv} "${AVHOMEDIR}"/libsavapi3.so + diropts "" + dodir "${DESTTREE}/bin" + dosym "${AVHOMEDIR}/savapi" "${DESTTREE}/bin/savapi" + + # + # Init script + # + +# exeopts -oroot -groot -m0755 +# exeinto /etc/init.d +# newexe "${FILESDIR}/${PV}/antivir-savapi.initd" antivir-savapi + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 +# insinto "${AVCONFDIR}" +# doins "${FILESDIR}"/${PV}/antivir-savapi.conf +# dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/antivir-savapi.conf" + insinto "${AVCONFDIR}" + doins "${FILESDIR}"/${PV}/avupdate.conf + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avupdate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avupdate.conf" + +} + +pkg_config () { + + # + # Automatic updates + # + + rand="$(date +%N 2>/dev/null)" + min="$[ (${rand:-${RANDOM}} % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo " ${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=signatures >/dev/null" + einfo "" + echo + +} diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf new file mode 100644 index 0000000..7edf089 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf @@ -0,0 +1,149 @@ +# This is the SAVAPI scanner backend configuration file. +# It is used to set values for scanner specific +# options. + +# --------------------------------------------------------------------- +# SocketPermissions [mode] +# +# The permissions of the scanner backend's socket. + +SocketPermissions 0660 + + +# --------------------------------------------------------------------- +# ListenAddress [address] +# +# The socket on which the scanner will listen for scan requests. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "ScannerListenAddress" in MailGate's configuration file +# (default /etc/avmailgate.conf). + +ListenAddress unix:%AVSAVAPISOCKET% + + +# -------------------------------------------------------------------- +# User [user] +# +# The user the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "User" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +User %AVUSER% + + +# -------------------------------------------------------------------- +# Group [group] +# +# The group the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "Group" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +Group %AVGROUP% + + +# -------------------------------------------------------------------- +# UseSavapiProxy [0|1] +# +# The proxy feature in SAVAPI performs scans more efficiently +# by using and reusing a prepared pool of scanners. While this +# pool increases throughput this feature requires the pool size +# to be wisely chosen -- too many scanners will put load on the +# machine without gaining more performance, too few scanners may +# have the SAVAPI using applications wait unnecessarily. +# +# Default: UseSavapiProxy 0 + +UseSavapiProxy 1 + +# -------------------------------------------------------------------- +# PoolScanners [integer] +# +# The number of prepared AntiVir scanners in the pool. +# See option "UseSavapiProxy". +# +# Default: PoolScanners 24 + +PoolScanners 24 + +# -------------------------------------------------------------------- +# PoolConnections [integer] +# +# The maximum number of simultaneous allowed connections +# from Avira MailGate to the scanner pool. +# +# Default: PoolConnections 8 + +PoolConnections 8 + +# -------------------------------------------------------------------- +# SyslogFacility [facility] +# +# The facility that is used to when logging to syslog. + +SyslogFacility daemon + + +# -------------------------------------------------------------------- +# ReportLevel [integer] +# +# The report level sets the log verbosity of the scanner backend. +# Available values: +# +# 0 Log errors +# 1 Log errors and alerts +# 2 Log errors, alerts and warnings +# 3 Log errors, alerts, warnings and debug messages +# +# ("alerts" is information about potential malicious code). +# +# Default: 0 + +ReportLevel 2 + + +# -------------------------------------------------------------------- +# ScanTemp [path] +# +# The directory used by the scanner to store temporary files like +# extracted files from archives. +# It's also used for other temporary files like lock files. +# +# NOTE: +# +# The scanner backend does not recognize the environment variable +# "TMPDIR". +# +# IMPORTANT: +# +# You should also change the option "TemporaryDir" in MailGate's +# configuration file (default /etc/avmailgate.conf) when changing the +# option "ScanTemp". +# You're then sure that both components use the same temporary +# directory. + +ScanTemp %AVTMPDIR% + + +# -------------------------------------------------------------------- +# LogFileName [path] +# +# Path to a specific log file. + +# Default: LogFileName /path/to/logfile diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd new file mode 100755 index 0000000..ca475d6 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd @@ -0,0 +1,59 @@ +#!/sbin/runscript + +svc_name="AntiVir SAVAPI" + +## required binaries +antivir_savapi_bin="/usr/lib/AntiVir/savapi" + +## required config files +antivir_savapi_cfg="/etc/antivir-savapi.conf" + +opts="${opts} reload" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${antivir_savapi_bin}" ]; then + eerror "SAVAPI binary [${antivir_savapi_bin}] missing" + return 1 + fi + if [ ! -r "${antivir_savapi_cfg}" ]; then + eerror "SAVAPI config [${antivir_savapi_cfg}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --allow-remote-shutdown &>/dev/null + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --stop &>/dev/null + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --reload-engine --allow-remote-shutdown &>/dev/null + eend $? +} + +status() { + checkconfig || return 1 + ebegin "Checking status of ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --status &>/dev/null + eend $? +} diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf b/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf new file mode 100644 index 0000000..c0d1a0a --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf @@ -0,0 +1,61 @@ +# This configuration file updates the Engine and the Signatures automatically + +# The list of Internet update servers. +internet-srvs=http://dl1.pro.antivir.de,http://dl2.pro.antivir.de,http://dl3.pro.antivir.de,http://dl4.pro.antivir.de,http://dl1.antivir.net,http://dl2.antivir.net,http://dl3.antivir.net + +# Specifies the master.idx file. +master-file=/idx/master.idx + +# Specifies the installation directory for updated product files. +install-dir=%AVHOMEDIR% + +# Temporary directory for downloading update files. +temp-dir=%AVTMPDIR% + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-user= + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-password= + +# The smtp server for sending email notifications +smtp-server=127.0.0.1 + +# The smtp port for sending email notifications +smtp-port=25 + +# When set in avupdate.conf, the Updater requires the smtp login data: smtp-user +#auth-method= + +# HTTP +#username=http_user +#password=http_pass + +# HTTP proxy +#proxy-host=proxy.example.com +#proxy-port=3128 +#proxy-username=proxy_user +#proxy-password=proxy_pass + +# Requests +connect-timeout=30 +receive-timeout=30 +retries=2 +retry-timeout=60 + +# This option can have one of three values: +# - 0 - no email notifications are sent, +# - 1 - email notifications are sent in case of "successful update", "unsuccessful +# update", or "up to date". +# - 2 - email notification only in case of "unsuccessful update". +notify-when=2 + +# Receiver of the notification emails. +email-to=root@localhost + +# Specify a full path with a filename to which AntiVir Avupdate +# will write its log messages. +log=/var/log/avupdate.log +log-append +#log-rotate +log-template=${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND}; ${FULLHOST}; ${SOURCE}.${LEVEL}; avupdate.bin[${PID}]; ${MSG} diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf new file mode 100644 index 0000000..7edf089 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf @@ -0,0 +1,149 @@ +# This is the SAVAPI scanner backend configuration file. +# It is used to set values for scanner specific +# options. + +# --------------------------------------------------------------------- +# SocketPermissions [mode] +# +# The permissions of the scanner backend's socket. + +SocketPermissions 0660 + + +# --------------------------------------------------------------------- +# ListenAddress [address] +# +# The socket on which the scanner will listen for scan requests. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "ScannerListenAddress" in MailGate's configuration file +# (default /etc/avmailgate.conf). + +ListenAddress unix:%AVSAVAPISOCKET% + + +# -------------------------------------------------------------------- +# User [user] +# +# The user the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "User" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +User %AVUSER% + + +# -------------------------------------------------------------------- +# Group [group] +# +# The group the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "Group" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +Group %AVGROUP% + + +# -------------------------------------------------------------------- +# UseSavapiProxy [0|1] +# +# The proxy feature in SAVAPI performs scans more efficiently +# by using and reusing a prepared pool of scanners. While this +# pool increases throughput this feature requires the pool size +# to be wisely chosen -- too many scanners will put load on the +# machine without gaining more performance, too few scanners may +# have the SAVAPI using applications wait unnecessarily. +# +# Default: UseSavapiProxy 0 + +UseSavapiProxy 1 + +# -------------------------------------------------------------------- +# PoolScanners [integer] +# +# The number of prepared AntiVir scanners in the pool. +# See option "UseSavapiProxy". +# +# Default: PoolScanners 24 + +PoolScanners 24 + +# -------------------------------------------------------------------- +# PoolConnections [integer] +# +# The maximum number of simultaneous allowed connections +# from Avira MailGate to the scanner pool. +# +# Default: PoolConnections 8 + +PoolConnections 8 + +# -------------------------------------------------------------------- +# SyslogFacility [facility] +# +# The facility that is used to when logging to syslog. + +SyslogFacility daemon + + +# -------------------------------------------------------------------- +# ReportLevel [integer] +# +# The report level sets the log verbosity of the scanner backend. +# Available values: +# +# 0 Log errors +# 1 Log errors and alerts +# 2 Log errors, alerts and warnings +# 3 Log errors, alerts, warnings and debug messages +# +# ("alerts" is information about potential malicious code). +# +# Default: 0 + +ReportLevel 2 + + +# -------------------------------------------------------------------- +# ScanTemp [path] +# +# The directory used by the scanner to store temporary files like +# extracted files from archives. +# It's also used for other temporary files like lock files. +# +# NOTE: +# +# The scanner backend does not recognize the environment variable +# "TMPDIR". +# +# IMPORTANT: +# +# You should also change the option "TemporaryDir" in MailGate's +# configuration file (default /etc/avmailgate.conf) when changing the +# option "ScanTemp". +# You're then sure that both components use the same temporary +# directory. + +ScanTemp %AVTMPDIR% + + +# -------------------------------------------------------------------- +# LogFileName [path] +# +# Path to a specific log file. + +# Default: LogFileName /path/to/logfile diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd new file mode 100755 index 0000000..ca475d6 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd @@ -0,0 +1,59 @@ +#!/sbin/runscript + +svc_name="AntiVir SAVAPI" + +## required binaries +antivir_savapi_bin="/usr/lib/AntiVir/savapi" + +## required config files +antivir_savapi_cfg="/etc/antivir-savapi.conf" + +opts="${opts} reload" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${antivir_savapi_bin}" ]; then + eerror "SAVAPI binary [${antivir_savapi_bin}] missing" + return 1 + fi + if [ ! -r "${antivir_savapi_cfg}" ]; then + eerror "SAVAPI config [${antivir_savapi_cfg}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --allow-remote-shutdown &>/dev/null + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --stop &>/dev/null + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --reload-engine --allow-remote-shutdown &>/dev/null + eend $? +} + +status() { + checkconfig || return 1 + ebegin "Checking status of ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --status &>/dev/null + eend $? +} diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf b/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf new file mode 100644 index 0000000..14a1433 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf @@ -0,0 +1,61 @@ +# This configuration file updates the Engine and the Signatures automatically + +# The list of Internet update servers. +internet-srvs=http://dl1.pro.antivir.de,http://dl2.pro.antivir.de,http://dl3.pro.antivir.de,http://dl1.antivir.net,http://dl2.antivir.net,http://dl3.antivir.net + +# Specifies the master.idx file. +master-file=/idx/master.idx + +# Specifies the installation directory for updated product files. +install-dir=%AVHOMEDIR% + +# Temporary directory for downloading update files. +temp-dir=%AVTMPDIR% + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-user= + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-password= + +# The smtp server for sending email notifications +smtp-server=127.0.0.1 + +# The smtp port for sending email notifications +smtp-port=25 + +# When set in avupdate.conf, the Updater requires the smtp login data: smtp-user +#auth-method= + +# HTTP +#username=http_user +#password=http_pass + +# HTTP proxy +#proxy-host=proxy.example.com +#proxy-port=3128 +#proxy-username=proxy_user +#proxy-password=proxy_pass + +# Requests +connect-timeout=30 +receive-timeout=30 +retries=2 +retry-timeout=60 + +# This option can have one of three values: +# - 0 - no email notifications are sent, +# - 1 - email notifications are sent in case of "successful update", "unsuccessful +# update", or "up to date". +# - 2 - email notification only in case of "unsuccessful update". +notify-when=2 + +# Receiver of the notification emails. +email-to=root@localhost + +# Specify a full path with a filename to which AntiVir Avupdate +# will write its log messages. +log=/var/log/avupdate.log +log-append +#log-rotate +log-template=${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND}; ${FULLHOST}; ${SOURCE}.${LEVEL}; avupdate.bin[${PID}]; ${MSG} diff --git a/app-antivirus/antivir-savapi/metadata.xml b/app-antivirus/antivir-savapi/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-antivirus/antivir-savapi/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-antivirus/antivir-webgate/ChangeLog b/app-antivirus/antivir-webgate/ChangeLog new file mode 100644 index 0000000..021e710 --- /dev/null +++ b/app-antivirus/antivir-webgate/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-antivirus/antivir-webgate +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 07 Oct 2008; Wolfram Schlich + antivir-webgate-1.3.0_p12.ebuild: + add ~amd64 + + 29 Jul 2008; Wolfram Schlich +metadata.xml, + antivir-webgate-1.3.0_p12.ebuild: + fixups + diff --git a/app-antivirus/antivir-webgate/Manifest b/app-antivirus/antivir-webgate/Manifest new file mode 100644 index 0000000..ba5887c --- /dev/null +++ b/app-antivirus/antivir-webgate/Manifest @@ -0,0 +1,6 @@ +AUX 1.3.0_p12/antivir-webgate.init.d 964 RMD160 bd2eff944a04b37602e7edb0717f6c14b94557c2 SHA1 08df71fa5b51f014af4f52db34db5cecbb03c561 SHA256 4b092a9732464aa37102aa40f8d14a7f3833df4fd738471c33b8a02524fd99d1 +AUX 1.3.0_p12/avwebgate.conf 14866 RMD160 73b992a8234c03fc23e07108033e2cfa0da54d13 SHA1 8a8ef466f8f6116eeec46bae5c4f11fd381d1f95 SHA256 e3dc20f8b3c3bffc5b2e608f6d735a610de4c45be50dba28aa40bb75885981d6 +DIST antivir-webgate-prof-1.3.0-12.tar.gz 49518667 RMD160 2714b8f15e7ea84c8db8e97cac970b424083745a SHA1 afadf667dc75b837dc68129fb873b2e27d476651 SHA256 524ea0eb3c43f731b4d12d916c694c466775d42f58162f14502e67b032d2a009 +EBUILD antivir-webgate-1.3.0_p12.ebuild 3859 RMD160 82882ff08fe9df4a3fd93266aab0615e63527647 SHA1 2536c592ef33e5c1ee32fffccc63eee5930e12f3 SHA256 688bf9a69e64520458f5a31467a35cf5e48f871e5bc16312c42531060fdea4cb +MISC ChangeLog 347 RMD160 2ebaca50f06ad0ff6a83014db0352aad3260c496 SHA1 e2160e3e80d3859e72e6f6c5105777ace80436d4 SHA256 cfe666630ec0ea9fa5af762ae422a5e19eb3193b89c032e35c4b28966c2c5ed2 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-antivirus/antivir-webgate/antivir-webgate-1.3.0_p12.ebuild b/app-antivirus/antivir-webgate/antivir-webgate-1.3.0_p12.ebuild new file mode 100644 index 0000000..d896391 --- /dev/null +++ b/app-antivirus/antivir-webgate/antivir-webgate-1.3.0_p12.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich +## +## TODO +## - ? +## + +inherit eutils pax-utils + +DESCRIPTION="AVIRA WebGate HTTP/FTP proxy virus scanner" +MY_P="${PN}-prof-${PV/_p/-}" +SRC_URI="http://dl.antivir.de/down/unix/packages/${MY_P}.tar.gz" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND=">=app-antivirus/antivir-core-2.1.12_p19" +S="${WORKDIR}/${MY_P}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc}" +AVSPOOLDIR="${AVSPOOLDIR:-/var/spool/avwebgate}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +AVPIDDIR="${AVPIDDIR:-/var/tmp}" +AVUSER="${AVUSER:-avgate}" +AVUID="${AVUID:-220}" +AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" +AVHOSTNAME="${AVHOSTNAME:-$(hostname -f)}" + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" + enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_install() { + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2750 + doexe bin/linux_glibc22/avwebgate.bin + diropts "" + dodir \ + "${DESTTREE}/sbin" + dosym "${AVHOMEDIR}/avwebgate.bin" "${DESTTREE}/sbin/avwebgate" + + # + # Init script + # + + exeopts -oroot -groot -m0755 + exeinto /etc/init.d + newexe "${FILESDIR}/${PV}/antivir-webgate.init.d" antivir-webgate + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 + insinto "${AVCONFDIR}" + doins \ + "${FILESDIR}"/${PV}/avwebgate.conf +# use gui && doins etc/avwebgate.conf-gui + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVCONFDIR%:${AVCONFDIR}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVSPOOLDIR%:${AVSPOOLDIR}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVPIDDIR%:${AVPIDDIR}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/avwebgate.conf" + dosed "s:%AVHOSTNAME%:${AVHOSTNAME}:g" "${AVCONFDIR}/avwebgate.conf" + touch "${T}/avwebgate.acl" + doins "${T}/avwebgate.acl" + + # + # Spool directory + # + + diropts -o"${AVUSER}" -g"${AVGROUP}" -m0700 + dodir "${AVSPOOLDIR}" + keepdir "${AVSPOOLDIR}" + for dir in quarantine; do + dodir "${AVSPOOLDIR}/${dir}" + keepdir "${AVSPOOLDIR}/${dir}" + done + + ## TODO:GUI + + ## TODO:SMC + + # + # Documents + # + + dodoc \ + LICENSE \ + LICENSE.DE \ + README \ + doc/CHANGELOG \ + doc/MANUAL \ + doc/RELEASE_NOTES \ + doc/avwebgate_de.pdf \ + doc/avwebgate_en.pdf \ + doc/avwebgate.acl.example \ + legal/LICENSE.* + + # + # Templates + # + + diropts "" + dodir "${AVHOMEDIR}/avwebgate.tpl" + insopts -m0644 + insinto "${AVHOMEDIR}/avwebgate.tpl" + doins templates/en/* + +} + +pkg_postinst() { + + # + # Config + # + + echo + einfo "" + einfo "Configuration" + einfo "=============" + einfo "" + einfo "Please run..." + einfo "" + einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo "" + einfo "...to configure the package!" + einfo "" + echo + +} + +pkg_config() { + + # + # Init script + # + + echo + einfo "" + einfo "Using the init script" + einfo "=====================" + einfo "" + einfo "Simply run..." + einfo "" + einfo "\trc-update add antivir-webgate default" + einfo "" + einfo "...and your're done." + einfo "" + + # + # Templates + # + + echo + einfo "" + einfo "Using the HTML templates" + einfo "========================" + einfo "" + einfo "The templates were installed into" + einfo "" + einfo "\t${AVHOMEDIR}/avwebgate.tpl" + einfo "" + +} diff --git a/app-antivirus/antivir-webgate/files/1.3.0_p12/antivir-webgate.init.d b/app-antivirus/antivir-webgate/files/1.3.0_p12/antivir-webgate.init.d new file mode 100755 index 0000000..666f599 --- /dev/null +++ b/app-antivirus/antivir-webgate/files/1.3.0_p12/antivir-webgate.init.d @@ -0,0 +1,46 @@ +#!/sbin/runscript +## 2003 by H+BEDV Datentechnik GmbH, +## Wolfram Schlich + +svc_name="AntiVir WebGate" + +## required binaries +avwebgate_bin="/usr/lib/AntiVir/avwebgate.bin" + +## required config files +avwebgate_cfg="/etc/avwebgate.conf" +avwebgate_acl="/etc/avwebgate.acl" + +depend() { + need net + use logger dns squid +} + +checkconfig() { + if [ ! -x "${avwebgate_bin}" ]; then + eerror "avwebgate binary [${avwebgate_bin}] missing" + return 1 + fi + if [ ! -r "${avwebgate_cfg}" ]; then + eerror "avwebgate config [${avwebgate_cfg}] missing" + return 1 + fi + if [ ! -r "${avwebgate_acl}" ]; then + eerror "avwebgate acl [${avwebgate_acl}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + /sbin/start-stop-daemon --start --quiet --exec "${avwebgate_bin}" + eend $? +} + +stop() { + checkconfig || return 2 + ebegin "Stopping ${svc_name}" + /sbin/start-stop-daemon --stop --quiet --exec "${avwebgate_bin}" + eend $? +} diff --git a/app-antivirus/antivir-webgate/files/1.3.0_p12/avwebgate.conf b/app-antivirus/antivir-webgate/files/1.3.0_p12/avwebgate.conf new file mode 100644 index 0000000..08afed0 --- /dev/null +++ b/app-antivirus/antivir-webgate/files/1.3.0_p12/avwebgate.conf @@ -0,0 +1,346 @@ +# +# sample AvWebGate configuration file +# + +# This file shows the available options to configure AvWebGate. +# Lines beginning with '#' are comments and are ignored. If you +# want to change the value of an option, please uncomment the +# line. Otherwise default values (shown here) are used, unless +# otherwise indicated. + +# Used to specify the location of the antivir binary, the VDF, +# the keyfile, and some other files. +AntiVirDir %AVHOMEDIR% + +# Template directory +TemplateDir %AVHOMEDIR%/avwebgate.tpl + +# Maximum number of open files +OpenMax 1024 + +# Processes +NumDaemons 16 +DNSHelpers 8 + +# Timeouts +ClientTimeout 60 +ServerTimeout 300 + +# Specify the port on which AvWebGate listens for HTTP requests. +# Web-based FTP requests are also handled on this port. In addition +# to the port number, you may optionally specify a hostname or IP +# address to which AvWebGate binds the socket. If you do not specify +# any port(s), AvWebGate listens on port 8080 for HTTP requests by +# default. If you specify at least one of FTPPort or ICAPPort, +# AvWebGate does not open a port for HTTP requests as long as +# HTTPPort is commented out (default). +# Usage: HTTPPort [hostname_or_ip:]port +# Note: If you have installed AvWebGate as a parent proxy on the +# same machine as your existing proxy, it is recommended to +# use "HTTPPort 127.0.0.1:8080" for example. If a hostname +# or IP is not given, then the port will be bound to all +# interfaces. +HTTPPort 127.0.0.1:80 + +# AvWebGate can be used as a "real" FTP proxy (talking FTP to the +# clients). In order to enable this feature, you need to specify +# a port on which AvWebGate listens for FTP connections. In addition +# to the port number, you may optionally specify a hostname or IP +# address to which AvWebGate binds the socket. If you specify an +# FTPPort, AvWebGate does not open a port for HTTP requests unless +# HTTPPort is specified explicitly (uncommented). +# Usage: FTPPort [hostname_or_ip:]port +#FTPPort 127.0.0.1:2121 + +# AvWebGate can be used as an ICAP server. To enable ICAP support, +# you need to specify a port, optionally along with a hostname or +# IP address, to which AvWebGate binds the socket. If you specify an +# ICAPPort, AvWebGate does not open a port for HTTP requests unless +# HTTPPort is specified explicitly (uncommented). +# Usage: ICAPPort [hostname_or_ip:]port +# AvWebGate supports ICAP version "1.0" +#ICAPPort 127.0.0.1:1344 + +# AvWebGate will switch the user and group as soon as possible after +# the startup. You may specify a user and/or group to which AvWebGate +# will switch to. Note that you must run AvWebGate as root initially. +# If you don't want AvWebGate to start as root initially, you must +# specify the current user/group here, otherwise the start will +# fail. +User %AVUSER% +Group %AVGROUP% + +# AvWebGate is able to tunnel requests performed over SSL (HTTPS). +# Because the data can not be decrypted, the data will NOT be +# scanned. However, the handshake is checked to determine if it +# is a valid SSL handshake. Although this adds an extra security +# check, this does not solve the underlaying problem, SSL data will +# NOT be checked, AvWebGate does not interfere with the transaction, +# but merely forwards the data. +# Attention: HTTPS data will _NOT_ be scanned. +AllowHTTPSTunnel 1 + +# Allows AvWebGate to establish a tunnel connection to any port +# allowed for HTTP if a CONNECT method request is received. +# WARNING: USE THIS OPTION WITH CAUTION. AvWebGate does not +# check the data transferred over the tunnel connection! Use +# "AllowHTTPSTunnel" instead if you want to limit the allowed +# connections to the ports 443 (HTTPS) and 563 (SNEWS). +AllowHTTPConnect 1 + +# For security reasons, AvWebGate restricts HTTPS connections to +# IANA-assigned ports 443 (HTTPS) and 563 (SNEWS). If you want to +# allow HTTPS connections to non-standard ports, you can do so by +# adding the desired ports to this list. Each port will be separated +# by a comma or a whitespace. +AllowedHTTPConnectPorts 443 873 + +# It is possible to limit the maximum number of allowed simultaneous +# connections AvWebGate accepts. +MaxConnections 256 + +# In order to prevent client timeouts with large downloads, AvWebGate +# must send the client keepalive messages. There are three different +# methods for timeout prevention. If the client was identified as +# a browser, the progress status is sent as refreshing HTML pages. +# The RefreshInterval specifies the number of seconds between +# status updates. This method of timeout prevention can be disabled +# by setting RefreshInterval to 0. If RefreshInterval is not +# specified, this method of timeout prevention is disabled. +#RefreshInterval 10 +#RefreshDelay 3 +#RefreshTimeout 60 +#RefreshSkipFileExtensions htm,html,shtml,css,gif,jpg,jpeg,png,swf,flv + +# If the refresh method is not used (because it is disabled or +# the client is a non-browser) redirect messages can be sent to the +# client. The RedirectInterval specifies the delay time in seconds +# for sending redirect messages. This method of timeout prevention +# can be disabled by settings RedirectInterval to 0. If +# RedirectInterval is not specified, this method of timeout +# prevention is disabled. +# Note: This method does not work with every client. Use the +# KeepaliveInterval option instead if problems occur. +#RedirectInterval 10 + +# If the refresh and redirect methods are not used (because they +# are disabled or they are not appropriate) extended header data can +# be sent to the client to prevent timeouts. The KeepaliveInterval +# specifies the delay time in seconds for sending extended header +# data. This method of timeout prevention can be disabled by +# setting KeepaliveInterval to 0. +KeepaliveInterval 10 +KeepaliveMode header +#KeepaliveMode trickle +#KeepaliveDelay 30 + +# Used for Refresh and Redirect client timeout prevention methods +#ProgressAutoSend 1 +#ProgressFilesizeThreshold 20MB +#ProgressHoldTime 3600 +#ProgressHoldTimeAfterGetFile 1800 +#ProgressHost proxy.example.com + +# If you want to use an optional parent HTTP proxy, AvWebGate needs +# information to connect to the proxy where the requests are forwarded. +# You can also specify a username and password if they are needed for +# the proxy. +#HTTPProxyServer 127.0.0.1 +#HTTPProxyPort 3128 +#HTTPProxyUsername username +#HTTPProxyPassword password + +# If you want to use an optional parent FTP proxy, you need to specify +# the hostname or IP address of that proxy along with the port number +# on which the proxy is accepting "real" FTP connections. +#FTPProxyServer your.proxy +#FTPProxyPort 8080 + +# You can change the directory where temporary files are stored +# (for example, while they are being scanned). +TemporaryDir %AVTMPDIR% + +# By default, all files in archives are going to be extracted +# and scanned. Limits can be specified with ArchiveMaxSize, +# ArchiveMaxRecursion and ArchiveMaxRatio. It is NOT recommended +# that this option is disabled (value of 0). +ArchiveScan 1 + +# If ArchiveMaxSize is 0, all files in archives will be extracted, +# otherwise files only up to the given size will be extracted. +ArchiveMaxSize 100MB + +# If ArchiveMaxRecursion is 0, recursive archives are going to be +# unpacked with an unlimited recursion depth, otherwise recursive +# archives are going to be unpacked up to the given recursion +# depth. +ArchiveMaxRecursion 20 + +# If ArchiveMaxRatio is 0, archives will always be unpacked completely, +# otherwise they will only be unpacked completely if the compression +# ratio is below the specified value. +ArchiveMaxRatio 150 + +# If BlockSuspiciousArchive is enabled, archives that reach one +# of the limits above will be blocked. +BlockSuspiciousArchive 0 + +# If BlockEncryptedArchive is enabled, encrypted archives will +# be blocked. +BlockEncryptedArchive 0 + +# If BlockPartialArchive is enabled, multi-volume archives will +# be blocked. +BlockPartialArchive 0 + +# AvWebGate will block files that have one of the specified file +# extensions. Note that filenames in archives will also be matched. +# The extensions can be separated by either space, comma or semicolon. +# There is no default value for this directive. +#BlockExtensions exe scr pif + +# By default, blocked files are discarded. In order to move the +# concerning files to a quarantine directory, you may specify a +# directory where the files will be moved to. +MoveConcerningFilesTo %AVSPOOLDIR%/quarantine + +# Concerning activity may also be logged to a specified file +# (in addition to syslog). You must specify the file. If this +# directive is not specified, logging will only occur through +# syslog. +#LogFile /var/log/avwebgate.log + +# It is possible to specify the amount of events that are logged by +# AvWebGate (0-7). 0 logs only critical information, whereas 7 will +# log everything (including debugging output). A value of 4 or 5 is +# recommended. +LogLevel 4 +DebugLevel 4 + +# Regardless of the above configuration settings, AvWebGate will +# always log important information using syslog. It is possible +# to specify which syslog facility you would like AvWebGate to +# use. +SyslogFacility daemon + +# You can receive email notifications of alerts using this +# directive. You must specify the email address to which the +# notification will be sent. There is no default value for +# this directive. +#EmailTo hostmaster@example.com + +# AvWebGate can add an X-Forwarded-For header to the HTTP request +# including the IP address of the originating client. This +# is useful if a subsequent proxy (parent) wants to use the +# original client address in access controls, logs etc. +AddXForwardedForHeader 0 + +# You can restrict access to selected clients or (sub)networks +# based on their IP addresses. A network address can be specified +# with a '/' and a number of bits to match (e.g. 192.168.1.0/24). +# If the number of bits is not specified, the netmask will be +# determined from the given address (for example, 192.168.0.0 is +# treated the same as 192.168.0.0/16). +# Note: If you do not specify any IP addresses, access is granted +# to everybody. If you specify one or more IP addresses, +# access is allowed only to the specified addresses and +# is denied for all others. +#AllowClientAddresses 127.0.0.0/8 192.168.0.0/16 +AllowClientAddresses 127.0.0.0/8 + +# WebGate can deny access to specific user agents. You can specify +# one or more user agent string that will be denied access. The +# main purpose is to avoid unnecessary traffic generated by clients +# issuing range requests (such as Microsoft's BITS +# "Background Intelligent Transfer Service") or streaming services +# (such as Apple's iTunes). Range requests and data streaming are +# only permitted if specified in an AclConfigFile. +ForbiddenUserAgents BITS iTunes + +# You can limit connections to selected destination ports. You +# may specify one or more single ports (e.g 21 and 80) or port +# ranges. You can specify ranges with a '-' between two port +# numbers (e.g. 1025-65535). Note that there are no whitespaces +# allowed between the two port numbers when specifying a range. +# Note: If you do not specify at least one port, connections +# will be allowed to all destination ports. +AllowDestinationPorts 21 80 443 873 1025-65535 + +# WebGate can also support more complex rules by implementing a Squid-like +# access control scheme. To use the access control scheme you must create +# a new configuration file containing the rules describing the desired +# behavior and have AclConfigFile contain the path to it. The syntax +# supported by the access control scheme is described in the Manual. +AclConfigFile %AVCONFDIR%/avwebgate.acl + +# List of categories that are blocked by WebGate when Avira Web Access +# and Content Control library is enabled. Categories can be specified +# as single categories (e.g 1 and 3 ) or category ranges. You can +# specify ranges with a '-' between to category numbers. +# To use the URL filtering capabilities of WebGate a valid WebGate Suite +# license must be installed +# Note: For a list of all categories please consult the Manual +#WSBlockCategories 0-2 12 14 61 + +# These settings allow for the detection of certain categories of software +# which are not viruses but might not be wanted. Here is a description of +# the categories. +# ADSPY: Software that displays advertising pop-ups or software that very +# often without the user's consent sends user specific data to +# third parties and might therefore be unwanted. +# APPL: The term APPL/ denotes an application of dubious origin or which +# might be hazardous to use. +# BDC: Is the Control software for backdoors. Control software for +# backdoors are generally harmless. +# DIAL: A Dial-Up program for connections that charge a fee. Its use might +# lead to huge costs for the user. +# GAME: It concerns a game that causes no damage on your computer. +# HEUR-DBLEXT: File has an executable file extension but hides it behind a +# harmless one. +# JOKE: A harmless joke program is present as file. +# PCK: File has been compressed with an unusual runtime compression tool. +# Please make sure that this file comes from a trustworthy source. +# PHISH: Faked Emails that are supposed to prompt the victim to reveal +# confidential information such as user accounts, passwords or +# online-banking data on certain websites. +# SPR: Software that maybe able to compromise the security of your system, +# initiate unwanted program activities, damage your privacy or spy +# out your user behaviour and might therefore be unwanted. +# Detection can be enabled/disabled with yes/no parameters respectively. +DetectADSPY yes +DetectAPPL yes +DetectBDC yes +DetectDIAL yes +DetectGAME yes +DetectHEUR-DBLEXT yes +DetectJOKE yes +DetectPCK yes +DetectPHISH yes +DetectSPR yes + +# AntiVir is capable of using heuristics to determine if a file +# may be malicious. This allows new or unknown malicious code to +# be detected before you have had a chance to perform an update. +# There are two types of heuristics that AntiVir uses. The +# first, HeuristicsMacro, only deals with macros in office +# documents. This can be enabled/disabled with yes/no respectively. +# The second, HeuristicsLevel, deals with all types of files and +# can be set to a certain level of intensity (0-3). 0 means +# disabled and 3 means full intensity. +# Note: Be aware that setting the HeuristicsLevel too high could +# result in false alerts. +HeuristicsMacro yes +HeuristicsLevel 2 + +# Uncomment this directive to allow the GUI to communicate with +# AvWebGate. If this is enabled, AvWebGate will open an extra +# TCP Port on the loopback interface. This should only be used +# if you intend to use the GUI. +#GuiSupport yes + +# These are SSL Parameters used for secure communication with +# the GUI. +#GuiCertFile /usr/lib/AntiVir/gui/cert/server.pem +#GuiCertPass antivir_default +#GuiCAFile /usr/lib/AntiVir/gui/cert/cacert.pem +#GuiRandFile /dev/urandom diff --git a/app-antivirus/antivir-webgate/metadata.xml b/app-antivirus/antivir-webgate/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-antivirus/antivir-webgate/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-antivirus/skyldav/ChangeLog b/app-antivirus/skyldav/ChangeLog new file mode 100644 index 0000000..a9496c9 --- /dev/null +++ b/app-antivirus/skyldav/ChangeLog @@ -0,0 +1,19 @@ +*skyldav-0.2_rc3_p20130821-r1 (21 Aug 2013) + + 21 Aug 2013; Wolfram Schlich + +skyldav-0.2_rc3_p20130821-r1.ebuild: + update from upstream + +*skyldav-0.2_rc3_p20130821 (21 Aug 2013) + + 21 Aug 2013; Wolfram Schlich + +files/skyldav-0.2_rc3_p20130821-examples.patch, + +skyldav-0.2_rc3_p20130821.ebuild: + update from upstream + +*skyldav-0.2_rc3_p20130817-r1 (17 Aug 2013) + + 17 Aug 2013; Wolfram Schlich + +files/skyldav-0.2_rc3_p20130817-disable-skyldavnotify.patch, + +skyldav-0.2_rc3_p20130817-r1.ebuild: + added libnotify USE flag. diff --git a/app-antivirus/skyldav/Manifest b/app-antivirus/skyldav/Manifest new file mode 100644 index 0000000..5bc49c0 --- /dev/null +++ b/app-antivirus/skyldav/Manifest @@ -0,0 +1,5 @@ +DIST skyldav-0.2rc3.tar.gz 100913 SHA256 219548b8529a0a7737fb774f1e4ba89acf91088982f9fb646bc9b0fb6015f801 SHA512 d535a8b884ea656069bcb50d7683de4d006e160f44691adbd6564d7729310cada7ff1652dc63c3b9b9cd755574fbd1e7516ccc8f10c6f42eb4d13d3c453b58e7 WHIRLPOOL 05217e707abfc47502e93be164ee383a9fff0ba2b40f5129bee77f4dfdddd87fec3f67bcfd974760b5204e27dedc026331249887cb7268066df578e6a23e78ea +DIST skyldav-0.2rc3_p20130816.tar.gz 100972 SHA256 7a3037f2965320c16ee1f29deccf3bee034581b3f436f1c50042e50e514fb97f SHA512 6d9caf2d3f808c3fdf44daa6b5606d5b47aa3bb19750d25e414a60c21fbd764279dabe09b36f2fdc7cbf08686b3af8610ef926925223f7927f4d87fe039fad49 WHIRLPOOL ba1a4e389d57d994f1575d55878406068b6162243d732697d94fea8797524fd25525736291f2825b0b518af641eafa518eaf1057311185f07645c5173e614957 +DIST skyldav-0.2rc3_p20130817.tar.gz 100247 SHA256 1c96363e1b928ef684ea3e0418995576fa6222a5a7cb1e09ea893930c6635d32 SHA512 1e57ba44d0894ef08788fe17798e7c5d6caea0eb04c2097c83333ebf8ca612fc29ec24625a43cc2d9e15e64b434c02661d5d8bee1e816b0b1e318e02d15929de WHIRLPOOL 6a1f8754e9c4a2816faaa97b9a7543ce738129b016fd88e5e9a90702fd63647b739c50a200b1806fde141628ad2746ee57fe18f285645547c3c9a2316043682a +DIST skyldav-0.2rc3_p20130821-r1.tar.gz 100437 SHA256 1707feb07a6bdc86e0bfa363248de805b924f4ac11674a5de098cfbe85bc43e0 SHA512 05bedb4e69288acee0de0545e1ec2d9f3d625dccd27c0ee6a541b10197dc1b2920f53ebd9afc8402e0cabf649a99c56abcbd466019547f1ada1a7a88d83b590a WHIRLPOOL 2496b984a0a23ea09e6125157ff8f0733cdf19ef03ce04a9463d3c29f5acd6a1afa01a4c117e53c2dafbd00fe85f7061f0bc256004120868d9e243b4e998a919 +DIST skyldav-0.2rc3_p20130821.tar.gz 100403 SHA256 8398f5cce013efdc51ee2e9533e7dbe82b0d41c384ba5f19eea4e8e32569f96b SHA512 4a132473be42cf5fdc858be6195fdb474a800955ffdc4a54f7caabe90c8cf17d5df59180de45d9056ffd0dbc0a699774d4fb4372f8a9087d2ef95e18cc95903a WHIRLPOOL 8aa49550e3a7fe13b4a1ccb6b3cd8b0e27ee3bdf546fe6f41f11c1ed55fcaa1291c9edc30b854985defe282952bdd18cbe6737cd82fd03df9c671ad18d724fb6 diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3-conf.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3-conf.patch new file mode 100644 index 0000000..3485bb4 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3-conf.patch @@ -0,0 +1,20 @@ +diff -urN skyldav-0.2rc3.orig/examples/etc/skyldav.conf skyldav-0.2rc3/examples/etc/skyldav.conf +--- skyldav-0.2rc3.orig/examples/etc/skyldav.conf 2013-07-20 14:36:43.000000000 +0200 ++++ skyldav-0.2rc3/examples/etc/skyldav.conf 2013-08-17 11:41:17.016278000 +0200 +@@ -19,14 +19,14 @@ + + # File systems that shall not be marked for virus scan. + # NOMARK_FS = proc, sysfs +-NOMARK_FS = proc, sysfs ++NOMARK_FS = proc, sysfs, devtmpfs, devpts, configfs, securityfs, cgroup, rpc_pipefs + + # Mounts that shall not be marked for virus scan. + # NOMARK_MNT = /mnt/noscan + + # File systems that are local, virus scan results may be cached. + # LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat +-LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat ++LOCAL_FS = ext2, ext3, ext4, xfs, zfs, btrfs, reiserfs, vfat, ntfs, iso9660, tmpfs + + # Number of threads for file scanning, + # defaults to the number of available CPUs. diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3-examples.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3-examples.patch new file mode 100644 index 0000000..d331dd3 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3-examples.patch @@ -0,0 +1,12 @@ +diff -urN skyldav-0.2rc3.orig/Makefile.am skyldav-0.2rc3/Makefile.am +--- skyldav-0.2rc3.orig/Makefile.am 2013-07-20 14:36:43.000000000 +0200 ++++ skyldav-0.2rc3/Makefile.am 2013-08-16 22:16:35.255347000 +0200 +@@ -9,8 +9,6 @@ + rm -rf doc/doxygen + + install-data-local: +- mkdir -p $(DESTDIR)$(docdir)/examples/ +- cp -rf $(srcdir)/examples/* $(DESTDIR)$(docdir)/examples/ + mkdir -p $(DESTDIR)$(sysconfdir) + test -e $(DESTDIR)$(sysconfdir)/skyldav.conf || \ + cp examples/etc/skyldav.conf $(DESTDIR)$(sysconfdir) diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3-openlog.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3-openlog.patch new file mode 100644 index 0000000..bd790ec --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3-openlog.patch @@ -0,0 +1,12 @@ +diff -urN skyldav-0.2rc3.orig/src/skyldav/Messaging.cc skyldav-0.2rc3/src/skyldav/Messaging.cc +--- skyldav-0.2rc3.orig/src/skyldav/Messaging.cc 2013-07-20 14:36:43.000000000 +0200 ++++ skyldav-0.2rc3/src/skyldav/Messaging.cc 2013-08-16 16:42:56.319762000 +0200 +@@ -47,7 +47,7 @@ + + // Open syslog. + setlogmask(LOG_UPTO(LOG_NOTICE)); +- openlog("Skyld AV", 0, LOG_USER); ++ openlog("skyldav", LOG_PID, LOG_DAEMON); + + // Set umask = 022; + mask = umask(S_IWGRP | S_IWOTH); diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3-sbin.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3-sbin.patch new file mode 100644 index 0000000..e984252 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3-sbin.patch @@ -0,0 +1,19 @@ +diff -urN skyldav-0.2rc3.orig/src/skyldav/Makefile.am skyldav-0.2rc3/src/skyldav/Makefile.am +--- skyldav-0.2rc3.orig/src/skyldav/Makefile.am 2013-07-20 14:36:43.000000000 +0200 ++++ skyldav-0.2rc3/src/skyldav/Makefile.am 2013-08-16 11:17:41.489230000 +0200 +@@ -32,7 +32,7 @@ + ThreadPool.cc \ + VirusScan.cc + +-bin_PROGRAMS = \ ++sbin_PROGRAMS = \ + skyldav + + skyldav_LDFLAGS = \ +@@ -41,4 +41,4 @@ + skyldav_SOURCES = skyldav.h main.cc + + check: +- ./skyldav --version +\ No newline at end of file ++ ./skyldav --version diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130816-syslog.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130816-syslog.patch new file mode 100644 index 0000000..d746747 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130816-syslog.patch @@ -0,0 +1,24 @@ +diff -urN skyldav-0.2rc3_p20130816.orig/src/skyldav/Messaging.cc skyldav-0.2rc3_p20130816/src/skyldav/Messaging.cc +--- skyldav-0.2rc3_p20130816.orig/src/skyldav/Messaging.cc 2013-08-16 19:58:10.000000000 +0200 ++++ skyldav-0.2rc3_p20130816/src/skyldav/Messaging.cc 2013-08-16 22:07:37.743908000 +0200 +@@ -48,7 +48,7 @@ + + // Open syslog. + setlogmask(LOG_UPTO(LOG_NOTICE)); +- openlog(SYSLOG_ID , 0, LOG_USER); ++ openlog(SYSLOG_ID , LOG_PID, LOG_USER); + + // Set umask = 022; + mask = umask(S_IWGRP | S_IWOTH); +diff -urN skyldav-0.2rc3_p20130816.orig/src/skyldav/skyldav.h skyldav-0.2rc3_p20130816/src/skyldav/skyldav.h +--- skyldav-0.2rc3_p20130816.orig/src/skyldav/skyldav.h 2013-08-16 19:58:10.000000000 +0200 ++++ skyldav-0.2rc3_p20130816/src/skyldav/skyldav.h 2013-08-16 22:07:10.715968000 +0200 +@@ -63,7 +63,7 @@ + + const char *PID_FILE = "/var/run/skyldav/skyldav.pid"; + +- const char *SYSLOG_ID = "SkyldAV"; ++ const char *SYSLOG_ID = "skyldav"; + + #ifdef __cplusplus + } diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130817-disable-skyldavnotify.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130817-disable-skyldavnotify.patch new file mode 100644 index 0000000..9f4a547 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130817-disable-skyldavnotify.patch @@ -0,0 +1,362 @@ +diff -urN skyldav-0.2rc3_p20130817.orig/configure.ac skyldav-0.2rc3_p20130817/configure.ac +--- skyldav-0.2rc3_p20130817.orig/configure.ac 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/configure.ac 2013-08-17 13:20:37.887072000 +0200 +@@ -51,10 +51,6 @@ + dnl set linker flags + LDFLAGS="-g $LDFLAGS" + +-PKG_CHECK_MODULES([NOTIFY], [gtk+-2.0 >= 2.20.1 libnotify >= 0.5.0]) +-AC_CHECK_HEADER([canberra.h], [], +- [AC_MSG_ERROR([canberra.h header not found])]) +-NOTIFY_LIBS="-lcanberra $NOTIFY_LIBS" + AC_CHECK_HEADER([libmount/libmount.h], [], + [AC_MSG_ERROR([libmount/libmount.h header not found])]) + AC_CHECK_HEADER([sys/capability.h], [], +@@ -73,7 +69,6 @@ + + AC_MSG_NOTICE([CPPFLAGS = $CPPFLAGS]) + AC_MSG_NOTICE([LDFLAGS = $LDFLAGS]) +-AC_MSG_NOTICE([NOTIFY_LIBS = $NOTIFY_LIBS]) + AC_MSG_NOTICE([SKYLDAV_LIBS = $SKYLDAV_LIBS]) + + dnl Check includes +@@ -90,7 +85,6 @@ + Makefile + man/Makefile + src/Makefile +- src/notify/Makefile + src/skyldav/Makefile + test/Makefile + ]) +diff -urN skyldav-0.2rc3_p20130817.orig/Makefile.am skyldav-0.2rc3_p20130817/Makefile.am +--- skyldav-0.2rc3_p20130817.orig/Makefile.am 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/Makefile.am 2013-08-17 13:21:30.566228000 +0200 +@@ -14,10 +14,6 @@ + mkdir -p $(DESTDIR)$(sysconfdir) + test -e $(DESTDIR)$(sysconfdir)/skyldav.conf || \ + cp examples/etc/skyldav.conf $(DESTDIR)$(sysconfdir) +- mkdir -p $(DESTDIR)$(datadir)/autostart/ +- test -e $(DESTDIR)$(datadir)/autostart/skyldavnotify.desktop || \ +- cp examples/usr/share/autostart/skyldavnotify.desktop \ +- $(DESTDIR)$(datadir)/autostart/ + + dist-hook: + rm -rf $(distdir)/doc/doxygen +diff -urN skyldav-0.2rc3_p20130817.orig/man/Makefile.am skyldav-0.2rc3_p20130817/man/Makefile.am +--- skyldav-0.2rc3_p20130817.orig/man/Makefile.am 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/man/Makefile.am 2013-08-17 13:22:04.636393000 +0200 +@@ -1,6 +1,6 @@ + SECONDARY: +-dist_man_MANS = skyldav.1 skyldavnotify.1 ++dist_man_MANS = skyldav.1 + + EXTRA_DIST = \ +-skyldav.1 skyldavnotify.1 ++skyldav.1 + +diff -urN skyldav-0.2rc3_p20130817.orig/man/skyldavnotify.1 skyldav-0.2rc3_p20130817/man/skyldavnotify.1 +--- skyldav-0.2rc3_p20130817.orig/man/skyldavnotify.1 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/man/skyldavnotify.1 1970-01-01 01:00:00.000000000 +0100 +@@ -1,28 +0,0 @@ +-.TH SKYLDAVNOTIFY 1 "June 23th, 2013" "version 0.1" "Skyld AV notification" +-.SH NAME +-skyldavnotify \- Desktop notification for Skyld AV +-.SH SYNOPSIS +-.B skyldavnotify +-.RB [ \-h ] +-.RB [ \-v ] +-.SH DESCRIPTION +-.PP +-This program notifies the user of a windows manager like KDE or GNOME if +-Skyld AV detected malware. Typical usage is to start this file using a +-desktop link +-.IR /usr/share/autostart/skyldavnotify.desktop . +-.PP +-.TP +-.B \-h +-Print usage information. +-.TP +-.B \-v +-Print the program version and licensing information. +-.SH AUTHOR +-Heinrich Schuchardt +-.SH SEE ALSO +-.BR sykldav (1) +-.PP +-Further documentation and examples can be found in the documentation +-path, which defaults to +-.IR /usr/local/share/doc/skyldav . +diff -urN skyldav-0.2rc3_p20130817.orig/src/Makefile.am skyldav-0.2rc3_p20130817/src/Makefile.am +--- skyldav-0.2rc3_p20130817.orig/src/Makefile.am 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/src/Makefile.am 2013-08-17 13:21:52.285856000 +0200 +@@ -1 +1 @@ +-SUBDIRS = notify skyldav ++SUBDIRS = skyldav +diff -urN skyldav-0.2rc3_p20130817.orig/src/notify/Makefile.am skyldav-0.2rc3_p20130817/src/notify/Makefile.am +--- skyldav-0.2rc3_p20130817.orig/src/notify/Makefile.am 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/src/notify/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +@@ -1,10 +0,0 @@ +-AM_CPPFLAGS = $(NOTIFY_CFLAGS) +-skyldavnotify_LDADD = $(NOTIFY_LIBS) +- +-bin_PROGRAMS = \ +- skyldavnotify +- +-skyldavnotify_SOURCES = notify.h notify.cc +- +-check: +- ./skyldavnotify --version +\ No newline at end of file +diff -urN skyldav-0.2rc3_p20130817.orig/src/notify/notify.cc skyldav-0.2rc3_p20130817/src/notify/notify.cc +--- skyldav-0.2rc3_p20130817.orig/src/notify/notify.cc 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/src/notify/notify.cc 1970-01-01 01:00:00.000000000 +0100 +@@ -1,185 +0,0 @@ +-/* +- * File: notify.c +- * +- * Copyright 2013 Heinrich Schuchardt +- * +- * Licensed under the Apache License, Version 2.0 (the "License"); +- * you may not use this file except in compliance with the License. +- * You may obtain a copy of the License at +- * +- * http://www.apache.org/licenses/LICENSE-2.0 +- * +- * Unless required by applicable law or agreed to in writing, software +- * distributed under the License is distributed on an "AS IS" BASIS, +- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +- * See the License for the specific language governing permissions and +- * limitations under the License. +- * +- */ +- +-/** +- * @file notify.cc +- * @brief Notify Skyld AV events. +- * +- * Sound depends on freedesktop-sound-theme +- */ +- +-#include +-#include +-#include +-#include +-#include +-#include +-#include +-#include "config.h" +-#include "notify.h" +- +-#define RUNNING 1 +-#define STOPPING 2 +- +-volatile sig_atomic_t status; +- +-static void sigint_handler(int sig) { +- write(0, "\nSTOPPING\n", 10); +- status = STOPPING; +- } +- +-/** +- * @brief Prints help message and exits. +- */ +-static void help() { +- printf("%s", HELP_TEXT); +- exit(EXIT_FAILURE); +-} +- +-/** +- * @brief Shows version information and exits. +- */ +-static void version() { +- printf("Skyld AV, version %s\n", VERSION); +- printf("%s", VERSION_TEXT); +- exit(EXIT_SUCCESS); +-} +- +-int main(int argc, char **argv) +-{ +- int i; +- char *opt; +- NotifyNotification *n; +- char filename[] = "/run/skyldav/log"; +- char application[] = "Skyld AV"; +- char title[] = "Skyld AV"; +- char body[2048]; +- char *msg; +- FILE *file; +- struct sigaction sa; +- +- // Analyze command line options. +- for (i = 1; i < argc; i++) { +- opt = argv[i]; +- if (*opt == '-') { +- opt++; +- } else { +- help(); +- } +- if (*opt == '-') { +- opt++; +- } +- switch (*opt) { +- case 'v': +- version(); +- break; +- default: +- help(); +- } +- } +- +- printf("Skyld AV notifier %s\n", VERSION); +- printf("Exit with CTRL+C\n"); +- +- file = fopen(filename, "r"); +- if (file == NULL) { +- fprintf(stderr, "File '%s' not found\n", filename); +- return EXIT_FAILURE; +- } +- // position to end of file +- fseek(file, 0, SEEK_END); +- +- sa.sa_handler = sigint_handler; +- sa.sa_flags = 0; // or SA_RESTART +- sigemptyset(&sa.sa_mask); +- if (sigaction(SIGINT, &sa, NULL) == -1) { +- perror("sigaction"); +- return EXIT_FAILURE; +- } +- +- ca_context *c; +- +- // initialize gtk +- gtk_init(&argc,&argv); +- +- // initialize notify +- notify_init(application); +- +- status = RUNNING; +- +- for (;;) { +- +- msg = fgets(body, 2047, file); +- +- if (msg == NULL) { +- if (status != RUNNING) { +- break; +- } +- if (feof(file)) { +- usleep(500000); +- } +- if (ferror(file)) { +- perror("fgets"); +- } +- continue; +- } +- +- // create a new notification +- switch(body[0]) { +- case '\0': +- case '\n': +- n = notify_notification_new(title, "", +- "dialog-information"); +- break; +- case 'E': +- n = notify_notification_new(title, body + 1, "dialog-error"); +- break; +- case 'W': +- n = notify_notification_new(title, body + 1, "dialog-warning"); +- break; +- case 'I': +- n = notify_notification_new(title, body + 1, "dialog-information"); +- break; +- default: +- n = notify_notification_new(title, body + 1, "dialog-information"); +- } +- +- // set the timeout to 9000 ms +- notify_notification_set_timeout(n, 9000); +- +- // set the urgency level to critical +- notify_notification_set_urgency (n, NOTIFY_URGENCY_CRITICAL); +- +- // show the notification +- GError *error = NULL; +- notify_notification_show(n, &error); +- +- ca_context_create(&c); +- ca_context_play(c, 0, +- CA_PROP_EVENT_ID, "dialog-warning", +- CA_PROP_EVENT_DESCRIPTION, title, +- NULL); +- usleep(500000); +- } +- +- fclose(file); +- +- return EXIT_SUCCESS; +-} +- +diff -urN skyldav-0.2rc3_p20130817.orig/src/notify/notify.h skyldav-0.2rc3_p20130817/src/notify/notify.h +--- skyldav-0.2rc3_p20130817.orig/src/notify/notify.h 2013-08-17 00:08:41.000000000 +0200 ++++ skyldav-0.2rc3_p20130817/src/notify/notify.h 1970-01-01 01:00:00.000000000 +0100 +@@ -1,60 +0,0 @@ +-/* +- * File: notify.h +- * +- * Copyright 2013 Heinrich Schuchardt +- * +- * Licensed under the Apache License, Version 2.0 (the "License"); +- * you may not use this file except in compliance with the License. +- * You may obtain a copy of the License at +- * +- * http://www.apache.org/licenses/LICENSE-2.0 +- * +- * Unless required by applicable law or agreed to in writing, software +- * distributed under the License is distributed on an "AS IS" BASIS, +- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +- * See the License for the specific language governing permissions and +- * limitations under the License. +- * +- */ +- +-/** +- * @file notify.h +- * @brief Notify Skyld AV events. +- */ +- +-#ifndef NOTIFY_H +-#define NOTIFY_H +- +-#ifdef __cplusplus +-extern "C" { +-#endif +- +- const char *HELP_TEXT = +- "Usage: skyldavnotify [OPTION]\n" +- "Notification for Skyld AV on access virus scanner.\n\n" +- " -h help\n" +- " -v version\n\n" +- "Licensed under the Apache License, Version 2.0.\n" +- "Report errors to\n" +- "Heinrich Schuchardt \n"; +- +- const char *VERSION_TEXT = +- "Notification for Skyld AV on access virus scanner.\n\n" +- "Copyright 2013 Heinrich Schuchardt \n\n" +- "Licensed under the Apache License, Version 2.0 (the\n" +- "\"License\"); you may not use this file except in compliance\n" +- "with the License. You may obtain a copy of the License at\n\n" +- " http://www.apache.org/licenses/LICENSE-2.0\n\n" +- "Unless required by applicable law or agreed to in writing,\n" +- "software distributed under the License is distributed on an\n" +- "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n" +- "either express or implied. See the License for the specific\n" +- "language governing permissions and limitations under the\n" +- "License.\n"; +- +-#ifdef __cplusplus +-} +-#endif +- +-#endif /* NOTIFY_H */ +- diff --git a/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130821-examples.patch b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130821-examples.patch new file mode 100644 index 0000000..03bcb33 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav-0.2_rc3_p20130821-examples.patch @@ -0,0 +1,11 @@ +diff -urN skyldav-0.2rc3_p20130821.orig/Makefile.am skyldav-0.2rc3_p20130821/Makefile.am +--- skyldav-0.2rc3_p20130821.orig/Makefile.am 2013-08-21 06:56:18.000000000 +0200 ++++ skyldav-0.2rc3_p20130821/Makefile.am 2013-08-21 07:26:49.435950000 +0200 +@@ -9,7 +9,6 @@ + rm -rf doc/doxygen + + install-data-local: \ +- install-skyldav-examples \ + install-skyldav-conf \ + install-skyldavnotify-desktop + diff --git a/app-antivirus/skyldav/files/skyldav.confd b/app-antivirus/skyldav/files/skyldav.confd new file mode 100644 index 0000000..aad4d23 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav.confd @@ -0,0 +1,11 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/skyldav + +# Options to pass to the skyldav daemon. +# Option -d for daemonizing is always passed! +# See the skyldav(1) man page for more info. + +#SKYLDAV_OPTS="-m 1" diff --git a/app-antivirus/skyldav/files/skyldav.initd b/app-antivirus/skyldav/files/skyldav.initd new file mode 100755 index 0000000..fd4bf09 --- /dev/null +++ b/app-antivirus/skyldav/files/skyldav.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +SKYLDAV_BIN="/usr/sbin/skyldav" +SKYLDAV_OPTS="${SKYLDAV_OPTS:--m 2}" +SKYLDAV_CONFIGFILE="/etc/skyldav.conf" +SKYLDAV_PIDFILE_DIR="${SKYLDAV_PIDFILE_DIR:-/var/run/${RC_SVCNAME}}" +SKYLDAV_PIDFILE="${SKYLDAV_PIDFILE:-${SKYLDAV_PIDFILE_DIR}/${RC_SVCNAME}.pid}" + +name="${SKYLDAV_BIN##*/}" +command="${SKYLDAV_BIN}" +command_args="-d ${SKYLDAV_OPTS}" +pidfile="${SKYLDAV_PIDFILE}" +description="Skyld AV is an anti-virus on-access scanner based upon Clam AV and fanotify" +required_files="${SKYLDAV_CONFIG}" + +depend() { + use logger + need localmount +} + +start_pre() { + checkpath -d -m 0755 -o root:root "${SKYLDAV_PIDFILE_DIR}" +} diff --git a/app-antivirus/skyldav/metadata.xml b/app-antivirus/skyldav/metadata.xml new file mode 100644 index 0000000..f6da4d5 --- /dev/null +++ b/app-antivirus/skyldav/metadata.xml @@ -0,0 +1,12 @@ + + + + + wschlich@gentoo.org + Wolfram Schlich + Primary mainainer + + + xypron/skyldav + + diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3.ebuild new file mode 100644 index 0000000..548ea6e --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +AUTOTOOLS_AUTORECONF="1" + +inherit flag-o-matic linux-info linux-mod autotools-utils + +MY_PV=${PV/_rc/rc} +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="" + +RDEPEND="sys-apps/util-linux + sys-libs/libcap + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +DOCS=( AUTHORS NEWS README ) + +AUTOTOOLS_IN_SOURCE_BUILD="1" + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}/${P}-examples.patch" + epatch "${FILESDIR}/${P}-sbin.patch" + epatch "${FILESDIR}/${P}-conf.patch" + epatch "${FILESDIR}/${P}-openlog.patch" + autotools-utils_src_prepare +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3_p20130816.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130816.ebuild new file mode 100644 index 0000000..c2545a2 --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130816.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +AUTOTOOLS_AUTORECONF="1" + +inherit flag-o-matic linux-info linux-mod autotools-utils + +MY_PV=${PV/_rc/rc} +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="" + +RDEPEND="sys-apps/util-linux + sys-libs/libcap + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +DOCS=( AUTHORS NEWS README ) + +AUTOTOOLS_IN_SOURCE_BUILD="1" + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.2_rc3-examples.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-sbin.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-conf.patch" + epatch "${FILESDIR}/${P}-syslog.patch" + autotools-utils_src_prepare +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817-r1.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817-r1.ebuild new file mode 100644 index 0000000..529eb1b --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +AUTOTOOLS_AUTORECONF="1" + +inherit flag-o-matic linux-info linux-mod autotools-utils + +MY_PV=${PV/_rc/rc} +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="libnotify" + +RDEPEND="sys-apps/util-linux + sys-libs/libcap + libnotify? ( + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2 + )" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +DOCS=( AUTHORS NEWS README ) + +AUTOTOOLS_IN_SOURCE_BUILD="1" + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.2_rc3-examples.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-sbin.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-conf.patch" + use libnotify || epatch "${FILESDIR}/${P}-disable-skyldavnotify.patch" + autotools-utils_src_prepare +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817.ebuild new file mode 100644 index 0000000..e5c1f65 --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130817.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +AUTOTOOLS_AUTORECONF="1" + +inherit flag-o-matic linux-info linux-mod autotools-utils + +MY_PV=${PV/_rc/rc} +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="" + +RDEPEND="sys-apps/util-linux + sys-libs/libcap + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +DOCS=( AUTHORS NEWS README ) + +AUTOTOOLS_IN_SOURCE_BUILD="1" + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.2_rc3-examples.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-sbin.patch" + epatch "${FILESDIR}/${PN}-0.2_rc3-conf.patch" + autotools-utils_src_prepare +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821-r1.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821-r1.ebuild new file mode 100644 index 0000000..043755a --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit flag-o-matic linux-info linux-mod autotools-utils + +#MY_PV=${PV/_rc/rc} +MY_PVR=${PVR/_rc/rc} +#MY_P="${PN}-${MY_PV}" +MY_P="${PN}-${MY_PVR}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="libnotify" + +RDEPEND="app-antivirus/clamav + sys-apps/util-linux + sys-libs/libcap + libnotify? ( + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2 + )" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +## autotools-utils.eclass settings +AUTOTOOLS_AUTORECONF="1" +AUTOTOOLS_IN_SOURCE_BUILD="1" +DOCS=( AUTHORS NEWS README ) +PATCHES=( + "${FILESDIR}/${P}-examples.patch" + "${FILESDIR}/${PN}-0.2_rc3-sbin.patch" + "${FILESDIR}/${PN}-0.2_rc3-conf.patch" +) + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_configure() { + local myeconfargs=( + $(use_with libnotify notification) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821.ebuild b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821.ebuild new file mode 100644 index 0000000..ba4ee18 --- /dev/null +++ b/app-antivirus/skyldav/skyldav-0.2_rc3_p20130821.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit flag-o-matic linux-info linux-mod autotools-utils + +MY_PV=${PV/_rc/rc} +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify" +#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://xypron.github.io/skyldav/" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="Apache-2.0" +IUSE="libnotify" + +RDEPEND="sys-apps/util-linux + sys-libs/libcap + libnotify? ( + media-libs/libcanberra[gtk] + x11-libs/libnotify + x11-libs/gtk+:2 + )" +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" + +## autotools-utils.eclass settings +AUTOTOOLS_AUTORECONF="1" +AUTOTOOLS_IN_SOURCE_BUILD="1" +DOCS=( AUTHORS NEWS README ) +PATCHES=( + "${FILESDIR}/${P}-examples.patch" + "${FILESDIR}/${PN}-0.2_rc3-sbin.patch" + "${FILESDIR}/${PN}-0.2_rc3-conf.patch" +) + +pkg_setup() { + linux-info_pkg_setup + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended" + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS" + check_extra_config +} + +src_configure() { + local myeconfargs=( + $(use_with libnotify notification) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} diff --git a/app-backup/bacula/ChangeLog b/app-backup/bacula/ChangeLog new file mode 100644 index 0000000..10c2754 --- /dev/null +++ b/app-backup/bacula/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for app-backup/bacula +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 22 Mar 2010; Wolfram Schlich + +files/5.0.1/bacula-5.0.1-as-needed.patch, + +files/5.0.1/bacula-5.0.1-ncurses.patch, +bacula-5.0.1-r1.ebuild: + some fixups + + 26 Feb 2010; Wolfram Schlich ++, ++, + -bacula-5.0.0-r100.ebuild: + version bump + + 28 Jan 2010; Wolfram Schlich + +files/5.0.0/bacula-dir.confd, +files/5.0.0/bacula-dir.initd, + +files/5.0.0/bacula-fd.confd, +files/5.0.0/bacula-fd.initd, + +files/5.0.0/bacula-sd.confd, +files/5.0.0/bacula-sd.initd, +metadata.xml, + +bacula-5.0.0.ebuild, +bacula-5.0.0-r100.ebuild: + initial import to overlay + diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest new file mode 100644 index 0000000..90bdefa --- /dev/null +++ b/app-backup/bacula/Manifest @@ -0,0 +1,21 @@ +AUX 5.0.0/bacula-dir.confd 642 RMD160 6b53fd1d0bccebe4609d9c694f7affe2b754181b SHA1 8109756baf74460cae8631c0d8acbeea072dfa84 SHA256 7398289854d42deb3531dd9f3a7c4cbc87a3dd72db9f65975ecd8424baeaa6f7 +AUX 5.0.0/bacula-dir.initd 517 RMD160 1ab5519d7f96f8e069a36be60c3efa00f5e1f688 SHA1 9d37aa6f067d38978f0be271b7c82d46e38a1e00 SHA256 dc5b4efc49ad855b0c9d43496a78baa31196c69b9ba50ed2908c9da8ebd2c97e +AUX 5.0.0/bacula-fd.confd 254 RMD160 d4bbaece96331741494b63a82cf3e63924b6aff9 SHA1 698b0e9b8cafb2b76f91bf11e380848cdbb4eb86 SHA256 9264ea9b7abb0b9b777af6c0c7f48600d41f20781837d23a4780f647b6fc232a +AUX 5.0.0/bacula-fd.initd 442 RMD160 6416700c4f71c12a0ff1e68627bd46957d669745 SHA1 d1c2490039ce4d8b1d325a5a36c2977b606d72c8 SHA256 98b5ba558072a370037141b7d2ea684f7f78ec43c77b169266bcdd97446fe2b7 +AUX 5.0.0/bacula-sd.confd 404 RMD160 2506cad8111636ac84355488bd99d75555d5d7e6 SHA1 a93a49ba21f3f9aaf000901d9305a98db8c41420 SHA256 b437d3a4de7fc392e3c70ca01350b21ea322a3f406abac2363cfa4ff5bb47430 +AUX 5.0.0/bacula-sd.initd 449 RMD160 cf0a282214861929cfc40c90b596023a123b28b5 SHA1 0d716862cbb0e7e9f1612f44f76c370bd914c6da SHA256 5ebfcea00de83250ddb059ed91657011450424dd36aeed07256b616b2d38a349 +AUX 5.0.1/bacula-5.0.1-as-needed.patch 2188 RMD160 412722cbd239765d9a2c9d7ace482996d77f0484 SHA1 cfe51045f5c8ac56f95d5f6f396381f537308643 SHA256 eed2dc1e450fb268033442d655d1cc432f4f46fc8f8146a3802823340045d116 +AUX 5.0.1/bacula-5.0.1-ncurses.patch 1510 RMD160 b32d34263612cada579a039ad26e6330f0a1e3d0 SHA1 37fb9e18216c84973f8a19291282f67450c441f5 SHA256 68d8b5f0bb9b6a9a993306fe22426fe146ab21c6132f94653217c6af1188b7e3 +AUX 5.0.1/bacula-dir.confd 642 RMD160 6b53fd1d0bccebe4609d9c694f7affe2b754181b SHA1 8109756baf74460cae8631c0d8acbeea072dfa84 SHA256 7398289854d42deb3531dd9f3a7c4cbc87a3dd72db9f65975ecd8424baeaa6f7 +AUX 5.0.1/bacula-dir.initd 517 RMD160 1ab5519d7f96f8e069a36be60c3efa00f5e1f688 SHA1 9d37aa6f067d38978f0be271b7c82d46e38a1e00 SHA256 dc5b4efc49ad855b0c9d43496a78baa31196c69b9ba50ed2908c9da8ebd2c97e +AUX 5.0.1/bacula-fd.confd 254 RMD160 d4bbaece96331741494b63a82cf3e63924b6aff9 SHA1 698b0e9b8cafb2b76f91bf11e380848cdbb4eb86 SHA256 9264ea9b7abb0b9b777af6c0c7f48600d41f20781837d23a4780f647b6fc232a +AUX 5.0.1/bacula-fd.initd 442 RMD160 6416700c4f71c12a0ff1e68627bd46957d669745 SHA1 d1c2490039ce4d8b1d325a5a36c2977b606d72c8 SHA256 98b5ba558072a370037141b7d2ea684f7f78ec43c77b169266bcdd97446fe2b7 +AUX 5.0.1/bacula-sd.confd 404 RMD160 2506cad8111636ac84355488bd99d75555d5d7e6 SHA1 a93a49ba21f3f9aaf000901d9305a98db8c41420 SHA256 b437d3a4de7fc392e3c70ca01350b21ea322a3f406abac2363cfa4ff5bb47430 +AUX 5.0.1/bacula-sd.initd 449 RMD160 cf0a282214861929cfc40c90b596023a123b28b5 SHA1 0d716862cbb0e7e9f1612f44f76c370bd914c6da SHA256 5ebfcea00de83250ddb059ed91657011450424dd36aeed07256b616b2d38a349 +DIST bacula-5.0.0.tar.gz 4075825 RMD160 790e9ed9435d5103d2ceb7ec544181b1bda4d3a9 SHA1 371ee088e0869ddab67beb3bec9ce64531772b14 SHA256 4c6344807769d1b6b61f9cbddc0a5dc1160c3eb51744b23c790fcb57947ac294 +DIST bacula-5.0.1.tar.gz 4057506 RMD160 587f49794556fe2eeed55eb3aaedfc3a6861761c SHA1 b6fd0c62d26c113d3bdccf69cd630b16d7261b5b SHA256 760e8300d88dd8da8ab324cff4adee3e9c73132b9caf74222c75641c93eea5db +EBUILD bacula-5.0.0.ebuild 15102 RMD160 b64e8f447c9fc7edcb7ca5f20beb81ea3f05b06a SHA1 9b8652c03ef31918d218dba3bf8417898fba4de4 SHA256 4daa2fc80272596056d9bd064168a6c68cbdb42a38074869345a5130ae62f3f5 +EBUILD bacula-5.0.1-r1.ebuild 15290 RMD160 5062fefe8b5250a5d27864ca744bb4ea146edf4c SHA1 bd2200a382671f4f087ece27e6e3909ebd37dc13 SHA256 7d218f2c6ab756dfa19bb3bcec8bf949e2a7123e7e5b2696cd383f41cd3765a0 +EBUILD bacula-5.0.1.ebuild 15236 RMD160 b6d6a1193858889f2f0efb5eeabddbdaa28cda0e SHA1 1966aa780521326a3d727be84fccf33f7149dc1f SHA256 28b0b2ba5926b634df25340ad70f67061d8eafe2bf48d0b0eefd9b1b0fcc191a +MISC ChangeLog 741 RMD160 4b474a2283943d5766ba0da8a5bdb58d334e8367 SHA1 bdd7a7dfaffb9e0c0e358e4df361e35e78fb7952 SHA256 f90e35fe57c458631ead376968aebac8ba2a3e29b4638ed51d06fd7200841a2e +MISC metadata.xml 792 RMD160 54773053a2101b290c7be206fa9e91a582e23920 SHA1 2cb5ffc402a4de4657f8c1c32e282b71e75000b4 SHA256 b5bec3a16f7feff82a0fd76d77acd843800746961af74272bfc92acbbac2b9a6 diff --git a/app-backup/bacula/bacula-5.0.0.ebuild b/app-backup/bacula/bacula-5.0.0.ebuild new file mode 100644 index 0000000..c739a07 --- /dev/null +++ b/app-backup/bacula/bacula-5.0.0.ebuild @@ -0,0 +1,485 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit eutils + +IUSE="bacula-clientonly bacula-nodir bacula-nosd ipv6 logwatch mysql postgres python qt4 readline +sqlite3 ssl static tcpd tray-monitor X" +# bacula-web bimagemgr brestore bweb +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" + +DESCRIPTION="Featureful client/server network backup suite" +HOMEPAGE="http://www.bacula.org/" + +MY_PV=${PV/_beta/-b} +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} +#DOC_VER="${MY_PV}" +#DOC_SRC_URI="mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2" +#GUI_VER="${PV}" +#GUI_SRC_URI="mirror://sourceforge/bacula/${PN}-gui-${GUI_VER}.tar.gz" +SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" +# doc? ( ${DOC_SRC_URI} ) +# bacula-web? ( ${GUI_SRC_URI} ) +# bimagemgr? ( ${GUI_SRC_URI} ) +# brestore? ( ${GUI_SRC_URI} ) +# bweb? ( ${GUI_SRC_URI} ) + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + >=sys-libs/zlib-1.1.4 + dev-libs/gmp + !bacula-clientonly? ( + !bacula-nodir? ( + postgres? ( >=virtual/postgresql-server-7.4 ) + mysql? ( virtual/mysql ) + sqlite3? ( dev-db/sqlite:3 ) + virtual/mta + ) + ) + qt4? ( + x11-libs/qt-svg:4 + >=x11-libs/qwt-5 + ) + ssl? ( dev-libs/openssl ) + logwatch? ( sys-apps/logwatch ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + readline? ( >=sys-libs/readline-4.1 ) + python? ( dev-lang/python[threads] )" +# doc? ( +# app-text/ghostscript-gpl +# dev-tex/latex2html[png] +# app-text/dvipdfm +# ) +RDEPEND="${DEPEND} + !bacula-clientonly? ( + !bacula-nosd? ( + sys-block/mtx + app-arch/mt-st + ) + )" + +pkg_setup() { + local dbnum + declare -i dbnum=0 + if ! use bacula-clientonly; then + if use mysql; then + export mydbtype=mysql + let dbnum++ + fi + if use postgres; then + export mydbtype=postgresql + let dbnum++ + fi + if use sqlite3; then + export mydbtype=sqlite3 + let dbnum++ + fi + if [[ "${dbnum}" -lt 1 ]]; then + eerror + eerror "To use ${P} it is required to set a database in the USE flags." + eerror "Supported databases are mysql, postgresql, sqlite3" + eerror + die "No database type selected." + elif [[ "${dbnum}" -gt 1 ]]; then + eerror + eerror "You have set ${P} to use multiple database types." + eerror "I don't know which to set as the default!" + eerror "You can use /etc/portage/package.use to set per-package USE flags" + eerror "Set it so only one database type, mysql, postgres, sqlite3" + eerror + die "Multiple database types selected." + fi + fi + + # create the daemon group and user + if [ -z "$(egetent group bacula 2>/dev/null)" ]; then + enewgroup bacula || die + einfo + einfo "The group 'bacula' has been created. Any users you add to this" + einfo "group have access to files created by the daemons." + einfo + fi + if ! use bacula-clientonly; then + if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then + enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw || die + einfo + einfo "The user 'bacula' has been created. Please see the bacula manual" + einfo "for information about running bacula as a non-root user." + einfo + fi + fi +} + +src_prepare() { + # adjusts default configuration files for several binaries + # to /etc/bacula/ instead of ./ + pushd src >&/dev/null || die + for f in console/console.c dird/dird.c filed/filed.c \ + stored/bcopy.c stored/bextract.c stored/bls.c \ + stored/bscan.c stored/btape.c stored/stored.c \ + tray-monitor/tray-monitor.c qt-console/main.cpp; do + sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ + || die "sed on ${f} failed" + done + popd >&/dev/null || die + + # apply upstream patches + #epatch "${FILESDIR}"/${PV}-foo.patch +} + +src_configure() { + local myconf='' + + if use bacula-clientonly; then + myconf="${myconf} \ + $(use_enable bacula-clientonly client-only) \ + $(use_enable static static-fd)" + else + myconf="${myconf} \ + --with-${mydbtype} \ + $(use_enable static static-tools) \ + $(use_enable static static-fd) \ + $(use_enable !bacula-nodir build-dird) \ + $(use_enable !bacula-nosd build-stored)" + if ! use bacula-nodir; then + myconf="${myconf} $(use_enable static static-dir)" + fi + if ! use bacula-nosd; then + myconf="${myconf} $(use_enable static static-sd)" + fi + myconf="${myconf} --enable-batch-insert" + fi + + if use qt4 && has_version '&/dev/null || die + emake DESTDIR="${D}" install || die "Failed to install logwatch scripts" + popd >&/dev/null || die + fi + fi + + # remove unwanted files + if use bacula-clientonly; then + rm -vf "${D}"/etc/bacula/bconsole.conf + rm -vf "${D}"/usr/sbin/bconsole + rm -vf "${D}"/usr/libexec/bacula/bconsole + fi + #rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1* + if use bacula-clientonly || ! use qt4; then + rm -vf "${D}"/usr/share/man/man1/bat.1* + fi + if use bacula-clientonly || ! use tray-monitor; then + rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* + fi + if use bacula-clientonly || use bacula-nodir; then + rm -vf "${D}"/usr/share/man/man8/bacula-dir.8* + rm -vf "${D}"/usr/share/man/man8/dbcheck.8* + rm -vf "${D}"/usr/share/man/man1/bsmtp.1* + rm -vf "${D}"/usr/libexec/bacula/create_*_database + rm -vf "${D}"/usr/libexec/bacula/drop_*_database + rm -vf "${D}"/usr/libexec/bacula/make_*_tables + rm -vf "${D}"/usr/libexec/bacula/update_*_tables + rm -vf "${D}"/usr/libexec/bacula/drop_*_tables + rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges + rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup + fi + if use bacula-clientonly || use bacula-nosd; then + rm -vf "${D}"/usr/share/man/man8/bacula-sd.8* + rm -vf "${D}"/usr/share/man/man8/bcopy.8* + rm -vf "${D}"/usr/share/man/man8/bextract.8* + rm -vf "${D}"/usr/share/man/man8/bls.8* + rm -vf "${D}"/usr/share/man/man8/bscan.8* + rm -vf "${D}"/usr/share/man/man8/btape.8* + rm -vf "${D}"/usr/libexec/bacula/disk-changer + rm -vf "${D}"/usr/libexec/bacula/mtx-changer + rm -vf "${D}"/usr/libexec/bacula/dvd-handler + fi + + # documentation + ecompress "${D}"/usr/share/doc/${PF}/* +# if use doc; then +# for i in catalog concepts console developers install problems utility; do +# dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/manuals/en/${i}/${i}.pdf || die +# done +# fi + + # setup init scripts + myscripts="bacula-fd" + if ! use bacula-clientonly; then + if ! use bacula-nodir; then + myscripts="${myscripts} bacula-dir" + fi + if ! use bacula-nosd; then + myscripts="${myscripts} bacula-sd" + fi + fi + for script in ${myscripts}; do + # copy over init script and config to a temporary location + # so we can modify them as needed + cp "${FILESDIR}/${PV}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" + cp "${FILESDIR}/${PV}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" + # set database dependancy for the director init script + case "${script}" in + bacula-dir) + case "${mydbtype}" in + sqlite3) + # sqlite3 databases don't have a daemon + sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die + ;; + *) + # all other databases have daemons + sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die + ;; + esac + ;; + *) + ;; + esac + # install init script and config + newinitd "${T}/${script}".initd "${script}" || die + newconfd "${T}/${script}".confd "${script}" || die + done + + # make sure the working directory exists + diropts -m0750 + keepdir /var/lib/bacula + + # make sure bacula group can execute bacula libexec scripts + fowners -R root:bacula /usr/libexec/bacula +} + +pkg_postinst() { + if use bacula-clientonly; then + fowners root:bacula /var/lib/bacula + else + fowners bacula:bacula /var/lib/bacula + fi + + if ! use bacula-clientonly && ! use bacula-nodir; then + einfo + einfo "If this is a new install, you must create the ${mydbtype} databases with:" + einfo " /usr/libexec/bacula/create_${mydbtype}_database" + einfo " /usr/libexec/bacula/make_${mydbtype}_tables" + einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" + einfo + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "If you're upgrading from a major release, you must upgrade your bacula catalog database." + ewarn "Please read the manual chapter for how to upgrade your database." + ewarn "You can find database upgrade scripts in /usr/libexec/bacula/updatedb/." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 5 + epause 10 + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "The bundled catalog backup script (/usr/libexec/bacula/make_catalog_backup)" + ewarn "is INSECURE. The script needs to be called with the database access password" + ewarn "as a command line parameter, thus, the password can be seen from any other" + ewarn "user on the system (if not using some non-default hardened/patched kernel" + ewarn "with /proc restrictions)!" + ewarn + ewarn "Our advice is to NOT USE the bundled script at all, but instead use something" + ewarn "like this in your catalog backup job definition (example using MySQL as the" + ewarn "catalog database):" + ewarn + ewarn "RunBeforeJob = \"mysqldump --defaults-file=/etc/bacula/my.cnf --opt -f -r /var/lib/bacula/bacula.sql bacula\"" + ewarn "RunAfterJob = \"rm -f /var/lib/bacula/bacula.sql\"" + ewarn + ewarn "This requires you to put all database access parameters (like user, host and" + ewarn "password) into a dedicated file (/etc/bacula/my.cnf in this example) which" + ewarn "can (and should!) be secured by simple filesystem access permissions." + ewarn + ewarn "See also:" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Bacula_Security_Issues.html" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Catalog_Maintenance.html#SECTION0043140000000000000000" + ewarn + ewarn "NOTICE:" + ewarn "Since version 5.0.0 Bacula bundles an alternative catalog backup script" + ewarn "installed as /usr/libexec/bacula/make_catalog_backup.pl that is not" + ewarn "subject to this issue as it parses the director daemon config to extract" + ewarn "the configured database connection parameters (including the password)." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 10 + epause 20 + echo + + ewarn + ewarn "Please note that SQLite v2 support as well as wxwindows (bwx-console)" + ewarn "and gnome (gnome-console) support have been dropped from this release." + ewarn + ebeep 3 + epause 5 + echo + fi + + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ewarn "Support for the bacula all-in-one init script has been removed from" + ewarn "a prior release -- if you were previously using the all-in-one init" + ewarn "script, please switch to using the individual init scripts now:" + ewarn + ewarn "- bacula-dir: bacula director (for the central bacula server)" + ewarn "- bacula-fd: bacula file daemon (for hosts to be backed up)" + ewarn "- bacula-sd: bacula storage daemon (for hosts storing the backup data)" + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ebeep 5 + epause 10 +} diff --git a/app-backup/bacula/bacula-5.0.1-r1.ebuild b/app-backup/bacula/bacula-5.0.1-r1.ebuild new file mode 100644 index 0000000..f654445 --- /dev/null +++ b/app-backup/bacula/bacula-5.0.1-r1.ebuild @@ -0,0 +1,492 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit autotools eutils multilib + +IUSE="bacula-clientonly bacula-nodir bacula-nosd ipv6 logwatch mysql postgres python qt4 readline +sqlite3 ssl static tcpd X" +# bacula-web bimagemgr brestore bweb +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" + +DESCRIPTION="Featureful client/server network backup suite" +HOMEPAGE="http://www.bacula.org/" + +MY_PV=${PV/_beta/-b} +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} +#DOC_VER="${MY_PV}" +#DOC_SRC_URI="mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2" +#GUI_VER="${PV}" +#GUI_SRC_URI="mirror://sourceforge/bacula/${PN}-gui-${GUI_VER}.tar.gz" +SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" +# doc? ( ${DOC_SRC_URI} ) +# bacula-web? ( ${GUI_SRC_URI} ) +# bimagemgr? ( ${GUI_SRC_URI} ) +# brestore? ( ${GUI_SRC_URI} ) +# bweb? ( ${GUI_SRC_URI} ) + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + >=sys-libs/zlib-1.1.4 + dev-libs/gmp + !bacula-clientonly? ( + !bacula-nodir? ( + postgres? ( >=virtual/postgresql-server-7.4 ) + mysql? ( virtual/mysql ) + sqlite3? ( dev-db/sqlite:3 ) + virtual/mta + ) + ) + qt4? ( + x11-libs/qt-svg:4 + >=x11-libs/qwt-5 + ) + ssl? ( dev-libs/openssl ) + logwatch? ( sys-apps/logwatch ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + readline? ( >=sys-libs/readline-4.1 ) + sys-libs/ncurses + python? ( dev-lang/python[threads] )" +# doc? ( +# app-text/ghostscript-gpl +# dev-tex/latex2html[png] +# app-text/dvipdfm +# ) +RDEPEND="${DEPEND} + !bacula-clientonly? ( + !bacula-nosd? ( + sys-block/mtx + app-arch/mt-st + ) + )" + +pkg_setup() { + local dbnum + declare -i dbnum=0 + if ! use bacula-clientonly; then + if use mysql; then + export mydbtype=mysql + let dbnum++ + fi + if use postgres; then + export mydbtype=postgresql + let dbnum++ + fi + if use sqlite3; then + export mydbtype=sqlite3 + let dbnum++ + fi + if [[ "${dbnum}" -lt 1 ]]; then + eerror + eerror "To use ${P} it is required to set a database in the USE flags." + eerror "Supported databases are mysql, postgresql, sqlite3" + eerror + die "No database type selected." + elif [[ "${dbnum}" -gt 1 ]]; then + eerror + eerror "You have set ${P} to use multiple database types." + eerror "I don't know which to set as the default!" + eerror "You can use /etc/portage/package.use to set per-package USE flags" + eerror "Set it so only one database type, mysql, postgres, sqlite3" + eerror + die "Multiple database types selected." + fi + fi + + # create the daemon group and user + if [ -z "$(egetent group bacula 2>/dev/null)" ]; then + enewgroup bacula || die + einfo + einfo "The group 'bacula' has been created. Any users you add to this" + einfo "group have access to files created by the daemons." + einfo + fi + if ! use bacula-clientonly; then + if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then + enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw || die + einfo + einfo "The user 'bacula' has been created. Please see the bacula manual" + einfo "for information about running bacula as a non-root user." + einfo + fi + fi +} + +src_prepare() { + # adjusts default configuration files for several binaries + # to /etc/bacula/ instead of ./ + pushd src >&/dev/null || die + for f in console/console.c dird/dird.c filed/filed.c \ + stored/bcopy.c stored/bextract.c stored/bls.c \ + stored/bscan.c stored/btape.c stored/stored.c \ + qt-console/main.cpp; do + sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ + || die "sed on ${f} failed" + done + popd >&/dev/null || die + + # bug #310087 + epatch "${FILESDIR}"/${PV}/${P}-as-needed.patch + + # switch from -ltermcap to -lncurses. + # we have to regenerate the configure script + # and eautoreconf does not work due to the + # sick bacula autoconf/autotools file location + # in ./autoconf/ instead of ./ + epatch "${FILESDIR}"/${PV}/${P}-ncurses.patch \ + && econf --enable-client-only \ + && make configure \ + || die "making configure failed" +} + +src_configure() { + local myconf='' + + if use bacula-clientonly; then + myconf="${myconf} \ + $(use_enable bacula-clientonly client-only) \ + $(use_enable static static-fd)" + else + myconf="${myconf} \ + $(use_enable static static-tools) \ + $(use_enable static static-fd) \ + $(use_enable !bacula-nodir build-dird) \ + $(use_enable !bacula-nosd build-stored)" + if ! use bacula-nodir; then + myconf="${myconf} \ + --with-${mydbtype} \ + --enable-batch-insert \ + $(use_enable static static-dir)" + fi + if ! use bacula-nosd; then + myconf="${myconf} $(use_enable static static-sd)" + fi + fi + + if use qt4 && has_version '&/dev/null || die + emake DESTDIR="${D}" install || die "Failed to install logwatch scripts" + popd >&/dev/null || die + fi + fi + + # remove unwanted files + if use bacula-clientonly; then + rm -vf "${D}"/etc/bacula/bconsole.conf + rm -vf "${D}"/usr/sbin/bconsole + rm -vf "${D}"/usr/libexec/bacula/bconsole + fi + #rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1* + if use bacula-clientonly || ! use qt4; then + rm -vf "${D}"/usr/share/man/man1/bat.1* + fi + rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* + if use bacula-clientonly || use bacula-nodir; then + rm -vf "${D}"/usr/share/man/man8/bacula-dir.8* + rm -vf "${D}"/usr/share/man/man8/dbcheck.8* + rm -vf "${D}"/usr/share/man/man1/bsmtp.1* + rm -vf "${D}"/usr/libexec/bacula/create_*_database + rm -vf "${D}"/usr/libexec/bacula/drop_*_database + rm -vf "${D}"/usr/libexec/bacula/make_*_tables + rm -vf "${D}"/usr/libexec/bacula/update_*_tables + rm -vf "${D}"/usr/libexec/bacula/drop_*_tables + rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges + rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup + fi + if use bacula-clientonly || use bacula-nosd; then + rm -vf "${D}"/usr/share/man/man8/bacula-sd.8* + rm -vf "${D}"/usr/share/man/man8/bcopy.8* + rm -vf "${D}"/usr/share/man/man8/bextract.8* + rm -vf "${D}"/usr/share/man/man8/bls.8* + rm -vf "${D}"/usr/share/man/man8/bscan.8* + rm -vf "${D}"/usr/share/man/man8/btape.8* + rm -vf "${D}"/usr/libexec/bacula/disk-changer + rm -vf "${D}"/usr/libexec/bacula/mtx-changer + rm -vf "${D}"/usr/libexec/bacula/dvd-handler + fi + + # documentation + ecompress "${D}"/usr/share/doc/${PF}/* +# if use doc; then +# for i in catalog concepts console developers install problems utility; do +# dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/manuals/en/${i}/${i}.pdf || die +# done +# fi + + # setup init scripts + myscripts="bacula-fd" + if ! use bacula-clientonly; then + if ! use bacula-nodir; then + myscripts="${myscripts} bacula-dir" + fi + if ! use bacula-nosd; then + myscripts="${myscripts} bacula-sd" + fi + fi + for script in ${myscripts}; do + # copy over init script and config to a temporary location + # so we can modify them as needed + cp "${FILESDIR}/${PV}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" + cp "${FILESDIR}/${PV}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" + # set database dependancy for the director init script + case "${script}" in + bacula-dir) + case "${mydbtype}" in + sqlite3) + # sqlite3 databases don't have a daemon + sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die + ;; + *) + # all other databases have daemons + sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die + ;; + esac + ;; + *) + ;; + esac + # install init script and config + newinitd "${T}/${script}".initd "${script}" || die + newconfd "${T}/${script}".confd "${script}" || die + done + + # make sure the working directory exists + diropts -m0750 + keepdir /var/lib/bacula + + # make sure bacula group can execute bacula libexec scripts + fowners -R root:bacula /usr/libexec/bacula +} + +pkg_postinst() { + if use bacula-clientonly; then + fowners root:bacula /var/lib/bacula + else + fowners bacula:bacula /var/lib/bacula + fi + + if ! use bacula-clientonly && ! use bacula-nodir; then + einfo + einfo "If this is a new install, you must create the ${mydbtype} databases with:" + einfo " /usr/libexec/bacula/create_${mydbtype}_database" + einfo " /usr/libexec/bacula/make_${mydbtype}_tables" + einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" + einfo + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "If you're upgrading from a major release, you must upgrade your bacula catalog database." + ewarn "Please read the manual chapter for how to upgrade your database." + ewarn "You can find database upgrade scripts in /usr/libexec/bacula/updatedb/." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 5 + epause 10 + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "The bundled catalog backup script (/usr/libexec/bacula/make_catalog_backup)" + ewarn "is INSECURE. The script needs to be called with the database access password" + ewarn "as a command line parameter, thus, the password can be seen from any other" + ewarn "user on the system (if not using some non-default hardened/patched kernel" + ewarn "with /proc restrictions)!" + ewarn + ewarn "Our advice is to NOT USE the bundled script at all, but instead use something" + ewarn "like this in your catalog backup job definition (example using MySQL as the" + ewarn "catalog database):" + ewarn + ewarn "RunBeforeJob = \"mysqldump --defaults-file=/etc/bacula/my.cnf --opt -f -r /var/lib/bacula/bacula.sql bacula\"" + ewarn "RunAfterJob = \"rm -f /var/lib/bacula/bacula.sql\"" + ewarn + ewarn "This requires you to put all database access parameters (like user, host and" + ewarn "password) into a dedicated file (/etc/bacula/my.cnf in this example) which" + ewarn "can (and should!) be secured by simple filesystem access permissions." + ewarn + ewarn "See also:" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Bacula_Security_Issues.html" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Catalog_Maintenance.html#SECTION0043140000000000000000" + ewarn + ewarn "NOTICE:" + ewarn "Since version 5.0.0 Bacula bundles an alternative catalog backup script" + ewarn "installed as /usr/libexec/bacula/make_catalog_backup.pl that is not" + ewarn "subject to this issue as it parses the director daemon config to extract" + ewarn "the configured database connection parameters (including the password)." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 10 + epause 20 + echo + + ewarn + ewarn "Please note that SQLite v2 support as well as wxwindows (bwx-console)" + ewarn "and gnome (gnome-console) support have been dropped from this release." + ewarn + ebeep 3 + epause 5 + echo + fi + + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ewarn "Support for the bacula all-in-one init script has been removed from" + ewarn "a prior release -- if you were previously using the all-in-one init" + ewarn "script, please switch to using the individual init scripts now:" + ewarn + ewarn "- bacula-dir: bacula director (for the central bacula server)" + ewarn "- bacula-fd: bacula file daemon (for hosts to be backed up)" + ewarn "- bacula-sd: bacula storage daemon (for hosts storing the backup data)" + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ebeep 5 + epause 10 +} diff --git a/app-backup/bacula/bacula-5.0.1.ebuild b/app-backup/bacula/bacula-5.0.1.ebuild new file mode 100644 index 0000000..aa59905 --- /dev/null +++ b/app-backup/bacula/bacula-5.0.1.ebuild @@ -0,0 +1,498 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit eutils + +IUSE="bacula-clientonly bacula-nodir bacula-nosd dbi ipv6 logwatch mysql postgres python qt4 readline +sqlite3 ssl static tcpd X" +# bacula-web bimagemgr brestore bweb +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" + +DESCRIPTION="Featureful client/server network backup suite" +HOMEPAGE="http://www.bacula.org/" + +MY_PV=${PV/_beta/-b} +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} +#DOC_VER="${MY_PV}" +#DOC_SRC_URI="mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2" +#GUI_VER="${PV}" +#GUI_SRC_URI="mirror://sourceforge/bacula/${PN}-gui-${GUI_VER}.tar.gz" +SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" +# doc? ( ${DOC_SRC_URI} ) +# bacula-web? ( ${GUI_SRC_URI} ) +# bimagemgr? ( ${GUI_SRC_URI} ) +# brestore? ( ${GUI_SRC_URI} ) +# bweb? ( ${GUI_SRC_URI} ) + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + >=sys-libs/zlib-1.1.4 + dev-libs/gmp + !bacula-clientonly? ( + !bacula-nodir? ( + dbi? ( dev-db/libdbi ) + postgres? ( >=virtual/postgresql-server-7.4 ) + mysql? ( virtual/mysql ) + sqlite3? ( dev-db/sqlite:3 ) + virtual/mta + ) + ) + qt4? ( + x11-libs/qt-svg:4 + >=x11-libs/qwt-5 + ) + ssl? ( dev-libs/openssl ) + logwatch? ( sys-apps/logwatch ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + readline? ( + >=sys-libs/readline-4.1 + sys-libs/libtermcap-compat + ) + !readline? ( + sys-libs/ncurses + ) + python? ( dev-lang/python[threads] )" +# doc? ( +# app-text/ghostscript-gpl +# dev-tex/latex2html[png] +# app-text/dvipdfm +# ) +RDEPEND="${DEPEND} + !bacula-clientonly? ( + !bacula-nosd? ( + sys-block/mtx + app-arch/mt-st + ) + )" + +pkg_setup() { + local dbnum + declare -i dbnum=0 + if ! use bacula-clientonly; then + if use mysql; then + export mydbtype=mysql + let dbnum++ + fi + if use postgres; then + export mydbtype=postgresql + let dbnum++ + fi + if use sqlite3; then + export mydbtype=sqlite3 + let dbnum++ + fi + if [[ "${dbnum}" -lt 1 ]]; then + eerror + eerror "To use ${P} it is required to set a database in the USE flags." + eerror "Supported databases are mysql, postgresql, sqlite3" + eerror + die "No database type selected." + elif [[ "${dbnum}" -gt 1 ]]; then + eerror + eerror "You have set ${P} to use multiple database types." + eerror "I don't know which to set as the default!" + eerror "You can use /etc/portage/package.use to set per-package USE flags" + eerror "Set it so only one database type, mysql, postgres, sqlite3" + eerror + die "Multiple database types selected." + fi + fi + + # create the daemon group and user + if [ -z "$(egetent group bacula 2>/dev/null)" ]; then + enewgroup bacula || die + einfo + einfo "The group 'bacula' has been created. Any users you add to this" + einfo "group have access to files created by the daemons." + einfo + fi + if ! use bacula-clientonly; then + if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then + enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw || die + einfo + einfo "The user 'bacula' has been created. Please see the bacula manual" + einfo "for information about running bacula as a non-root user." + einfo + fi + fi +} + +src_prepare() { + # adjusts default configuration files for several binaries + # to /etc/bacula/ instead of ./ + pushd src >&/dev/null || die + for f in console/console.c dird/dird.c filed/filed.c \ + stored/bcopy.c stored/bextract.c stored/bls.c \ + stored/bscan.c stored/btape.c stored/stored.c \ + qt-console/main.cpp; do + sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ + || die "sed on ${f} failed" + done + popd >&/dev/null || die + + # apply upstream patches + #epatch "${FILESDIR}"/${PV}-foo.patch +} + +src_configure() { + local myconf='' + + if use bacula-clientonly; then + myconf="${myconf} \ + $(use_enable bacula-clientonly client-only) \ + $(use_enable static static-fd)" + else + myconf="${myconf} \ + $(use_enable static static-tools) \ + $(use_enable static static-fd) \ + $(use_enable !bacula-nodir build-dird) \ + $(use_enable !bacula-nosd build-stored)" + if ! use bacula-nodir; then + myconf="${myconf} \ + $(use_with dbi) \ + --enable-batch-insert \ + $(use_enable static static-dir)" + if use dbi; then + myconf="${myconf} \ + $(use_with dbi dbi-driver ${mydbtype})" + else + myconf="${myconf} \ + --with-${mydbtype}" + fi + fi + if ! use bacula-nosd; then + myconf="${myconf} $(use_enable static static-sd)" + fi + fi + + if use qt4 && has_version '&/dev/null || die + emake DESTDIR="${D}" install || die "Failed to install logwatch scripts" + popd >&/dev/null || die + fi + fi + + # remove unwanted files + if use bacula-clientonly; then + rm -vf "${D}"/etc/bacula/bconsole.conf + rm -vf "${D}"/usr/sbin/bconsole + rm -vf "${D}"/usr/libexec/bacula/bconsole + fi + #rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1* + if use bacula-clientonly || ! use qt4; then + rm -vf "${D}"/usr/share/man/man1/bat.1* + fi + rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* + if use bacula-clientonly || use bacula-nodir; then + rm -vf "${D}"/usr/share/man/man8/bacula-dir.8* + rm -vf "${D}"/usr/share/man/man8/dbcheck.8* + rm -vf "${D}"/usr/share/man/man1/bsmtp.1* + rm -vf "${D}"/usr/libexec/bacula/create_*_database + rm -vf "${D}"/usr/libexec/bacula/drop_*_database + rm -vf "${D}"/usr/libexec/bacula/make_*_tables + rm -vf "${D}"/usr/libexec/bacula/update_*_tables + rm -vf "${D}"/usr/libexec/bacula/drop_*_tables + rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges + rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup + fi + if use bacula-clientonly || use bacula-nosd; then + rm -vf "${D}"/usr/share/man/man8/bacula-sd.8* + rm -vf "${D}"/usr/share/man/man8/bcopy.8* + rm -vf "${D}"/usr/share/man/man8/bextract.8* + rm -vf "${D}"/usr/share/man/man8/bls.8* + rm -vf "${D}"/usr/share/man/man8/bscan.8* + rm -vf "${D}"/usr/share/man/man8/btape.8* + rm -vf "${D}"/usr/libexec/bacula/disk-changer + rm -vf "${D}"/usr/libexec/bacula/mtx-changer + rm -vf "${D}"/usr/libexec/bacula/dvd-handler + fi + + # documentation + ecompress "${D}"/usr/share/doc/${PF}/* +# if use doc; then +# for i in catalog concepts console developers install problems utility; do +# dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/manuals/en/${i}/${i}.pdf || die +# done +# fi + + # setup init scripts + myscripts="bacula-fd" + if ! use bacula-clientonly; then + if ! use bacula-nodir; then + myscripts="${myscripts} bacula-dir" + fi + if ! use bacula-nosd; then + myscripts="${myscripts} bacula-sd" + fi + fi + for script in ${myscripts}; do + # copy over init script and config to a temporary location + # so we can modify them as needed + cp "${FILESDIR}/${PV}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" + cp "${FILESDIR}/${PV}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" + # set database dependancy for the director init script + case "${script}" in + bacula-dir) + case "${mydbtype}" in + sqlite3) + # sqlite3 databases don't have a daemon + sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die + ;; + *) + # all other databases have daemons + sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die + ;; + esac + ;; + *) + ;; + esac + # install init script and config + newinitd "${T}/${script}".initd "${script}" || die + newconfd "${T}/${script}".confd "${script}" || die + done + + # make sure the working directory exists + diropts -m0750 + keepdir /var/lib/bacula + + # make sure bacula group can execute bacula libexec scripts + fowners -R root:bacula /usr/libexec/bacula +} + +pkg_postinst() { + if use bacula-clientonly; then + fowners root:bacula /var/lib/bacula + else + fowners bacula:bacula /var/lib/bacula + fi + + if ! use bacula-clientonly && ! use bacula-nodir; then + einfo + einfo "If this is a new install, you must create the ${mydbtype} databases with:" + einfo " /usr/libexec/bacula/create_${mydbtype}_database" + einfo " /usr/libexec/bacula/make_${mydbtype}_tables" + einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" + einfo + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "If you're upgrading from a major release, you must upgrade your bacula catalog database." + ewarn "Please read the manual chapter for how to upgrade your database." + ewarn "You can find database upgrade scripts in /usr/libexec/bacula/updatedb/." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 5 + epause 10 + echo + + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ewarn "The bundled catalog backup script (/usr/libexec/bacula/make_catalog_backup)" + ewarn "is INSECURE. The script needs to be called with the database access password" + ewarn "as a command line parameter, thus, the password can be seen from any other" + ewarn "user on the system (if not using some non-default hardened/patched kernel" + ewarn "with /proc restrictions)!" + ewarn + ewarn "Our advice is to NOT USE the bundled script at all, but instead use something" + ewarn "like this in your catalog backup job definition (example using MySQL as the" + ewarn "catalog database):" + ewarn + ewarn "RunBeforeJob = \"mysqldump --defaults-file=/etc/bacula/my.cnf --opt -f -r /var/lib/bacula/bacula.sql bacula\"" + ewarn "RunAfterJob = \"rm -f /var/lib/bacula/bacula.sql\"" + ewarn + ewarn "This requires you to put all database access parameters (like user, host and" + ewarn "password) into a dedicated file (/etc/bacula/my.cnf in this example) which" + ewarn "can (and should!) be secured by simple filesystem access permissions." + ewarn + ewarn "See also:" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Bacula_Security_Issues.html" + ewarn "http://www.bacula.org/5.0.x-manuals/en/main/main/Catalog_Maintenance.html#SECTION0043140000000000000000" + ewarn + ewarn "NOTICE:" + ewarn "Since version 5.0.0 Bacula bundles an alternative catalog backup script" + ewarn "installed as /usr/libexec/bacula/make_catalog_backup.pl that is not" + ewarn "subject to this issue as it parses the director daemon config to extract" + ewarn "the configured database connection parameters (including the password)." + ewarn + ewarn "*** ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ATTENTION! IMPORTANT! ***" + ewarn + ebeep 10 + epause 20 + echo + + ewarn + ewarn "Please note that SQLite v2 support as well as wxwindows (bwx-console)" + ewarn "and gnome (gnome-console) support have been dropped from this release." + ewarn + ebeep 3 + epause 5 + echo + fi + + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ewarn "Support for the bacula all-in-one init script has been removed from" + ewarn "a prior release -- if you were previously using the all-in-one init" + ewarn "script, please switch to using the individual init scripts now:" + ewarn + ewarn "- bacula-dir: bacula director (for the central bacula server)" + ewarn "- bacula-fd: bacula file daemon (for hosts to be backed up)" + ewarn "- bacula-sd: bacula storage daemon (for hosts storing the backup data)" + ewarn + ewarn "*** NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! NOTICE! ***" + ewarn + ebeep 5 + epause 10 +} diff --git a/app-backup/bacula/files/5.0.0/bacula-dir.confd b/app-backup/bacula/files/5.0.0/bacula-dir.confd new file mode 100644 index 0000000..d24a66c --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-dir.confd @@ -0,0 +1,17 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-dir + +# If the database server where you store your bacula catalog +# is on a different machine, please set this to 0. +# Setting it to 1 makes bacula-dir depend on the corresponding +# database service selected at package compile time. +LOCAL_DB=1 + +# Options for the director daemon. +# The director can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +DIR_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-dir.conf" diff --git a/app-backup/bacula/files/5.0.0/bacula-dir.initd b/app-backup/bacula/files/5.0.0/bacula-dir.initd new file mode 100644 index 0000000..bef5003 --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-dir.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + if [ "${LOCAL_DB}" -eq 1 ]; then + need "%database%" + fi + use dns bacula-fd bacula-sd +} + +start() { + ebegin "Starting bacula director" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \ + -- ${DIR_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula director" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid + eend $? +} diff --git a/app-backup/bacula/files/5.0.0/bacula-fd.confd b/app-backup/bacula/files/5.0.0/bacula-fd.confd new file mode 100644 index 0000000..7541946 --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-fd.confd @@ -0,0 +1,8 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-fd + +# Options for the file daemon. +FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf" diff --git a/app-backup/bacula/files/5.0.0/bacula-fd.initd b/app-backup/bacula/files/5.0.0/bacula-fd.initd new file mode 100644 index 0000000..7b158bc --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-fd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting bacula file daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \ + -- ${FD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula file daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid + eend $? +} diff --git a/app-backup/bacula/files/5.0.0/bacula-sd.confd b/app-backup/bacula/files/5.0.0/bacula-sd.confd new file mode 100644 index 0000000..754de76 --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-sd.confd @@ -0,0 +1,11 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-sd + +# Options for the storage daemon. +# The storage daemon can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +SD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-sd.conf" diff --git a/app-backup/bacula/files/5.0.0/bacula-sd.initd b/app-backup/bacula/files/5.0.0/bacula-sd.initd new file mode 100644 index 0000000..e303b57 --- /dev/null +++ b/app-backup/bacula/files/5.0.0/bacula-sd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting bacula storage daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \ + -- ${SD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula storage daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid + eend $? +} diff --git a/app-backup/bacula/files/5.0.1/bacula-5.0.1-as-needed.patch b/app-backup/bacula/files/5.0.1/bacula-5.0.1-as-needed.patch new file mode 100644 index 0000000..7ad3613 --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-5.0.1-as-needed.patch @@ -0,0 +1,33 @@ +diff -urN bacula-5.0.1.orig/src/findlib/Makefile.in bacula-5.0.1/src/findlib/Makefile.in +--- bacula-5.0.1.orig/src/findlib/Makefile.in 2010-02-24 16:33:48.000000000 +0100 ++++ bacula-5.0.1/src/findlib/Makefile.in 2010-03-22 17:37:43.772805754 +0100 +@@ -59,7 +59,7 @@ + + libbacfind.la: Makefile $(LIBBACFIND_LOBJS) + @echo "Making $@ ..." +- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_CURRENT).$(LIBBACFIND_LT_REVISION).$(LIBBACFIND_LT_AGE) ++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_CURRENT).$(LIBBACFIND_LT_REVISION).$(LIBBACFIND_LT_AGE) -L../lib -lbac $(LIBS) $(OPENSSL_LIBS) + + Makefile: $(srcdir)/Makefile.in $(topdir)/config.status + cd $(topdir) \ +diff -urN bacula-5.0.1.orig/src/lib/Makefile.in bacula-5.0.1/src/lib/Makefile.in +--- bacula-5.0.1.orig/src/lib/Makefile.in 2010-02-24 16:33:48.000000000 +0100 ++++ bacula-5.0.1/src/lib/Makefile.in 2010-03-22 17:37:05.352226188 +0100 +@@ -126,7 +126,7 @@ + + libbac.la: Makefile $(LIBBAC_LOBJS) + @echo "Making $@ ..." +- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_CURRENT).$(LIBBAC_LT_REVISION).$(LIBBAC_LT_AGE) $(WRAPLIBS) $(CAP_LIBS) ++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_CURRENT).$(LIBBAC_LT_REVISION).$(LIBBAC_LT_AGE) $(WRAPLIBS) $(CAP_LIBS) $(LIBS) $(OPENSSL_LIBS) + + libbaccfg.a: $(LIBBACCFG_OBJS) + @echo "Making $@ ..." +@@ -135,7 +135,7 @@ + + libbaccfg.la: Makefile $(LIBBACCFG_LOBJS) + @echo "Making $@ ..." +- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_CURRENT).$(LIBBACCFG_LT_REVISION).$(LIBBACCFG_LT_AGE) ++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_CURRENT).$(LIBBACCFG_LT_REVISION).$(LIBBACCFG_LT_AGE) $(LIBS) $(OPENSSL_LIBS) + + libbacpy.a: $(LIBBACPY_OBJS) + @echo "Making $@ ..." diff --git a/app-backup/bacula/files/5.0.1/bacula-5.0.1-ncurses.patch b/app-backup/bacula/files/5.0.1/bacula-5.0.1-ncurses.patch new file mode 100644 index 0000000..6608e0e --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-5.0.1-ncurses.patch @@ -0,0 +1,39 @@ +diff -urN bacula-5.0.1.orig/autoconf/configure.in bacula-5.0.1/autoconf/configure.in +--- bacula-5.0.1.orig/autoconf/configure.in 2010-02-24 16:33:48.000000000 +0100 ++++ bacula-5.0.1/autoconf/configure.in 2010-03-22 16:51:57.282119344 +0100 +@@ -823,7 +823,7 @@ + if test x$support_conio = xyes; then + AC_CHECK_HEADER(termcap.h, + [ AC_CHECK_LIB(termcap, tgetent, +- [ CONS_LIBS="-ltermcap" ++ [ CONS_LIBS="-lncurses" + CONS_OBJ="conio.o" + CONS_SRC="conio.c" + got_conio="yes" +@@ -899,7 +899,7 @@ + AC_CHECK_HEADER(${with_readline}/readline.h, + [ + AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) +- CONS_LIBS="-lreadline -lhistory -ltermcap" ++ CONS_LIBS="-lreadline -lhistory -lncurses" + got_readline="yes" + ], [ + echo " " +@@ -916,7 +916,7 @@ + AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) + got_readline="yes" + CONS_INC="-I/usr/include/readline" +- CONS_LIBS="-lreadline -ltermcap" ++ CONS_LIBS="-lreadline -lncurses" + ], [ + dnl Did not find standard library, so try Bacula's default + AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h, +@@ -924,7 +924,7 @@ + AC_DEFINE(HAVE_READLINE, 1, [Set to enable readline support]) + got_readline="yes" + CONS_INC="-I${TOP_DIR}/depkgs/readline" +- CONS_LIBS="-lreadline -lhistory -ltermcap" ++ CONS_LIBS="-lreadline -lhistory -lncurses" + CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline" + PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline" + ], [ diff --git a/app-backup/bacula/files/5.0.1/bacula-dir.confd b/app-backup/bacula/files/5.0.1/bacula-dir.confd new file mode 100644 index 0000000..d24a66c --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-dir.confd @@ -0,0 +1,17 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-dir + +# If the database server where you store your bacula catalog +# is on a different machine, please set this to 0. +# Setting it to 1 makes bacula-dir depend on the corresponding +# database service selected at package compile time. +LOCAL_DB=1 + +# Options for the director daemon. +# The director can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +DIR_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-dir.conf" diff --git a/app-backup/bacula/files/5.0.1/bacula-dir.initd b/app-backup/bacula/files/5.0.1/bacula-dir.initd new file mode 100644 index 0000000..bef5003 --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-dir.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + if [ "${LOCAL_DB}" -eq 1 ]; then + need "%database%" + fi + use dns bacula-fd bacula-sd +} + +start() { + ebegin "Starting bacula director" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \ + -- ${DIR_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula director" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid + eend $? +} diff --git a/app-backup/bacula/files/5.0.1/bacula-fd.confd b/app-backup/bacula/files/5.0.1/bacula-fd.confd new file mode 100644 index 0000000..7541946 --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-fd.confd @@ -0,0 +1,8 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-fd + +# Options for the file daemon. +FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf" diff --git a/app-backup/bacula/files/5.0.1/bacula-fd.initd b/app-backup/bacula/files/5.0.1/bacula-fd.initd new file mode 100644 index 0000000..7b158bc --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-fd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting bacula file daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \ + -- ${FD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula file daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid + eend $? +} diff --git a/app-backup/bacula/files/5.0.1/bacula-sd.confd b/app-backup/bacula/files/5.0.1/bacula-sd.confd new file mode 100644 index 0000000..754de76 --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-sd.confd @@ -0,0 +1,11 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Config file for /etc/init.d/bacula-sd + +# Options for the storage daemon. +# The storage daemon can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +SD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-sd.conf" diff --git a/app-backup/bacula/files/5.0.1/bacula-sd.initd b/app-backup/bacula/files/5.0.1/bacula-sd.initd new file mode 100644 index 0000000..e303b57 --- /dev/null +++ b/app-backup/bacula/files/5.0.1/bacula-sd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting bacula storage daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \ + -- ${SD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bacula storage daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid + eend $? +} diff --git a/app-backup/bacula/metadata.xml b/app-backup/bacula/metadata.xml new file mode 100644 index 0000000..e8f3e41 --- /dev/null +++ b/app-backup/bacula/metadata.xml @@ -0,0 +1,21 @@ + + + + app-backup + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + + Disable DB support, and just build a + client + Build (GUI) console program(s) + Disable building of director in 1.38.x and + later + Disable building of storage daemon in 1.38.x + and later + Install support files for logrotate + Install support files for logwatch + + diff --git a/app-cdr/lacie-lightscribe-labeler/Manifest b/app-cdr/lacie-lightscribe-labeler/Manifest new file mode 100644 index 0000000..2234f9e --- /dev/null +++ b/app-cdr/lacie-lightscribe-labeler/Manifest @@ -0,0 +1,12 @@ +AUX lacie-lightscribe-labeler.desktop 284 RMD160 2a817ffccf992427ad171a8e883613ae9ab45eb5 SHA1 4ad1fe6ff99fdbc040ec1e5759918f8a2664493d SHA256 7e9d03a81c0493504e45ceaf9380e1560a2e9bdbbd6e488381989dab0f36399a +MD5 f330842ace8eb4e44910cf37aca4206c files/lacie-lightscribe-labeler.desktop 284 +RMD160 2a817ffccf992427ad171a8e883613ae9ab45eb5 files/lacie-lightscribe-labeler.desktop 284 +SHA256 7e9d03a81c0493504e45ceaf9380e1560a2e9bdbbd6e488381989dab0f36399a files/lacie-lightscribe-labeler.desktop 284 +DIST 4L-1.0-r6.i586.rpm 3603229 RMD160 2ae0a33ae1051c793a623784a5abf04b149c5372 SHA1 929d62f53c208422a972f01c193720ce798f72c0 SHA256 7d6a04ed0ca5d129d992160ede24d59f992293f5cb003578e719a52a92530724 +EBUILD lacie-lightscribe-labeler-1.0.6.ebuild 1779 RMD160 134676ce819020074095ab5eaa59121cd4cab2af SHA1 5ef28079166728cffeb544de9e134e209c27f032 SHA256 038760d1c3a95c973e3ec067d3d02cb787163cb555d1fac1b5ed850712703c96 +MD5 ed4e6882d52923fab8f5df3bf22b51c9 lacie-lightscribe-labeler-1.0.6.ebuild 1779 +RMD160 134676ce819020074095ab5eaa59121cd4cab2af lacie-lightscribe-labeler-1.0.6.ebuild 1779 +SHA256 038760d1c3a95c973e3ec067d3d02cb787163cb555d1fac1b5ed850712703c96 lacie-lightscribe-labeler-1.0.6.ebuild 1779 +MD5 0e4cd58e0396312ddd652a5d9d9e599b files/digest-lacie-lightscribe-labeler-1.0.6 238 +RMD160 4662e3a6990b51d8272ddee13043af392eee94cb files/digest-lacie-lightscribe-labeler-1.0.6 238 +SHA256 d27510941adcbbe5ceb2cf93ba72aae98b21a5fb84460b9e3293693decf7c4cd files/digest-lacie-lightscribe-labeler-1.0.6 238 diff --git a/app-cdr/lacie-lightscribe-labeler/files/digest-lacie-lightscribe-labeler-1.0.6 b/app-cdr/lacie-lightscribe-labeler/files/digest-lacie-lightscribe-labeler-1.0.6 new file mode 100644 index 0000000..70397c4 --- /dev/null +++ b/app-cdr/lacie-lightscribe-labeler/files/digest-lacie-lightscribe-labeler-1.0.6 @@ -0,0 +1,3 @@ +MD5 11fc8b2daeaed2b61a567056413bdefd 4L-1.0-r6.i586.rpm 3603229 +RMD160 2ae0a33ae1051c793a623784a5abf04b149c5372 4L-1.0-r6.i586.rpm 3603229 +SHA256 7d6a04ed0ca5d129d992160ede24d59f992293f5cb003578e719a52a92530724 4L-1.0-r6.i586.rpm 3603229 diff --git a/app-cdr/lacie-lightscribe-labeler/files/lacie-lightscribe-labeler.desktop b/app-cdr/lacie-lightscribe-labeler/files/lacie-lightscribe-labeler.desktop new file mode 100644 index 0000000..b2c57d4 --- /dev/null +++ b/app-cdr/lacie-lightscribe-labeler/files/lacie-lightscribe-labeler.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=LaCie LightScribe Labeler 4L +Comment=LaCie LightScribe Optical Media Labeling Software +Exec=4L-gui +Icon=/usr/share/apps/k3b/icons/hicolor/48x48/actions/cdburn.png +Type=Application +Terminal=false +Encoding=UTF-8 +Categories=Application;AudioVideo;DiscBurning;System diff --git a/app-cdr/lacie-lightscribe-labeler/lacie-lightscribe-labeler-1.0.6.ebuild b/app-cdr/lacie-lightscribe-labeler/lacie-lightscribe-labeler-1.0.6.ebuild new file mode 100644 index 0000000..95a0fda --- /dev/null +++ b/app-cdr/lacie-lightscribe-labeler/lacie-lightscribe-labeler-1.0.6.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit rpm + +DESCRIPTION="LaCie LightScribe Labeler 4L" +HOMEPAGE="http://www.lacie.com/us/products/product.htm?pid=10803" +SRC_URI="http://www.lacie.com/download/drivers/4L-1.0-r6.i586.rpm" +LICENSE="" +SLOT="0" +KEYWORDS="-amd64 ~x86" +IUSE="" +RESTRICT="mirror strip" +DEPEND="" +RDEPEND="virtual/libc + =virtual/libstdc++-3* + sys-devel/gcc + dev-libs/libxml2 + media-libs/freetype + media-libs/fontconfig + sys-libs/zlib + || ( x11-libs/libX11 virtual/x11 ) + x11-libs/libXau + x11-libs/libXcursor + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrender + x11-libs/libXrandr + app-cdr/lightscribe + " + +src_unpack() { + rpm_src_unpack +} + +src_compile() { :; } + +src_install() { + cd ${WORKDIR} + + # we don't like /usr/4L, binary + # stuff shall go to /opt. + dodir /opt/${PN} + insinto /opt/${PN} + exeinto /opt/${PN} + doexe ./usr/4L/4L-cli + doexe ./usr/4L/4L-gui + # 4L-gui looks for translations in /usr/4L + # and the current directory, so we use a + # wrapper script for 4L-gui which changes + # to the installation directory first, so + # 4L-gui can find its translations + { + echo '#!/bin/sh'; + echo "cd /opt/${PN} && exec ./4L-gui" + } >${T}/4L-gui-wrapper.sh + doexe ${T}/4L-gui-wrapper.sh + doexe ./usr/4L/lacie_website.sh + dodir /opt/${PN}/templates + insinto /opt/${PN}/templates + doins ./usr/4L/templates/* + dodir /opt/${PN}/translations + insinto /opt/${PN}/translations + doins ./usr/4L/translations/* + dodoc ./usr/4L/doc/4L_User_Manual.pdf + dosym /opt/${PN}/4L-cli /usr/bin/4L-cli + dosym /opt/${PN}/4L-gui-wrapper.sh /usr/bin/4L-gui + insinto /usr/share/applications/ + doins ${FILESDIR}/${PN}.desktop +} diff --git a/app-cdr/lightscribe-simplelabeler/Manifest b/app-cdr/lightscribe-simplelabeler/Manifest new file mode 100644 index 0000000..4b591ff --- /dev/null +++ b/app-cdr/lightscribe-simplelabeler/Manifest @@ -0,0 +1,12 @@ +AUX lightscribe-simplelabeler.desktop 320 RMD160 024a96981c73269c3938875a2ffc97ae4e1b9ae7 SHA1 f0a5a21e6bdaae22610db2255e9a040ad9489cf0 SHA256 d35285d80eb1c2660cf6e7cca43aaa6bf68b096cdec09321f91ce5f149ded56f +MD5 135ee7497f0415b6159d39d3fcedcaf2 files/lightscribe-simplelabeler.desktop 320 +RMD160 024a96981c73269c3938875a2ffc97ae4e1b9ae7 files/lightscribe-simplelabeler.desktop 320 +SHA256 d35285d80eb1c2660cf6e7cca43aaa6bf68b096cdec09321f91ce5f149ded56f files/lightscribe-simplelabeler.desktop 320 +DIST lightScribeSimpleLabeler-1.4.128.1-linux-2.6-intel.rpm 6730340 RMD160 c8619386fa20b2aab73869ca4bfacfd81120331a SHA1 19a8b9df0fb8e8b1ad5bc050e036489753e58b81 SHA256 b462015f376d68e2d64a8e42a821246df795b1fb0fd7287ed03d21609805afc9 +EBUILD lightscribe-simplelabeler-1.4.128.1.ebuild 5292 RMD160 bf0513bebd138e8a3fb1339700bc814bb5771bb7 SHA1 7aac76ae5f59c0c15ca58225d83e5493a0e7fe0c SHA256 faf12a1a44ee33650e0e9f164ef6373aec4d8a5a36b297ec5da34bbdbe5563cc +MD5 4b655e4aa6c1780f2900547e6ca44e91 lightscribe-simplelabeler-1.4.128.1.ebuild 5292 +RMD160 bf0513bebd138e8a3fb1339700bc814bb5771bb7 lightscribe-simplelabeler-1.4.128.1.ebuild 5292 +SHA256 faf12a1a44ee33650e0e9f164ef6373aec4d8a5a36b297ec5da34bbdbe5563cc lightscribe-simplelabeler-1.4.128.1.ebuild 5292 +MD5 6e6ddd2bbcb56090f867409eaa710d0e files/digest-lightscribe-simplelabeler-1.4.128.1 346 +RMD160 ce221fd375372bb773ce859d1076abd05f97c19b files/digest-lightscribe-simplelabeler-1.4.128.1 346 +SHA256 6488cf622d495a6636de3a4fef428506223687b96f1dd2fb444a2ba3a4206b53 files/digest-lightscribe-simplelabeler-1.4.128.1 346 diff --git a/app-cdr/lightscribe-simplelabeler/files/digest-lightscribe-simplelabeler-1.4.128.1 b/app-cdr/lightscribe-simplelabeler/files/digest-lightscribe-simplelabeler-1.4.128.1 new file mode 100644 index 0000000..5e21ce9 --- /dev/null +++ b/app-cdr/lightscribe-simplelabeler/files/digest-lightscribe-simplelabeler-1.4.128.1 @@ -0,0 +1,3 @@ +MD5 17f609c796a7cc36ad9154ff5505110d lightScribeSimpleLabeler-1.4.128.1-linux-2.6-intel.rpm 6730340 +RMD160 c8619386fa20b2aab73869ca4bfacfd81120331a lightScribeSimpleLabeler-1.4.128.1-linux-2.6-intel.rpm 6730340 +SHA256 b462015f376d68e2d64a8e42a821246df795b1fb0fd7287ed03d21609805afc9 lightScribeSimpleLabeler-1.4.128.1-linux-2.6-intel.rpm 6730340 diff --git a/app-cdr/lightscribe-simplelabeler/files/lightscribe-simplelabeler.desktop b/app-cdr/lightscribe-simplelabeler/files/lightscribe-simplelabeler.desktop new file mode 100644 index 0000000..8f675fc --- /dev/null +++ b/app-cdr/lightscribe-simplelabeler/files/lightscribe-simplelabeler.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=LightScribe SimpleLabeler +Comment=Simple LightScribe Optical Media Labeling Software +Exec=lightscribe-simplelabeler +Icon=/opt/lightscribeApplications/SimpleLabeler/content/images/LabelWizardIcon.png +Type=Application +Terminal=false +Encoding=UTF-8 +Categories=Application;AudioVideo;DiscBurning;System diff --git a/app-cdr/lightscribe-simplelabeler/lightscribe-simplelabeler-1.4.128.1.ebuild b/app-cdr/lightscribe-simplelabeler/lightscribe-simplelabeler-1.4.128.1.ebuild new file mode 100644 index 0000000..61c29e4 --- /dev/null +++ b/app-cdr/lightscribe-simplelabeler/lightscribe-simplelabeler-1.4.128.1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit rpm + +MY_P="lightScribeSimpleLabeler-${PV}" +DESCRIPTION="LightScribe Simple Labeler by HP" +HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/" +LICENSE_URI="http://www.lightscribe.com/downloadSection/linux/lslLicense.html" +SRC_URI="http://www.lightscribe.com/downloadSection/linux/downloads/lsl/${MY_P}-linux-2.6-intel.rpm" +LICENSE="LightScribe-LSL" +SLOT="0" +KEYWORDS="-amd64 ~x86" +IUSE="" +RESTRICT="fetch mirror strip" +DEPEND="" +RDEPEND="virtual/libc + =virtual/libstdc++-3* + sys-devel/gcc + dev-libs/libxml2 + media-libs/freetype + media-libs/fontconfig + media-libs/libpng + media-libs/nas + sys-libs/zlib + x11-libs/libICE + x11-libs/libSM + || ( x11-libs/libX11 virtual/x11 ) + x11-libs/libXau + x11-libs/libXcursor + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrender + x11-libs/libXrandr + x11-libs/libXt + app-cdr/lightscribe + " + +# SimpleLabeler is linked against bundled qt-4.1.2 libraries... +#RDEPEND="${RDEPEND} >=x11-libs/qt-4.2.2" +#pkg_setup() { +# if has_version ">=x11-libs/qt-4.2.2" && ! built_with_use x11-libs/qt qt3support; then +# eerror +# eerror "You need to rebuild x11-libs/qt with USE=qt3support enabled" +# eerror +# die "please rebuild x11-libs/qt with USE=qt3support" +# fi +#} + +pkg_nofetch() { + einfo + einfo "The following steps are necessary to install ${PN}:" + einfo "1. Please agree to the ${PN} license at" + einfo "\t${LICENSE_URI}" + einfo "2. Use the following URL to download the needed files into ${DISTDIR}" + einfo "\t${SRC_URI}" + einfo "3. Re-run the command that brought you here." + einfo +} + +src_unpack() { + rpm_src_unpack +} + +src_compile() { :; } + +src_install() { + cd ${WORKDIR} + + dodir /opt/lightscribeApplications/SimpleLabeler + insinto /opt/lightscribeApplications/SimpleLabeler + doins ./opt/lightscribeApplications/SimpleLabeler/qt.conf + exeinto /opt/lightscribeApplications/SimpleLabeler + doexe ./opt/lightscribeApplications/SimpleLabeler/SimpleLabeler + doexe ./opt/lightscribeApplications/SimpleLabeler/launchBrowser.sh + dodir /opt/lightscribeApplications/SimpleLabeler/content + dodir /opt/lightscribeApplications/SimpleLabeler/content/html + insinto /opt/lightscribeApplications/SimpleLabeler/content/html + doins ./opt/lightscribeApplications/SimpleLabeler/content/html/*.html + dodir /opt/lightscribeApplications/SimpleLabeler/content/html/help + insinto /opt/lightscribeApplications/SimpleLabeler/content/html/help + doins ./opt/lightscribeApplications/SimpleLabeler/content/html/help/*.html + dodir /opt/lightscribeApplications/SimpleLabeler/content/html/help/images + insinto /opt/lightscribeApplications/SimpleLabeler/content/html/help/images + doins ./opt/lightscribeApplications/SimpleLabeler/content/html/help/images/* + dodir /opt/lightscribeApplications/SimpleLabeler/content/html/userMessages + insinto /opt/lightscribeApplications/SimpleLabeler/content/html/userMessages + doins ./opt/lightscribeApplications/SimpleLabeler/content/html/userMessages/* + dodir /opt/lightscribeApplications/SimpleLabeler/content/images + insinto /opt/lightscribeApplications/SimpleLabeler/content/images + doins ./opt/lightscribeApplications/SimpleLabeler/content/images/*.png + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/animations + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/animations/swoosh + insinto /opt/lightscribeApplications/SimpleLabeler/content/images/animations/swoosh + doins ./opt/lightscribeApplications/SimpleLabeler/content/images/animations/swoosh/* + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/borders + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/borders/fullsize + insinto /opt/lightscribeApplications/SimpleLabeler/content/images/borders/fullsize + doins ./opt/lightscribeApplications/SimpleLabeler/content/images/borders/fullsize/* + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/borders/metadata + insinto /opt/lightscribeApplications/SimpleLabeler/content/images/borders/metadata + doins ./opt/lightscribeApplications/SimpleLabeler/content/images/borders/metadata/* + dodir /opt/lightscribeApplications/SimpleLabeler/content/images/borders/thumbnails + insinto /opt/lightscribeApplications/SimpleLabeler/content/images/borders/thumbnails + doins ./opt/lightscribeApplications/SimpleLabeler/content/images/borders/thumbnails/* + dodir /opt/lightscribeApplications/SimpleLabeler/plugins + dodir /opt/lightscribeApplications/SimpleLabeler/plugins/accessible + insinto /opt/lightscribeApplications/SimpleLabeler/plugins/accessible + doins ./opt/lightscribeApplications/SimpleLabeler/plugins/accessible/* + dodir /opt/lightscribeApplications/common/Qt + insinto /opt/lightscribeApplications/common/Qt + doins ./opt/lightscribeApplications/common/Qt/* + dodoc ./opt/lightscribeApplications/lightscribeLicense.rtf + dosym /opt/lightscribeApplications/SimpleLabeler/SimpleLabeler /usr/bin/${PN} + insinto /usr/share/applications/ + doins ${FILESDIR}/${PN}.desktop +} + +pkg_postinst() { + einfo + einfo "You might want to have a look at the LightScribe Free Label Gallery at" + einfo "\thttp://www.lightscribe.com/ideas/labelgallery.aspx" + einfo +} diff --git a/app-cdr/lightscribe/Manifest b/app-cdr/lightscribe/Manifest new file mode 100644 index 0000000..702a96f --- /dev/null +++ b/app-cdr/lightscribe/Manifest @@ -0,0 +1,18 @@ +DIST lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525 RMD160 e803fe21d79ef9478a6b7fab01718b44b77f5617 SHA1 8fa4d951e7af8dee2e983f03191d8d73dcb052a5 SHA256 7924c646e5d03989ca39c958d0cff5d2a0b2d8b6db86a9d81f504f7780cb9572 +DIST lightscribe-1.8.13.1-linux-2.6-intel.rpm 531814 RMD160 db079318e7bf74db25a84c2f9992ac96fd232191 SHA1 d33bf3506638e9e7c447c4389429a2622be29152 SHA256 b685353ade2f8960c511ba6d1c78021bce40c2e6e9e841043788551b149c8d70 +DIST lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747 RMD160 8d92f0da78effe85d3c896780208522151fda930 SHA1 c652fcfb33472322b9e008108736b2bd2bb91ad4 SHA256 56f63b4e26bf566cd1b352970c074c0a1853b49a358fa7488fad13456eea3217 +DIST lightscribePublicSDK-1.8.13.1-linux-2.6-intel.rpm 619749 RMD160 262ab881fcfc5903b68a33848144d0788e7a636b SHA1 ac49a38ec65e20741588665ce5cfaccc07bae62a SHA256 e72e170d3e44770d72a20810f4db922de493605dffcb9ec656405c0fe173876c +EBUILD lightscribe-1.4.142.1.ebuild 2243 RMD160 7e5a19f457c9181e183325d88ec84e435d5af240 SHA1 9c0dba60110508f2f1952bd4f8024e359dddec52 SHA256 c4d20639fbb3a59be78f95729101e21591619577cc61435a31c6ed2bfc064380 +MD5 4c867ac25044da4545b9fcf9948cff58 lightscribe-1.4.142.1.ebuild 2243 +RMD160 7e5a19f457c9181e183325d88ec84e435d5af240 lightscribe-1.4.142.1.ebuild 2243 +SHA256 c4d20639fbb3a59be78f95729101e21591619577cc61435a31c6ed2bfc064380 lightscribe-1.4.142.1.ebuild 2243 +EBUILD lightscribe-1.8.13.1.ebuild 2185 RMD160 2ea06e90b3b344b41e6c0d2c7df8b3af7a686115 SHA1 b6f0e9dcd5f905f3ef86f3ec916155fbf68fd0d9 SHA256 4da9055f8c2277fadc31156e983d0c1d0eaf866bbcb9f857b807ad19c0c4006b +MD5 2e0167bc8d8db7464d0f69f33ba27fcf lightscribe-1.8.13.1.ebuild 2185 +RMD160 2ea06e90b3b344b41e6c0d2c7df8b3af7a686115 lightscribe-1.8.13.1.ebuild 2185 +SHA256 4da9055f8c2277fadc31156e983d0c1d0eaf866bbcb9f857b807ad19c0c4006b lightscribe-1.8.13.1.ebuild 2185 +MD5 01bc59696fedbc860fa99aa130a793c3 files/digest-lightscribe-1.4.142.1 635 +RMD160 ab3d19485df236b17f3910a98bc3a706733593a5 files/digest-lightscribe-1.4.142.1 635 +SHA256 c83ea202f4fd36a4819cbec2c81db0e9fb637732d2858af49f129d03d8179ccd files/digest-lightscribe-1.4.142.1 635 +MD5 ba9478ee95b980c92552d70dc0f84f61 files/digest-lightscribe-1.8.13.1 629 +RMD160 14c223fca5523d1310a665924f357be777b4af3e files/digest-lightscribe-1.8.13.1 629 +SHA256 8579e62157381c3f430bf612a478e233f30bf7d625496a0308ed0d3288b83353 files/digest-lightscribe-1.8.13.1 629 diff --git a/app-cdr/lightscribe/files/digest-lightscribe-1.4.142.1 b/app-cdr/lightscribe/files/digest-lightscribe-1.4.142.1 new file mode 100644 index 0000000..01f0ed4 --- /dev/null +++ b/app-cdr/lightscribe/files/digest-lightscribe-1.4.142.1 @@ -0,0 +1,6 @@ +MD5 4875900e0ba1a127bbe219d42d6c1ace lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525 +RMD160 e803fe21d79ef9478a6b7fab01718b44b77f5617 lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525 +SHA256 7924c646e5d03989ca39c958d0cff5d2a0b2d8b6db86a9d81f504f7780cb9572 lightscribe-1.4.142.1-linux-2.6-intel.rpm 497525 +MD5 933978491dfc1bb23626894ba3d88c27 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747 +RMD160 8d92f0da78effe85d3c896780208522151fda930 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747 +SHA256 56f63b4e26bf566cd1b352970c074c0a1853b49a358fa7488fad13456eea3217 lightscribePublicSDK-1.4.142.1-linux-2.6-intel.rpm 619747 diff --git a/app-cdr/lightscribe/files/digest-lightscribe-1.8.13.1 b/app-cdr/lightscribe/files/digest-lightscribe-1.8.13.1 new file mode 100644 index 0000000..1e71499 --- /dev/null +++ b/app-cdr/lightscribe/files/digest-lightscribe-1.8.13.1 @@ -0,0 +1,6 @@ +MD5 2902865cc20dc38f735fb8767e3708b8 lightscribe-1.8.13.1-linux-2.6-intel.rpm 531814 +RMD160 db079318e7bf74db25a84c2f9992ac96fd232191 lightscribe-1.8.13.1-linux-2.6-intel.rpm 531814 +SHA256 b685353ade2f8960c511ba6d1c78021bce40c2e6e9e841043788551b149c8d70 lightscribe-1.8.13.1-linux-2.6-intel.rpm 531814 +MD5 0c0ea0487ced452a43e2402f65efa0fb lightscribePublicSDK-1.8.13.1-linux-2.6-intel.rpm 619749 +RMD160 262ab881fcfc5903b68a33848144d0788e7a636b lightscribePublicSDK-1.8.13.1-linux-2.6-intel.rpm 619749 +SHA256 e72e170d3e44770d72a20810f4db922de493605dffcb9ec656405c0fe173876c lightscribePublicSDK-1.8.13.1-linux-2.6-intel.rpm 619749 diff --git a/app-cdr/lightscribe/lightscribe-1.4.142.1.ebuild b/app-cdr/lightscribe/lightscribe-1.4.142.1.ebuild new file mode 100644 index 0000000..ccbf465 --- /dev/null +++ b/app-cdr/lightscribe/lightscribe-1.4.142.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit rpm + +DESCRIPTION="LightScribe System Software by HP" +HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/" +LICENSE_URI_LSS="http://www.lightscribe.com/downloadSection/linux/lssLicense.html" +LICENSE_URI_LPSDK="http://www.lightscribe.com/downloadSection/linux/lpsdkLicense.html" +SRC_URI_LSS="http://www.lightscribe.com/downloadSection/linux/downloads/lss/${P}-linux-2.6-intel.rpm" +SRC_URI_LPSDK="http://www.lightscribe.com/downloadSection/linux/downloads/lpSDK/${PN}PublicSDK-${PV}-linux-2.6-intel.rpm" +SRC_URI="${SRC_URI_LSS} sdk? ( ${SRC_URI_LPSDK} )" +LICENSE="LightScribe-LSS LightScribe-LPSDK" +SLOT="0" +KEYWORDS="-amd64 ~x86" +IUSE="sdk" +RESTRICT="fetch mirror strip" +DEPEND="" +RDEPEND="virtual/libc + =virtual/libstdc++-3* + sys-devel/gcc" + +pkg_nofetch() { + einfo + einfo "The following steps are necessary to install ${PN}:" + einfo "1. Please agree to the ${PN} license at" + einfo "\t${LICENSE_URI_LSS}" + if useq sdk; then + einfo " ...and to the ${PN} SDK license at" + einfo "\t${LICENSE_URI_LPSDK}" + fi + einfo "2. Use the following URL to download the needed files into ${DISTDIR}" + einfo "\t${SRC_URI_LSS}" + if useq sdk; then + einfo "\t${SRC_URI_LPSDK}" + fi + einfo "3. Re-run the command that brought you here." + einfo +} + +src_unpack() { + rpm_src_unpack +} + +src_compile() { :; } + +src_install() { + cd ${WORKDIR} + + dodir /etc + insinto /etc + doins ./etc/lightscribe.rc + dodir /usr/lib + dolib.so ./usr/lib/liblightscribe.so.1 + dosym liblightscribe.so.1 /usr/lib/liblightscribe.so + dodir /usr/lib/lightscribe/res + insinto /usr/lib/lightscribe/res + doins ./usr/lib/lightscribe/res/* + dodir /usr/lib/lightscribe/updates + insinto /usr/lib/lightscribe/updates + doins ./usr/lib/lightscribe/updates/* + dodoc ./usr/share/doc/lightscribeLicense.rtf + + if useq sdk; then + dodir /usr/include + insinto /usr/include + doins ./usr/include/* + DOCDESTTREE=sdk dodoc ./usr/share/doc/lightscribe-sdk/docs/* + DOCDESTTREE=sdk dodoc ./usr/share/doc/lightscribe-sdk/linux_public_SDK_license.rtf + DOCDESTTREE=sdk/sample/lsprint dodoc ./usr/share/doc/lightscribe-sdk/sample/lsprint/* + fi +} diff --git a/app-cdr/lightscribe/lightscribe-1.8.13.1.ebuild b/app-cdr/lightscribe/lightscribe-1.8.13.1.ebuild new file mode 100644 index 0000000..f0437ce --- /dev/null +++ b/app-cdr/lightscribe/lightscribe-1.8.13.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit rpm + +DESCRIPTION="LightScribe System Software by HP" +HOMEPAGE="http://www.lightscribe.com/downloadSection/linux/" +LICENSE_URI_LSS="http://www.lightscribe.com/downloadSection/linux/lssLicense.html" +LICENSE_URI_LPSDK="http://www.lightscribe.com/downloadSection/linux/lpsdkLicense.html" +SRC_URI_LSS="http://download.lightscribe.com/ls/${P}-linux-2.6-intel.rpm" +SRC_URI_LPSDK="http://download.lightscribe.com/ls/${PN}PublicSDK-${PV}-linux-2.6-intel.rpm" +SRC_URI="${SRC_URI_LSS} sdk? ( ${SRC_URI_LPSDK} )" +LICENSE="LightScribe-LSS LightScribe-LPSDK" +SLOT="0" +KEYWORDS="-amd64 ~x86" +IUSE="sdk" +RESTRICT="fetch mirror strip" +DEPEND="" +RDEPEND="virtual/libc + =virtual/libstdc++-3* + sys-devel/gcc" + +pkg_nofetch() { + einfo + einfo "The following steps are necessary to install ${PN}:" + einfo "1. Please agree to the ${PN} license at" + einfo "\t${LICENSE_URI_LSS}" + if useq sdk; then + einfo " ...and to the ${PN} SDK license at" + einfo "\t${LICENSE_URI_LPSDK}" + fi + einfo "2. Use the following URL to download the needed files into ${DISTDIR}" + einfo "\t${SRC_URI_LSS}" + if useq sdk; then + einfo "\t${SRC_URI_LPSDK}" + fi + einfo "3. Re-run the command that brought you here." + einfo +} + +src_unpack() { + rpm_src_unpack +} + +src_compile() { :; } + +src_install() { + cd ${WORKDIR} + + dodir /etc + insinto /etc + doins ./etc/lightscribe.rc + dodir /usr/lib + dolib.so ./usr/lib/liblightscribe.so.1 + dosym liblightscribe.so.1 /usr/lib/liblightscribe.so + dodir /usr/lib/lightscribe/res + insinto /usr/lib/lightscribe/res + doins ./usr/lib/lightscribe/res/* + dodir /usr/lib/lightscribe/updates + insinto /usr/lib/lightscribe/updates + doins ./usr/lib/lightscribe/updates/* + dodoc ./usr/share/doc/lightscribeLicense.rtf + + if useq sdk; then + dodir /usr/include + insinto /usr/include + doins ./usr/include/* + DOCDESTTREE=sdk dodoc ./usr/share/doc/lightscribe-sdk/docs/* + DOCDESTTREE=sdk dodoc ./usr/share/doc/lightscribe-sdk/linux_public_SDK_license.rtf + DOCDESTTREE=sdk/sample/lsprint dodoc ./usr/share/doc/lightscribe-sdk/sample/lsprint/* + fi +} diff --git a/app-emulation/xen-tools/ChangeLog b/app-emulation/xen-tools/ChangeLog new file mode 100644 index 0000000..e2706c7 --- /dev/null +++ b/app-emulation/xen-tools/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-emulation/xen-tools +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 26 May 2009; Wolfram Schlich -files/xend.initd-r1, + +files/xend.initd-r2, -xen-tools-3.2.3.ebuild, +xen-tools-3.2.3-r1.ebuild: + fix xend init script + diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest new file mode 100644 index 0000000..74d6944 --- /dev/null +++ b/app-emulation/xen-tools/Manifest @@ -0,0 +1,12 @@ +AUX xen-consoles.logrotate 63 RMD160 035bd8baf1ba68a5525bab4379c0c4e350001a74 SHA1 6f88a4da3349aade6070dfc5c4465e2c00f3e68c SHA256 0da87a4b9094f934e3de937e8ef8d3afc752e76793aa3d730182d0241e118b19 +AUX xen-tools-3.1.0-xen-detect-nopie-fix.patch 385 RMD160 5ad84ac847c1eeeaa7aac2fbcfd3b476ee7c991d SHA1 bd59257c972b7cd976b4b1953ff44a43a1d2b003 SHA256 c8b7a0858001b15ff12cc652977eb7ada06b036a8c593fccac9015ce05c84816 +AUX xen-tools-3.1.3-network-bridge-broadcast.patch 490 RMD160 67a2a7f07e986b0c43f75ade5c073bbcfdae5fca SHA1 53171e6764c6018e529b805a98fa369d2568364b SHA256 1c971a0a81219b8626a25c2d135d51bc8108e7ac839794f356cc349386fe34e3 +AUX xen-tools-3.2.1-qemu-nodocs.patch 1377 RMD160 d20780a6ac4a9f2fee98523edd6701e6bc15951f SHA1 6d7cb96b5fd717291d9d18885bb7a6be869882e4 SHA256 f8dec919bb0187a71217643f302403de7d488729109e21349e5627b3bb569656 +AUX xend.initd-r2 1557 RMD160 397f28691af38acdb3bff1d96fbb8926aa3f77ae SHA1 2ccf9db106629e8bfc956db992bb88160d8cc9c9 SHA256 8b2c11aaf5602a828d1b695ef1706db41371235a85bbc8de037596bc44fefa7f +AUX xendomains-screen.confd 594 RMD160 79c7a3546cf1d3f8558c2120d6e8c93c753e66b9 SHA1 7f9ed2986495d5fa4a6f8b050cd632fde6a19994 SHA256 c4d7ffcdbeccc5e93460e2abbf70d642a78a363d79ccbbce0407f50cace54e0a +AUX xendomains.confd 291 RMD160 75d55db5360da12fc3d721c37001ccbfbb844e52 SHA1 e7be8973a4bcbfc7680258e369b07e2ed097ef49 SHA256 2fac318bb96b357dd185f7729d83c0a0b941799cdb89c24ed83051bb085735dc +AUX xendomains.initd-r1 2808 RMD160 46368e4933160d4e7c9a48c5992b502eba69f287 SHA1 fc5d84cd95f9789c4bb9e5e441246d4b19493ee1 SHA256 a6781ac33d9471ed47bbf119f8d648d154ae35fc76ddfd7d24d7a85217e9538b +DIST xen-3.2.3.tar.gz 6389954 RMD160 3b755b20130c4e4ffdb654b586a3b4377380c63f SHA1 c51835a88070d629759fa64b8352493bc2c9ea25 SHA256 a76272153d6e65b0165f526fbdb2cd8f6432c632c2d259d7d47818b5ca2f5811 +EBUILD xen-tools-3.2.3-r1.ebuild 6648 RMD160 9749e38ad532446a2a5c769f07e4cf88e14935f9 SHA1 eaa760471267eb1150507f458c7ade4f38ce00e4 SHA256 ad156970581640c52a23e272a51e22994302b2307280f35a3a9c5ab00e728072 +MISC ChangeLog 300 RMD160 9c26955b96b6d4202e265fc6c5275611828e0fad SHA1 58fd5df43152758ed45c5c350006026d6122eae5 SHA256 aa9cde7ddd763c23659553e1c4394b9fa93270fad7988ca9b63e3da187b06b87 +MISC metadata.xml 792 RMD160 22e9eea632d96fb0c0ae482c72dfabebc1c0acaa SHA1 a98f0dfd4743f7d3a33833e4f010576c718e53ca SHA256 6e9589982232db6091dad8d45a2c376537372981fc822f8043cb270df7372ab5 diff --git a/app-emulation/xen-tools/files/xen-consoles.logrotate b/app-emulation/xen-tools/files/xen-consoles.logrotate new file mode 100644 index 0000000..c644523 --- /dev/null +++ b/app-emulation/xen-tools/files/xen-consoles.logrotate @@ -0,0 +1,5 @@ +/var/log/xen-consoles/*.log { + rotate 7 + missingok + compress +} diff --git a/app-emulation/xen-tools/files/xen-tools-3.1.0-xen-detect-nopie-fix.patch b/app-emulation/xen-tools/files/xen-tools-3.1.0-xen-detect-nopie-fix.patch new file mode 100644 index 0000000..6515d12 --- /dev/null +++ b/app-emulation/xen-tools/files/xen-tools-3.1.0-xen-detect-nopie-fix.patch @@ -0,0 +1,11 @@ +Index: xen-3.1.0-src/tools/misc/Makefile +=================================================================== +--- xen-3.1.0-src.orig/tools/misc/Makefile ++++ xen-3.1.0-src/tools/misc/Makefile +@@ -45,3 +45,6 @@ clean: + + xenperf: %: %.o Makefile + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl ++ ++xen-detect: %: %.c Makefile ++ $(CC) $(CFLAGS) $(call cc-option,$(CC),-nopie,) -o $@ $< diff --git a/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch b/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch new file mode 100644 index 0000000..f916ece --- /dev/null +++ b/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch @@ -0,0 +1,11 @@ +--- xen-3.1.3/tools/examples/network-bridge.orig 2008-01-31 02:06:54.000000000 -0800 ++++ xen-3.1.3/tools/examples/network-bridge 2008-02-02 17:21:25.000000000 -0800 +@@ -70,7 +70,7 @@ + vif0="vif0.${vifnum}" + + get_ip_info() { +- addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e 's/ .*//'` ++ addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e "s/$1//"` + gateway=`ip route show dev $1 | fgrep default | sed 's/default via //'` + } + diff --git a/app-emulation/xen-tools/files/xen-tools-3.2.1-qemu-nodocs.patch b/app-emulation/xen-tools/files/xen-tools-3.2.1-qemu-nodocs.patch new file mode 100644 index 0000000..d112dd4 --- /dev/null +++ b/app-emulation/xen-tools/files/xen-tools-3.2.1-qemu-nodocs.patch @@ -0,0 +1,36 @@ +Introduce a configure option to disable building of qemu documentation. +Gentoo Bug #192427 + +Index: xen-3.2.1/tools/ioemu/configure +=================================================================== +--- xen-3.2.1.orig/tools/ioemu/configure ++++ xen-3.2.1/tools/ioemu/configure +@@ -214,6 +214,8 @@ for opt do + ;; + --disable-sdl) sdl="no" + ;; ++ --enable-docs) build_docs="yes" ++ ;; + --enable-coreaudio) coreaudio="yes" + ;; + --enable-alsa) alsa="yes" +@@ -295,6 +297,7 @@ echo " --enable-coreaudio enable + echo " --enable-alsa enable ALSA audio driver" + echo " --enable-fmod enable FMOD audio driver" + echo " --enabled-dsound enable DirectSound audio driver" ++echo " --enable-docs enable building of docs (requires texi2html and pod2man)" + echo " --disable-vnc-tls disable TLS encryption for VNC server" + echo " --enable-system enable all system emulation targets" + echo " --disable-system disable all system emulation targets" +@@ -576,8 +579,9 @@ EOF + fi + + # Check if tools are available to build documentation. +-if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then +- build_docs="yes" ++if [ ! -x "`which texi2html`" ] || [ ! -x "`which pod2man`" ]; then ++ echo "Missing texi2html or pod2man, will not build docs" ++ build_docs="no" + fi + + if test "$mingw32" = "yes" ; then diff --git a/app-emulation/xen-tools/files/xend.initd-r2 b/app-emulation/xen-tools/files/xend.initd-r2 new file mode 100644 index 0000000..b34a5a7 --- /dev/null +++ b/app-emulation/xen-tools/files/xend.initd-r2 @@ -0,0 +1,71 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +opts="start stop status restart" + +depend() { + need net + before xendomains sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp +} + +await_daemons_up() { + for ((i=0; i<5; i++)); do + /usr/sbin/xend status && return 0 + sleep 1 + done + return 1 +} + +is_privileged_domain() { + grep -qsE '^control_d$' /proc/xen/capabilities + return $? +} + +start() { + if is_privileged_domain ; then + ebegin "Starting Xen control daemon" + /usr/sbin/xend start && await_daemons_up + eend $? + else + eerror "Can't start xend - this is not a privileged domain." + return 1 + fi +} + +stop() { + if [ "$(xm list 2>/dev/null | wc -l)" -gt 2 ]; then + ebegin "Stopping all Xen domains" + /usr/sbin/xm shutdown --all --wait >/dev/null + eend $? + fi + + ebegin "Stopping Xen control daemon" + /usr/sbin/xend stop + eend $? + + #ebegin "Stopping xenconsoled" + #kill $(/dev/null 2>&1 +} + +using_screen() { + [[ "${SCREEN}" == "yes" || "${SCREEN}" == "YES" ]] +} + +set_screen_cmd() { + screen_cmd="screen -c ${SCREENRC:-/dev/null} -q -r ${SCREEN_NAME:=xen} -X" +} + +start() { + set_screen_cmd + + einfo "Starting Xen domains from ${AUTODIR:=/etc/xen/auto}" + if using_screen ; then + ebegin "Creating screen session to hold domain consoles" + ( screen -c ${SCREENRC:-/dev/null} -d -m -S ${SCREEN_NAME} -t dom0 \ + && ${screen_cmd} zombie dr \ + && logrotate -f /etc/xen/xen-consoles.logrotate \ + && ${screen_cmd} logfile /var/log/xen-consoles/%t.log \ + && ${screen_cmd} logfile flush ${SCREEN_LOG_INTERVAL:-1} \ + && ${screen_cmd} log on \ + && ${screen_cmd} deflog on ) >/dev/null + if [[ $? -ne 0 ]] ; then + eend 1 + return 1 + else + eend + fi + fi + # Create all domains with config files in AUTODIR. + for dom in $(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort); do + name=$(get_domname ${dom}) + if ! is_running ${name} ; then + ebegin " Starting domain ${name}" + if using_screen ; then + ${screen_cmd} screen -t ${name} xm create ${dom} -c + else + xm create --quiet ${dom} + fi + eend $? + else + einfo " Not starting domain ${name} - already running" + fi + done +} + +stop() { + set_screen_cmd + + einfo "Shutting down Xen domains from ${AUTODIR:=/etc/xen/auto}" + # Stop all domains with config files in AUTODIR. + DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)" + + if [[ "$PARALLEL_SHUTDOWN" = "yes" ]] ; then + for dom in $DOMAINS ; do + name=$(get_domname ${dom}) + if is_running ${name} ; then + ebegin " Asking domain ${name} to shutdown in the background..." + xm shutdown --wait ${name} >/dev/null & + else + einfo " Not stopping domain ${name} - not running" + fi + done + einfo " Waiting for shutdown of domains that are still running" + wait + eend $? + else + for dom in $DOMAINS ; do + name=$(get_domname ${dom}) + if is_running ${name} ; then + ebegin " Waiting for domain ${name} to shutdown" + xm shutdown --wait ${name} >/dev/null + eend $? + else + einfo " Not stopping domain ${name} - not running" + fi + done + fi + if using_screen ; then + if ${screen_cmd} sleep 0 >/dev/null 2>&1 ; then + ebegin "Closing screen session ${SCREEN_NAME}" + ${screen_cmd} quit + eend $? + else + eend 0 + fi + fi +} + +status() { + /usr/sbin/xm list +} diff --git a/app-emulation/xen-tools/metadata.xml b/app-emulation/xen-tools/metadata.xml new file mode 100644 index 0000000..1cc8665 --- /dev/null +++ b/app-emulation/xen-tools/metadata.xml @@ -0,0 +1,18 @@ + + + +xen + + Use CFLAGS from /etc/make.conf rather than the + default Xen CFLAGS (not supported) + Enable support for hardware based virtualization (VT-x, + AMD-v + Install the pygrub boot loader + Enable support for running domain U console in an + app-misc/screen session + Enable the ACM/sHype XSM module from IBM + Enable the Flask XSM module from NSA + Build the C libxenapi bindings + + + diff --git a/app-emulation/xen-tools/xen-tools-3.2.3-r1.ebuild b/app-emulation/xen-tools/xen-tools-3.2.3-r1.ebuild new file mode 100644 index 0000000..f161671 --- /dev/null +++ b/app-emulation/xen-tools/xen-tools-3.2.3-r1.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit flag-o-matic eutils multilib + +DESCRIPTION="Xend daemon and tools" +HOMEPAGE="http://xen.org/" +SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" +S="${WORKDIR}/xen-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug screen custom-cflags pygrub hvm" + +CDEPEND="dev-lang/python + sys-libs/zlib + hvm? ( media-libs/libsdl )" + +DEPEND="${CDEPEND} + sys-devel/gcc + dev-lang/perl + app-misc/pax-utils + doc? ( + dev-tex/latex2html + media-gfx/transfig + media-gfx/graphviz + ) + hvm? ( + x11-proto/xproto + net-libs/libvncserver + sys-devel/dev86 + )" + +RDEPEND="${CDEPEND} + sys-apps/iproute2 + net-misc/bridge-utils + screen? ( + app-misc/screen + app-admin/logrotate + ) + || ( sys-fs/udev sys-apps/hotplug )" + +PYTHON_MODNAME="xen grub" + +# hvmloader is used to bootstrap a fully virtualized kernel +# Approved by QA team in bug #144032 +QA_WX_LOAD="usr/lib/xen/boot/hvmloader" + +pkg_setup() { + if ! use x86 && ! has x86 $(get_all_abis) && use hvm; then + eerror "HVM (VT-x and AMD-v) cannot be built on this system. An x86 or" + eerror "an amd64 multilib profile is required. Remove the hvm use flag" + eerror "to build xen-tools on your current profile." + die "USE=hvm is unsupported on this system." + fi + + if [[ -z ${XEN_TARGET_ARCH} ]] ; then + if use x86 && use amd64; then + die "Confusion! Both x86 and amd64 are set in your use flags!" + elif use x86; then + export XEN_TARGET_ARCH="x86_32" + elif use amd64 ; then + export XEN_TARGET_ARCH="x86_64" + else + die "Unsupported architecture!" + fi + fi + + if use doc && ! built_with_use -o dev-tex/latex2html png gif; then + # die early instead of later + eerror "USE=doc requires latex2html with image support. Please add" + eerror "'png' and/or 'gif' to your use flags and re-emerge latex2html" + die "latex2html missing both png and gif flags" + fi + + if use pygrub && ! built_with_use dev-lang/python ncurses; then + eerror "USE=pygrub requires python to be built with ncurses support. Please add" + eerror "'ncurses' to your use flags and re-emerge python" + die "python is missing ncurses flags" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # if the user *really* wants to use their own custom-cflags, let them + if use custom-cflags; then + einfo "User wants their own CFLAGS - removing defaults" + # try and remove all the default custom-cflags + find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ + -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ + -i {} \; + fi + + # Disable hvm support on systems that don't support x86_32 binaries. + if ! use hvm; then + chmod 644 tools/check/check_x11_devel + sed -i -e '/^CONFIG_IOEMU := y$/d' "${S}"/config/*.mk + sed -i -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' "${S}"/tools/Makefile + fi + + if ! use pygrub; then + sed -i -e "/^SUBDIRS-y += pygrub$/d" "${S}"/tools/Makefile + fi + + # Fix network broadcast on bridged networks + epatch "${FILESDIR}/${PN}-3.1.3-network-bridge-broadcast.patch" + + # Fix building small dumb utility called 'xen-detect' on hardened + epatch "${FILESDIR}/${PN}-3.1.0-xen-detect-nopie-fix.patch" + + # Introduce a configure option to disable qemu documentation building, #192427 + epatch "${FILESDIR}/${PN}-3.2.1-qemu-nodocs.patch" +} + +src_compile() { + export VARTEXFONTS="${T}/fonts" + local myopt myconf + use debug && myopt="${myopt} debug=y" + + use custom-cflags || unset CFLAGS + if test-flag-CC -fno-strict-overflow; then + append-flags -fno-strict-overflow + fi + + if use hvm; then + myconf="${myconf} --disable-system --disable-user" + (cd tools/ioemu && econf ${myconf}) || die "configure failured" + fi + + emake -C tools ${myopt} || die "compile failed" + + if use doc; then + sh ./docs/check_pkgs || die "package check failed" + emake -C docs || die "compiling docs failed" + fi + + emake -C docs man-pages || die "make man-pages failed" +} + +src_install() { + local myopt="XEN_PYTHON_NATIVE_INSTALL=1" + + make DESTDIR="${D}" -C tools ${myopt} install \ + || die "install failed" + + # Remove RedHat-specific stuff + rm -rf "${D}"/etc/sysconfig + + if use doc; then + make DESTDIR="${D}" -C docs install || die "install docs failed" + # Rename doc/xen to the Gentoo-style doc/xen-x.y + mv "${D}"/usr/share/doc/{${PN},${PF}} + fi + + doman docs/man?/* + + newinitd "${FILESDIR}"/xend.initd-r2 xend \ + || die "Couldn't install xen.initd" + newconfd "${FILESDIR}"/xendomains.confd xendomains \ + || die "Couldn't install xendomains.confd" + newinitd "${FILESDIR}"/xendomains.initd-r1 xendomains \ + || die "Couldn't install xendomains.initd" + + if use screen; then + cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains + cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ + keepdir /var/log/xen-consoles + fi + + # xend expects these to exist + keepdir /var/run/xenstored /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen + + # for xendomains + keepdir /etc/xen/auto +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + if [[ "$(scanelf -s __guard -q $(type -P python))" ]] ; then + echo + ewarn "xend may not work when python is built with stack smashing protection (ssp)." + ewarn "If 'xm create' fails with '', see bug #141866" + ewarn "This probablem may be resolved as of Xen 3.0.4, if not post in the bug." + fi + + if ! built_with_use dev-lang/python ncurses; then + echo + ewarn "NB: Your dev-lang/python is built without USE=ncurses." + ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py." + fi + + if built_with_use sys-apps/iproute2 minimal; then + echo + ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking" + ewarn "will not work until you rebuild iproute2 without USE=minimal." + fi + + if ! use hvm; then + echo + elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" + elog "support enable the hvm use flag." + elog "An x86 or amd64 multilib system is required to build HVM support." + echo + elog "The ioemu use flag has been removed and replaced with hvm." + fi + + if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then + echo + elog "xensv is broken upstream (Gentoo bug #142011)." + elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed." + fi +} diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest new file mode 100644 index 0000000..9961baf --- /dev/null +++ b/app-emulation/xen/Manifest @@ -0,0 +1,3 @@ +DIST xen-3.2.3.tar.gz 6389954 RMD160 3b755b20130c4e4ffdb654b586a3b4377380c63f SHA1 c51835a88070d629759fa64b8352493bc2c9ea25 SHA256 a76272153d6e65b0165f526fbdb2cd8f6432c632c2d259d7d47818b5ca2f5811 +EBUILD xen-3.2.3.ebuild 2430 RMD160 08120508dceb0cf7fac7462e892be7b34c596c0b SHA1 2476cfa1030f803aabdcbb205705787eb537f56f SHA256 fcc81836b24ae0d680ef45bd2ad235caf7a9e480e632f4caf5c8270ea9da3797 +MISC metadata.xml 573 RMD160 35b656645655f84c3df10be7e2dce0cf710d3511 SHA1 d1229255d32ede85b1d3d1897c4f3b906d15812d SHA256 fef64fa930b9c03cb9f90463f903969fda3ba929fdc69ac62dcef461f0bd7e14 diff --git a/app-emulation/xen/metadata.xml b/app-emulation/xen/metadata.xml new file mode 100644 index 0000000..8f9af95 --- /dev/null +++ b/app-emulation/xen/metadata.xml @@ -0,0 +1,14 @@ + + + +xen + + Use CFLAGS from /etc/make.conf rather than the + default Xen CFLAGS (not supported) + Enable support for PAE kernels (usually x86-32 with >4GB + memory) + Enable the Xen Security Modules (XSM) + Enable the ACM/sHype XSM module from IBM + Enable the Flask XSM module from NSA + + diff --git a/app-emulation/xen/xen-3.2.3.ebuild b/app-emulation/xen/xen-3.2.3.ebuild new file mode 100644 index 0000000..0a650c1 --- /dev/null +++ b/app-emulation/xen/xen-3.2.3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit mount-boot flag-o-matic toolchain-funcs + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" +SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug custom-cflags pae" + +RDEPEND="|| ( sys-boot/grub + sys-boot/grub-static ) + >=sys-kernel/xen-sources-2.6.18" +PDEPEND="~app-emulation/xen-tools-${PV}" + +RESTRICT="test" + +# Approved by QA team in bug #144032 +QA_WX_LOAD="boot/xen-syms-${PV}" + +pkg_setup() { + if [[ -z ${XEN_TARGET_ARCH} ]]; then + if use x86 && use amd64; then + die "Confusion! Both x86 and amd64 are set in your use flags!" + elif use x86; then + export XEN_TARGET_ARCH="x86_32" + elif use amd64; then + export XEN_TARGET_ARCH="x86_64" + else + die "Unsupported architecture!" + fi + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + # if the user *really* wants to use their own custom-cflags, let them + if use custom-cflags; then + einfo "User wants their own CFLAGS - removing defaults" + # try and remove all the default custom-cflags + find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ + -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ + -i {} \; + fi +} + +src_compile() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} pae=y" + + if use custom-cflags; then + filter-flags -fPIE -fstack-protector + replace-flags -O3 -O2 + else + unset CFLAGS + fi + + # Send raw LDFLAGS so that --as-needed works + emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed" +} + +src_install() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} pae=y" + + emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed" +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + if use pae; then + echo + ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" + fi +} diff --git a/app-laptop/acpi4asus/Manifest b/app-laptop/acpi4asus/Manifest new file mode 100644 index 0000000..1b1e368 --- /dev/null +++ b/app-laptop/acpi4asus/Manifest @@ -0,0 +1,2 @@ +AUX kernel23-fix.patch 719 RMD160 0204d29ec10041a184b725e4313942a1f130d1a7 SHA1 32312d53d75b29dbefddce0a5e726a75a656c2f0 SHA256 3d38ae1bdb8d2498a91d3bbc22fd8b417ac949163990a5b4a3bf4161e6e71869 +EBUILD acpi4asus-9999.ebuild 1370 RMD160 8af7f3e60c388c234e456c976f3ada3df480e23d SHA1 05eb0173b909c669b151bbd93d9694eb467c734e SHA256 3116383b19f3819657bd44b8ff6c9a7043e0fa53bec60f82ca4249849b71da05 diff --git a/app-laptop/acpi4asus/acpi4asus-9999.ebuild b/app-laptop/acpi4asus/acpi4asus-9999.ebuild new file mode 100644 index 0000000..c6a5d10 --- /dev/null +++ b/app-laptop/acpi4asus/acpi4asus-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod eutils + +DESCRIPTION="Acpi daemon and kernel module to control ASUS Laptop Hotkeys" +HOMEPAGE="http://acpi4asus.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +S="${WORKDIR}/${PN}" +MODULE_NAMES="asus-laptop(acpi:${S}/driver)" +BUILD_TARGETS=" " + +RDEPEND="sys-power/acpid" + +ECVS_SERVER="acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus" +ECVS_MODULE="acpi4asus" +ECVS_LOCALNAME="${PN}" +ECVS_CVS_COMPRESS="-z3" + +inherit cvs + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KDIR=${KV_DIR}" +} + +src_unpack() { + cvs_src_unpack +} + +src_compile() { + if kernel_is ge 2 6 23 ; then + epatch ${FILESDIR}/kernel23-fix.patch + fi + + linux-mod_src_compile + + cd ${S}/asus_acpid + + emake +} + +src_install() { + linux-mod_src_install + + dobin asus_acpid/asus_acpid + doman asus_acpid/asus_acpid.8 + + dodoc README Changelog + + dodir /usr/share/${PN}/samples + + dodir /usr/share/${PN}/samples/actions + + insinto /usr/share/${PN}/samples/actions + doins samples/actions/*.sh + + dodir /usr/share/${PN}/samples/events + insinto /usr/share/${PN}/samples/events + doins samples/events/* +} + +pkg_postinst() { + linux-mod_pkg_postinst + einfo + einfo "Don't forget to create your ~/.asus_acpi," + einfo "see /usr/share/doc/${PF}/README.gz for details" + einfo +} diff --git a/app-laptop/acpi4asus/files/digest-acpi4asus-9999 b/app-laptop/acpi4asus/files/digest-acpi4asus-9999 new file mode 100644 index 0000000..e69de29 diff --git a/app-laptop/acpi4asus/files/kernel23-fix.patch b/app-laptop/acpi4asus/files/kernel23-fix.patch new file mode 100644 index 0000000..907fb7e --- /dev/null +++ b/app-laptop/acpi4asus/files/kernel23-fix.patch @@ -0,0 +1,23 @@ +diff -ru acpi4asus.o/driver/asus-laptop.c acpi4asus/driver/asus-laptop.c +--- acpi4asus.o/driver/asus-laptop.c 2008-01-08 22:16:26.000000000 +0300 ++++ acpi4asus/driver/asus-laptop.c 2008-01-08 22:16:46.000000000 +0300 +@@ -731,7 +731,7 @@ + lcd_blank(FB_BLANK_POWERDOWN); + } + +- acpi_bus_generate_event(hotk->device, event, ++ acpi_bus_generate_proc_event(hotk->device, event, + hotk->event_count[event % 128]++); + + return; +@@ -1074,8 +1074,8 @@ + } + + #define ASUS_LED_UNREGISTER(object) \ +- if(object##_led.class_dev \ +- && !IS_ERR(object##_led.class_dev)) \ ++ if(object##_led.dev \ ++ && !IS_ERR(object##_led.dev)) \ + led_classdev_unregister(&object##_led) + + static void asus_led_exit(void) diff --git a/app-misc/execwrap/Manifest b/app-misc/execwrap/Manifest new file mode 100644 index 0000000..b9b8fa1 --- /dev/null +++ b/app-misc/execwrap/Manifest @@ -0,0 +1,2 @@ +DIST ExecWrap-0.5.tgz 7980 RMD160 66ed6cf19336ee45964ff5abd0bf0a2452537aa8 SHA1 2545863b9e5cdbae6bf8f4376340b59a98d7425d SHA256 912d8cf63291dd14790e32ef5738077be6b9ce6750e5b004aeb326a4b21e9f4f +EBUILD execwrap-0.5.ebuild 2294 RMD160 f71a413026e2bc97c071d7af98682d482a597a64 SHA1 89e4ba2cc2610393c70c4d763f272af277a6835c SHA256 1e583b5610724df7a07ab7dd0d38cd9b78c63393e7e0333dfc06a6c9722b7790 diff --git a/app-misc/execwrap/execwrap-0.5.ebuild b/app-misc/execwrap/execwrap-0.5.ebuild new file mode 100644 index 0000000..5870e86 --- /dev/null +++ b/app-misc/execwrap/execwrap-0.5.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils toolchain-funcs + +KEYWORDS="~amd64 ~x86" +DESCRIPTION="ExecWrap is a super-user exec wrapper (not only) for the lighttpd web-server" +HOMEPAGE="http://freebsd.unixfreunde.de/sources/" +SRC_URI="http://freebsd.unixfreunde.de/sources/ExecWrap-${PV}.tgz" +LICENSE="BSD" +SLOT="0" +IUSE="lighttpd" + +DEPEND="" +RDEPEND="lighttpd? ( www-servers/lighttpd )" + +pkg_setup() { + einfo + einfo "You can manipulate several configure options of this" + einfo "ebuild through environment variables:" + einfo + einfo "PARENT_UID: UID of the user your parent process runs as (default: 1)" + einfo "TARGET_MIN_UID: Minimum UID allowed to run scripts (default: 1000)" + einfo "TARGET_MIN_GID: Minimum GID allowed to run scripts (default: 100)" + einfo "TARGET_PATH_PREFIX: The prefix required for scripts to be executed (default: /usr/local/)" + einfo + + if use lighttpd; then + local -i lighttpd_uid=$(egetent passwd lighttpd 2>/dev/null | cut -d : -f 3) + if [[ ${lighttpd_uid} > 0 ]]; then + PARENT_UID=${lighttpd_uid} + TARGET_PATH_PREFIX="/var/www/" + einfo "Using values suitable for lighttpd." + einfo + fi + fi + + : ${PARENT_UID:=1} + : ${TARGET_MIN_UID:=1000} + : ${TARGET_MIN_GID:=100} + : ${TARGET_PATH_PREFIX:=/usr/local/} + + einfo "Using PARENT_UID ${PARENT_UID}" + einfo "Using TARGET_MIN_UID ${TARGET_MIN_UID}" + einfo "Using TARGET_MIN_GID ${TARGET_MIN_GID}" + einfo "Using TARGET_PATH_PREFIX ${TARGET_PATH_PREFIX}" + einfo +} + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + sed -i \ + -e "s:^#define PARENT_UID[[:space:]].*$:#define PARENT_UID ${PARENT_UID}:g" \ + -e "s:^#define TARGET_MIN_UID[[:space:]].*$:#define TARGET_MIN_UID ${TARGET_MIN_UID}:g" \ + -e "s:^#define TARGET_MIN_GID[[:space:]].*$:#define TARGET_MIN_GID ${TARGET_MIN_GID}:g" \ + -e "s:^#define TARGET_PATH_PREFIX[[:space:]].*$:#define TARGET_PATH_PREFIX \"${TARGET_PATH_PREFIX}\":g" \ + execwrap_config.h \ + || die "sed failed" +} + +src_compile() { + $(tc-getCC) ${CFLAGS} -o ${PN} ${PN}.c || die "compilation failed" +} + +src_install() { + dobin ${PN} + dodoc README + if use lighttpd; then + fowners root:lighttpd "${ROOT}"usr/bin/${PN} + fperms 4710 "${ROOT}"usr/bin/${PN} + else + fperms 4711 "${ROOT}"usr/bin/${PN} + fi +} diff --git a/app-misc/gen-auth/ChangeLog b/app-misc/gen-auth/ChangeLog new file mode 100644 index 0000000..55b2772 --- /dev/null +++ b/app-misc/gen-auth/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-misc/gen-auth +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 15 Sep 2008; Wolfram Schlich + +gen-auth-20060620.ebuild: + initial import + diff --git a/app-misc/gen-auth/Manifest b/app-misc/gen-auth/Manifest new file mode 100644 index 0000000..acafae1 --- /dev/null +++ b/app-misc/gen-auth/Manifest @@ -0,0 +1,3 @@ +DIST gen-auth.20060620.0 14774 RMD160 ec570451c53d8b487df776f31509c10cab958952 SHA1 650a3efaaa1a764dd1a6bde1ded4f3869500bbe9 SHA256 831cbe8a56944fd0a1423b7108f630de77e98a134c52825bfb6017b99beb1085 +EBUILD gen-auth-20060620.ebuild 550 RMD160 9696892df8d05a4dff575d547e61afdf8388f013 SHA1 f34775a1c936a3ba131235d8d02b4d59d659b1dd SHA256 a5451dcfa4d9af3d82b715c12b3333c38b8e01f8dd63b7e4195144e219107a57 +MISC ChangeLog 218 RMD160 636a9dd76dc19a2d8f1e403f1419eea18091a1d3 SHA1 bdb8c7e7ea613d2fa301446493d92dffdbaaf523 SHA256 f3a28c47e266d6e249d21603bf2e18f0f5712d64754eb93194001b16a93c68d8 diff --git a/app-misc/gen-auth/gen-auth-20060620.ebuild b/app-misc/gen-auth/gen-auth-20060620.ebuild new file mode 100644 index 0000000..e4f73e5 --- /dev/null +++ b/app-misc/gen-auth/gen-auth-20060620.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV="${PV}.0" +IUSE="" +DESCRIPTION="generate and decode SMTP authentication strings" +HOMEPAGE="http://jetmore.org/john/code/#gen-auth" +SRC_URI="http://jetmore.org/john/code/${PN}.${MY_PV}" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RDEPEND="dev-lang/perl + virtual/perl-MIME-Base64" +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${A}" "${S}"/gen-auth.pl +} + +src_compile() { + : +} + +src_install() { + dobin "${S}"/gen-auth.pl +} diff --git a/app-misc/klock/Manifest b/app-misc/klock/Manifest new file mode 100644 index 0000000..0fe6271 --- /dev/null +++ b/app-misc/klock/Manifest @@ -0,0 +1,8 @@ +DIST klock-1.tar.bz2 2101 RMD160 97b840083793aa0bf5d77f86e9d75639451f7003 SHA1 d7c0671a5488f847a1f735ffbafe85c03d8b198d SHA256 fdda123590efd94dc7ed787427bd8bd864d88809cd5218203f5a0706d137a392 +EBUILD klock-1.ebuild 539 RMD160 85439779dcae3ecf83cc621b5d34772e32672c5b SHA1 b861733ebe3d856fa09dbefab0c769ec3aa050e9 SHA256 6685bad1bf533bc20765cb04c10fe3c1ba0d687f400e8f9430adcfb97c6c04d5 +MD5 aff07689f9596413516df6e0738acbea klock-1.ebuild 539 +RMD160 85439779dcae3ecf83cc621b5d34772e32672c5b klock-1.ebuild 539 +SHA256 6685bad1bf533bc20765cb04c10fe3c1ba0d687f400e8f9430adcfb97c6c04d5 klock-1.ebuild 539 +MD5 076b47299e9bd490c40071eb9f743ecb files/digest-klock-1 220 +RMD160 43d92059a329ac3e8f61ca39f261fa8f531f2a0e files/digest-klock-1 220 +SHA256 d4b6365e74c589fe5af27ab246573a314ca779bd579a1e0d48891224fbf8666e files/digest-klock-1 220 diff --git a/app-misc/klock/files/digest-klock-1 b/app-misc/klock/files/digest-klock-1 new file mode 100644 index 0000000..7725b9a --- /dev/null +++ b/app-misc/klock/files/digest-klock-1 @@ -0,0 +1,3 @@ +MD5 6e037d8cf967f66ee3913f9f23647e93 klock-1.tar.bz2 2101 +RMD160 97b840083793aa0bf5d77f86e9d75639451f7003 klock-1.tar.bz2 2101 +SHA256 fdda123590efd94dc7ed787427bd8bd864d88809cd5218203f5a0706d137a392 klock-1.tar.bz2 2101 diff --git a/app-misc/klock/klock-1.ebuild b/app-misc/klock/klock-1.ebuild new file mode 100644 index 0000000..5a76f57 --- /dev/null +++ b/app-misc/klock/klock-1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs + +IUSE="" +DESCRIPTION="display a clock using ANSI escape sequences" +HOMEPAGE="http://members.lycos.nl/jupp/" +SRC_URI="http://dev.gentoo.org/~wschlich/src/app-misc/klock/klock-1.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~amd64" +DEPEND="virtual/libc" + +src_compile() { + emake CC=$(tc-getCC) || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" +} diff --git a/app-shells/bashinator/ChangeLog b/app-shells/bashinator/ChangeLog new file mode 100644 index 0000000..c755160 --- /dev/null +++ b/app-shells/bashinator/ChangeLog @@ -0,0 +1,30 @@ +# ChangeLog for app-shells/bashinator +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 13 May 2010; Wolfram Schlich +bashinator-0.5.ebuild: + version bump + + 08 Oct 2009; Wolfram Schlich +bashinator-0.4.ebuild: + version bump + + 05 Oct 2009; Wolfram Schlich + +bashinator-0.3.1.ebuild: + version bump, fixes a bash version number comparison bug + + 28 May 2009; Wolfram Schlich -bashinator-0.2.ebuild, + +bashinator-0.3.ebuild: + version bump + + 28 May 2009; Wolfram Schlich -bashinator-0.1.ebuild, + +bashinator-0.2.ebuild: + version bump + + 27 May 2009; Wolfram Schlich -bashinator-0.ebuild, + +bashinator-0.1.ebuild: + version bump + + 27 May 2009; Wolfram Schlich +metadata.xml, + +bashinator-0.ebuild: + initial import + diff --git a/app-shells/bashinator/Manifest b/app-shells/bashinator/Manifest new file mode 100644 index 0000000..05b4509 --- /dev/null +++ b/app-shells/bashinator/Manifest @@ -0,0 +1,10 @@ +DIST bashinator-0.3.1.tar.bz2 9255 RMD160 d46009f280857b5d3cdf362a5172bd2efac7be04 SHA1 e3edefc9e5c97fd0bb81f4245674e300bc7e43c1 SHA256 861231107f498f5c3e930bd97bbcf00553ad36b0d28ec16335a1642c5c61611c +DIST bashinator-0.3.tar.bz2 8954 RMD160 62d5417527f91ba089b8fd7b41c1f4b5abe314c6 SHA1 f53e7f318e62d895c51d3154a961577988760ba5 SHA256 118bb3287bb0c8b3c9a40488680e0093d51e66813462cd57a7143be9d2057fa5 +DIST bashinator-0.4.tar.bz2 10314 RMD160 16f0cc7c4d73655c218a1b43cec4a803ddd1d0df SHA1 d0a6ebcbe134af287c1d79023503df1e095dd28b SHA256 37ab18a995103a95659902b348af06dc33d30ff828e9a68bcd30dd0d2f12b3e5 +DIST bashinator-0.5.tar.bz2 11270 RMD160 96300f8f701f4bb3d06eaa0be9cf46a5068cfdaf SHA1 9ad2e2eab1af2c5da2e3c465a9281ae280b52b89 SHA256 c04ad851bc85e3228e847a901823c37c9499e22b61f920b8a66eaeacbc5821c8 +EBUILD bashinator-0.3.1.ebuild 549 RMD160 8ffd0b3a3b541a532259c4125f174380f03c57a4 SHA1 77b4e963dc5b2cee45cf33cefeb2231726ee4ea0 SHA256 fff68b62d1182eca8562259fdd50f741b042e2504b3c32de4b4c1538928def3d +EBUILD bashinator-0.3.ebuild 549 RMD160 8ffd0b3a3b541a532259c4125f174380f03c57a4 SHA1 77b4e963dc5b2cee45cf33cefeb2231726ee4ea0 SHA256 fff68b62d1182eca8562259fdd50f741b042e2504b3c32de4b4c1538928def3d +EBUILD bashinator-0.4.ebuild 566 RMD160 fcd145424d54461708f000f3cf79239da9588ffd SHA1 95bf142a4aa1d48446dc0b8b0b2ac7591712eaa8 SHA256 d85c7ed103d5659bb6d535042b69b238a6fca7410a538268142315787b4173c5 +EBUILD bashinator-0.5.ebuild 566 RMD160 04322c14dccac159aa5cfbe58eae169160659a74 SHA1 33abadcd9b1a5e8321639e47e56ac8e882966c73 SHA256 930127181d56a008b7651ea4f53cc23c6763db09e845d5fea0134e1584d6f3aa +MISC ChangeLog 914 RMD160 34c35b3dfa1885f2aab0f7b37868c89d186a945c SHA1 09b92ad49acc45c76869ec7daafadcd9681a0359 SHA256 28bbbd61f77d844252b5492649e708951c86ba9f54437e6885af0bf932364841 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-shells/bashinator/bashinator-0.3.1.ebuild b/app-shells/bashinator/bashinator-0.3.1.ebuild new file mode 100644 index 0000000..b3533b2 --- /dev/null +++ b/app-shells/bashinator/bashinator-0.3.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit versionator + +DESCRIPTION="A bash shell script framework" +HOMEPAGE="http://www.bashinator.org" + +SRC_URI="http://www.bashinator.org/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="$(get_major_version)" + +KEYWORDS="amd64 x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-apps/coreutils" + +src_compile() { :; } + +src_install() { + insinto /usr/lib + doins bashinator.lib.${SLOT}.sh + docinto example + PORTAGE_COMPRESS= dodoc example/* +} diff --git a/app-shells/bashinator/bashinator-0.3.ebuild b/app-shells/bashinator/bashinator-0.3.ebuild new file mode 100644 index 0000000..b3533b2 --- /dev/null +++ b/app-shells/bashinator/bashinator-0.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit versionator + +DESCRIPTION="A bash shell script framework" +HOMEPAGE="http://www.bashinator.org" + +SRC_URI="http://www.bashinator.org/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="$(get_major_version)" + +KEYWORDS="amd64 x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-apps/coreutils" + +src_compile() { :; } + +src_install() { + insinto /usr/lib + doins bashinator.lib.${SLOT}.sh + docinto example + PORTAGE_COMPRESS= dodoc example/* +} diff --git a/app-shells/bashinator/bashinator-0.4.ebuild b/app-shells/bashinator/bashinator-0.4.ebuild new file mode 100644 index 0000000..eafa41f --- /dev/null +++ b/app-shells/bashinator/bashinator-0.4.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit versionator + +DESCRIPTION="A bash shell script framework" +HOMEPAGE="http://www.bashinator.org" + +SRC_URI="http://www.bashinator.org/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="$(get_major_version)" + +KEYWORDS="amd64 x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-apps/coreutils" + +src_compile() { :; } + +src_install() { + insinto /usr/lib + doins bashinator.lib.${SLOT}.sh + dodoc ChangeLog + docinto example + PORTAGE_COMPRESS= dodoc example/* +} diff --git a/app-shells/bashinator/bashinator-0.5.ebuild b/app-shells/bashinator/bashinator-0.5.ebuild new file mode 100644 index 0000000..b525f75 --- /dev/null +++ b/app-shells/bashinator/bashinator-0.5.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit versionator + +DESCRIPTION="A bash shell script framework" +HOMEPAGE="http://www.bashinator.org" + +SRC_URI="http://www.bashinator.org/releases/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="$(get_major_version)" + +KEYWORDS="amd64 x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-apps/coreutils" + +src_compile() { :; } + +src_install() { + insinto /usr/lib + doins bashinator.lib.${SLOT}.sh + dodoc ChangeLog + docinto example + PORTAGE_COMPRESS= dodoc example/* +} diff --git a/app-shells/bashinator/metadata.xml b/app-shells/bashinator/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-shells/bashinator/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/app-shells/pdsh/ChangeLog b/app-shells/pdsh/ChangeLog new file mode 100644 index 0000000..4184bbb --- /dev/null +++ b/app-shells/pdsh/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for app-shells/pdsh +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 12 May 2010; Wolfram Schlich + -files/pdsh-2.14-gcc-4.3-unistd.h.patch, + -files/pdsh-2.14-glibc-2.8-ARG_MAX.patch, + +files/pdsh-2.18-unbundle-libtool.patch, -pdsh-2.16-r9999.ebuild, + +pdsh-2.18-r9999.ebuild: + version bump + + 23 Jul 2008; Wolfram Schlich pdsh-2.16-r9999.ebuild: + Mark ebuild stable + + 03 Jul 2008; Wolfram Schlich + +files/pdsh-2.14-gcc-4.3-unistd.h.patch, + +files/pdsh-2.14-glibc-2.8-ARG_MAX.patch, -pdsh-2.14-r1.ebuild, + +pdsh-2.16-r9999.ebuild: + version bump + diff --git a/app-shells/pdsh/Manifest b/app-shells/pdsh/Manifest new file mode 100644 index 0000000..44f0778 --- /dev/null +++ b/app-shells/pdsh/Manifest @@ -0,0 +1,4 @@ +AUX pdsh-2.18-unbundle-libtool.patch 1738 RMD160 d39cc9886a64743ba390d0f5861cf263cb7ee588 SHA1 146b45eb53a4f1674e18c122a72f457ab9b6188b SHA256 72253852315ea3c19dffa9d62b5e280efffc32d64473c82b66d913db7216f349 +DIST pdsh-2.18.tar.bz2 453729 RMD160 41c1309bf4090a8dc936435499a352d585900fd7 SHA1 120f1c83490b56c7f695d8bf9feb96bcfb75e7e3 SHA256 8c94acb17b4af8a9f553db180b4d5745c9c98844a5dc070e2ce80590e8e8a539 +EBUILD pdsh-2.18-r9999.ebuild 1736 RMD160 298b960d0f10e29a75b3afc09b4dfb83547613be SHA1 74cd1bbb47b023b10fcb4369d96b3d8befa67976 SHA256 68032b3a71449fc0887e2a163ea03ff64434bacd76a8b19f1feae3d21d729ad9 +MISC ChangeLog 671 RMD160 a92d19ca6eb376d23728592675a27f83c0088ec6 SHA1 d953fb1dcfd662f68392aad6e5ed167ebfe6a4ed SHA256 85b93084b4b41f9023b6d99331bb7d085f5bdfb3af63bfb1e2e3fb908de8c3ba diff --git a/app-shells/pdsh/files/pdsh-2.18-unbundle-libtool.patch b/app-shells/pdsh/files/pdsh-2.18-unbundle-libtool.patch new file mode 100644 index 0000000..e73fb12 --- /dev/null +++ b/app-shells/pdsh/files/pdsh-2.18-unbundle-libtool.patch @@ -0,0 +1,56 @@ +From d055c4e9e2d414c9d51f7a6f2cf51cedfc79260f Mon Sep 17 00:00:00 2001 +From: Justin Bronder +Date: Tue, 6 Apr 2010 11:48:28 -0400 +Subject: [PATCH] unbundle libtool + +Bundled libltdl is vulnerable, CVE-2009-3736. +Patch grabbed from Debian: +http://ftp.de.debian.org/debian/pool/main/p/pdsh/pdsh_2.18-6.debian.tar.gz +--- + configure.ac | 6 ++++-- + src/pdsh/Makefile.am | 5 ++--- + 2 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2680344..196356b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -38,8 +38,10 @@ AC_DEBUG + # Libtool and ltld.[ch] support + # + AC_LIBTOOL_DLOPEN +-AC_PROG_LIBTOOL +-AC_LIB_LTDL ++LT_INIT ++AC_SUBST(LT_CURRENT) ++AC_SUBST(LT_REVISION) ++AC_SUBST(LT_AGE) + + AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes") + +diff --git a/src/pdsh/Makefile.am b/src/pdsh/Makefile.am +index dfc48a3..beac854 100644 +--- a/src/pdsh/Makefile.am ++++ b/src/pdsh/Makefile.am +@@ -14,8 +14,7 @@ if WITH_STATIC_MODULES + MODULE_LIBS = $(top_builddir)/src/modules/libmods.la + else + MODULE_FLAGS = -export-dynamic $(AIX_PDSH_LDFLAGS) +-LTDL_FILES = ltdl.h ltdl.c +-LTDL_LDADD = $(LIBADD_DL) ++LTDL_LDADD = $(LIBADD_DL) -lltdl + endif + + pdsh_LDADD = $(READLINE_LIBS) $(LTDL_LDADD) +@@ -25,7 +24,7 @@ pdsh_LDFLAGS = $(MODULE_LIBS) $(MODULE_FLAGS) \ + pdsh_inst_LDADD = $(pdsh_LDADD) + pdsh_inst_LDFLAGS = $(pdsh_LDFLAGS) + +-pdsh_SOURCES = $(PDSH_SOURCES) $(LTDL_FILES) ++pdsh_SOURCES = $(PDSH_SOURCES) + pdsh_inst_SOURCES = $(pdsh_SOURCES) + nodist_pdsh_SOURCES = testconfig.c + nodist_pdsh_inst_SOURCES = config.c +-- +1.6.6.2 + diff --git a/app-shells/pdsh/pdsh-2.18-r9999.ebuild b/app-shells/pdsh/pdsh-2.18-r9999.ebuild new file mode 100644 index 0000000..da1a67f --- /dev/null +++ b/app-shells/pdsh/pdsh-2.18-r9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/pdsh/pdsh-2.18-r1.ebuild,v 1.3 2010/04/22 17:08:14 ssuominen Exp $ + +EAPI="2" + +inherit eutils autotools + +DESCRIPTION="A high-performance, parallel remote shell utility." +HOMEPAGE="https://computing.llnl.gov/linux/pdsh.html" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="crypt readline rsh" +RDEPEND="crypt? ( net-misc/openssh ) + rsh? ( net-misc/netkit-rsh ) + readline? ( sys-libs/readline )" +DEPEND="${RDEPEND}" + +# Feel free to debug the test suite. Running the tests +# by hand instead of using pdsh.exp seems to print out +# what is expected, so the error is most likely in the +# testsuite itself. +# You'll also need dev-util/dejagnu +RESTRICT="test" + +pkg_setup() { + local m + local valid_modules=":xcpu:ssh:exec:qshell:genders:nodeupdown:mrsh:mqshell:dshgroups:netgroup:" + + PDSH_MODULE_LIST="${PDSH_MODULE_LIST:-netgroup}" + MODULE_CONFIG="" + for m in ${PDSH_MODULE_LIST}; do + if [[ "${valid_modules}" == *:${m}:* ]]; then + MODULE_CONFIG="${MODULE_CONFIG} --with-${m}" + fi + done + + elog "Building ${PF} with the following modules:" + elog " ${PDSH_MODULE_LIST}" + elog "This list can be changed in /etc/make.conf by setting" + elog "PDSH_MODULE_LIST=\"module1 module2...\"" +} + +src_prepare() { + epatch "${FILESDIR}"/pdsh-2.18-unbundle-libtool.patch + eautoreconf +} + +src_configure() { + econf ${MODULE_CONFIG} \ + --with-machines \ + --with-dshgroups \ + $(use_with crypt ssh) \ + $(use_with rsh) \ + $(use_with readline) \ + || die "configure failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} diff --git a/app-text/multitail/Manifest b/app-text/multitail/Manifest new file mode 100644 index 0000000..3465aab --- /dev/null +++ b/app-text/multitail/Manifest @@ -0,0 +1,8 @@ +DIST multitail-4.2.0.tgz 131431 RMD160 c49c60b83e6df4d3f35665014b8f05941f3cbe8f SHA1 640b664b744af9fe718be3e3a298a81d6e9105c4 SHA256 4ed1fc2c73538ac0fbbb895b1727218e230ceec8a0f670f34fcf37c793ab681e +EBUILD multitail-4.2.0.ebuild 640 RMD160 de9a0a38fa5f2ca5ca1051ce275eb6480b479525 SHA1 5f397e5e88ec281f03eafd0112d136f458ce08ea SHA256 0436519409563e9e625279f4384268e79acd0cea9106102d3d3da555e8438b68 +MD5 02ca2249fee57d1eb09584d59d684a2e multitail-4.2.0.ebuild 640 +RMD160 de9a0a38fa5f2ca5ca1051ce275eb6480b479525 multitail-4.2.0.ebuild 640 +SHA256 0436519409563e9e625279f4384268e79acd0cea9106102d3d3da555e8438b68 multitail-4.2.0.ebuild 640 +MD5 44866a7f01e3c661b6865e5eb556b408 files/digest-multitail-4.2.0 238 +RMD160 1c43b9318132262519138c2442cb44c21c811be7 files/digest-multitail-4.2.0 238 +SHA256 6397e4f4cccd5a912b4b4b79ee5ffb6d50df19158da5bb6c5860c11138aada99 files/digest-multitail-4.2.0 238 diff --git a/app-text/multitail/files/digest-multitail-4.2.0 b/app-text/multitail/files/digest-multitail-4.2.0 new file mode 100644 index 0000000..3e1efa7 --- /dev/null +++ b/app-text/multitail/files/digest-multitail-4.2.0 @@ -0,0 +1,3 @@ +MD5 4a5bd73d166973b117083ed513a9246e multitail-4.2.0.tgz 131431 +RMD160 c49c60b83e6df4d3f35665014b8f05941f3cbe8f multitail-4.2.0.tgz 131431 +SHA256 4ed1fc2c73538ac0fbbb895b1727218e230ceec8a0f670f34fcf37c793ab681e multitail-4.2.0.tgz 131431 diff --git a/app-text/multitail/multitail-4.2.0.ebuild b/app-text/multitail/multitail-4.2.0.ebuild new file mode 100644 index 0000000..385f4fa --- /dev/null +++ b/app-text/multitail/multitail-4.2.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit flag-o-matic + +DESCRIPTION="Tail with multiple windows." +HOMEPAGE="http://www.vanheusden.com/multitail/index.html" +SRC_URI="http://www.vanheusden.com/multitail/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="debug" + +DEPEND="virtual/libc + sys-libs/ncurses" + +src_compile() { + use debug && append-flags "-D_DEBUG" + emake all || die "make failed" +} + +src_install () { + dobin multitail + insinto /etc + doins multitail.conf + dodoc Changes INSTALL license.txt readme.txt + dohtml manual.html + doman multitail.1 +} diff --git a/dev-libs/eventlog/Manifest b/dev-libs/eventlog/Manifest new file mode 100644 index 0000000..192f016 --- /dev/null +++ b/dev-libs/eventlog/Manifest @@ -0,0 +1,8 @@ +DIST eventlog-0.2.6+20071204.tar.gz 326868 RMD160 8de5155203ae836ee453262a4795e32d76d006ff SHA1 1cedf932f66dbe6cb8eadd61d98cc2d54944917f SHA256 0451c8ae136eea76b192b3f0948268e59fdbc055699efe87c655ab1892534234 +EBUILD eventlog-0.2.6_p20071204.ebuild 759 RMD160 7df22e1586f6aa178dab020d9ffee41f1cfa5a8c SHA1 f82550d9bdd40c87de1641ec171af0a7c44b3b4f SHA256 04b10a30e9994c0584f2712cd61751ef01634cac471909984045c1daffea93c2 +MD5 0cc2579e9357791dcae32a738741ebf7 eventlog-0.2.6_p20071204.ebuild 759 +RMD160 7df22e1586f6aa178dab020d9ffee41f1cfa5a8c eventlog-0.2.6_p20071204.ebuild 759 +SHA256 04b10a30e9994c0584f2712cd61751ef01634cac471909984045c1daffea93c2 eventlog-0.2.6_p20071204.ebuild 759 +MD5 c1b5481e8a272afe8e9947d948965f51 files/digest-eventlog-0.2.6_p20071204 271 +RMD160 e08fbd8460116cde269768c5ddec817da1914296 files/digest-eventlog-0.2.6_p20071204 271 +SHA256 1c09bd8a2f8579154af1f560d65a39b7308492c23d5797ddbc20794e09a9f384 files/digest-eventlog-0.2.6_p20071204 271 diff --git a/dev-libs/eventlog/eventlog-0.2.6_p20071204.ebuild b/dev-libs/eventlog/eventlog-0.2.6_p20071204.ebuild new file mode 100644 index 0000000..f12d191 --- /dev/null +++ b/dev-libs/eventlog/eventlog-0.2.6_p20071204.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit libtool eutils + +MY_P=${P/_p/+} +DESCRIPTION="Support library for syslog-ng" +HOMEPAGE="http://www.balabit.com/products/syslog_ng/" +#SRC_URI="http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src-snapshot/${MY_P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + epunt_cxx + elibtoolize +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS CREDITS ChangeLog NEWS PORTS README +} diff --git a/dev-libs/eventlog/files/digest-eventlog-0.2.6_p20071204 b/dev-libs/eventlog/files/digest-eventlog-0.2.6_p20071204 new file mode 100644 index 0000000..659e7cc --- /dev/null +++ b/dev-libs/eventlog/files/digest-eventlog-0.2.6_p20071204 @@ -0,0 +1,3 @@ +MD5 67186cdb3e88047ecf6b296a9dc0e3d5 eventlog-0.2.6+20071204.tar.gz 326868 +RMD160 8de5155203ae836ee453262a4795e32d76d006ff eventlog-0.2.6+20071204.tar.gz 326868 +SHA256 0451c8ae136eea76b192b3f0948268e59fdbc055699efe87c655ab1892534234 eventlog-0.2.6+20071204.tar.gz 326868 diff --git a/dev-perl/Exception-Class-DBI/ChangeLog b/dev-perl/Exception-Class-DBI/ChangeLog new file mode 100644 index 0000000..541e3d3 --- /dev/null +++ b/dev-perl/Exception-Class-DBI/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-perl/Exception-Class-DBI +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 03 Aug 2009; Wolfram Schlich +metadata.xml, + +Exception-Class-DBI-1.00.ebuild: + initial import + diff --git a/dev-perl/Exception-Class-DBI/Exception-Class-DBI-1.00.ebuild b/dev-perl/Exception-Class-DBI/Exception-Class-DBI-1.00.ebuild new file mode 100644 index 0000000..92a27f5 --- /dev/null +++ b/dev-perl/Exception-Class-DBI/Exception-Class-DBI-1.00.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +MODULE_AUTHOR=DWHEELER +inherit perl-module + +DESCRIPTION="DBI Exception objects" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="dev-perl/Exception-Class" +DEPEND="${RDEPEND} + >=virtual/perl-Module-Build-0.28" + +SRC_TEST="do" diff --git a/dev-perl/Exception-Class-DBI/Manifest b/dev-perl/Exception-Class-DBI/Manifest new file mode 100644 index 0000000..0765711 --- /dev/null +++ b/dev-perl/Exception-Class-DBI/Manifest @@ -0,0 +1,4 @@ +DIST Exception-Class-DBI-1.00.tar.gz 12054 RMD160 6932a8a84e79458258a0b9d8320fac527712d870 SHA1 64890e28662cffbbdbd4a8384879f690c9b53bdf SHA256 5a88a3303131e14eb41315728ac2f0370eae46e864b8762f6f05eaa179eecd2e +EBUILD Exception-Class-DBI-1.00.ebuild 380 RMD160 5b7cd41ccd7a27eb884074585977e561d2352ebf SHA1 1b2d63fcb7011240b9fbdc0a4fa15f0bfc549708 SHA256 e1d28ecdeb2287039de02067905f2cd7cb965c1d09d4909a92a37c8d0ce68f52 +MISC ChangeLog 251 RMD160 42af9a1f63881019f1d6e6751a90ddacd8a823c1 SHA1 52ecfccdf30ad1b67b2cee7f196d636d196c4e71 SHA256 627b2cf5f032838a924ab418e9555a093908c5137dc7aa441ec26e94692a09ee +MISC metadata.xml 306 RMD160 f1a137ada6fd6c5f77745d9a35b5ac5e7378190c SHA1 15f52896cbd26a1f148cad69f1d5116bb8699217 SHA256 6bd24d2166b7158c69c1c76ea7ef7f8be1846432e117aec7e6e8963193cd57cd diff --git a/dev-perl/Exception-Class-DBI/metadata.xml b/dev-perl/Exception-Class-DBI/metadata.xml new file mode 100644 index 0000000..1b334d2 --- /dev/null +++ b/dev-perl/Exception-Class-DBI/metadata.xml @@ -0,0 +1,10 @@ + + + + no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/dev-perl/Exception-Class-TryCatch/ChangeLog b/dev-perl/Exception-Class-TryCatch/ChangeLog new file mode 100644 index 0000000..ae238d7 --- /dev/null +++ b/dev-perl/Exception-Class-TryCatch/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-perl/Exception-Class-TryCatch +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 03 Aug 2009; Wolfram Schlich +metadata.xml, + +Exception-Class-TryCatch-1.12.ebuild: + initial import + diff --git a/dev-perl/Exception-Class-TryCatch/Exception-Class-TryCatch-1.12.ebuild b/dev-perl/Exception-Class-TryCatch/Exception-Class-TryCatch-1.12.ebuild new file mode 100644 index 0000000..77b3c10 --- /dev/null +++ b/dev-perl/Exception-Class-TryCatch/Exception-Class-TryCatch-1.12.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +MODULE_AUTHOR=DAGOLDEN +inherit perl-module + +DESCRIPTION="Syntactic try/catch sugar for use with Exception::Class" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="dev-perl/Exception-Class" +DEPEND="${RDEPEND} + >=virtual/perl-Module-Build-0.28" + +SRC_TEST="do" diff --git a/dev-perl/Exception-Class-TryCatch/Manifest b/dev-perl/Exception-Class-TryCatch/Manifest new file mode 100644 index 0000000..8233570 --- /dev/null +++ b/dev-perl/Exception-Class-TryCatch/Manifest @@ -0,0 +1,4 @@ +DIST Exception-Class-TryCatch-1.12.tar.gz 17811 RMD160 4a72ca02a53938ac6925b968705536b21b58553c SHA1 4e1f5b7f716e0bd357e010c9a4a0c6c34f943045 SHA256 4161c9bcd11ac60f053db94a0fcb74844372bdea1701477f4bd31c132eb4235c +EBUILD Exception-Class-TryCatch-1.12.ebuild 414 RMD160 ae3d106e87fd22158d522dbc4bae6d4913134b9c SHA1 ea3ee875ab7686a058f6408821b101349aa5e3b9 SHA256 382e1d74785355ec356acebd0da0148a593fe7500592660ec9617acfb1f159cf +MISC ChangeLog 261 RMD160 3b3f8c542c9757c4bcd3a44d77c76f18d9850699 SHA1 8f1ce9a1072719195fa5f0cefb3268ea1864f818 SHA256 64e5a5ddbe8bee7b84a770742e83f4a5dc976cbdc6425e25c26bf5382744c87d +MISC metadata.xml 306 RMD160 f1a137ada6fd6c5f77745d9a35b5ac5e7378190c SHA1 15f52896cbd26a1f148cad69f1d5116bb8699217 SHA256 6bd24d2166b7158c69c1c76ea7ef7f8be1846432e117aec7e6e8963193cd57cd diff --git a/dev-perl/Exception-Class-TryCatch/metadata.xml b/dev-perl/Exception-Class-TryCatch/metadata.xml new file mode 100644 index 0000000..1b334d2 --- /dev/null +++ b/dev-perl/Exception-Class-TryCatch/metadata.xml @@ -0,0 +1,10 @@ + + + + no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/dev-perl/Math-Calc-Units/ChangeLog b/dev-perl/Math-Calc-Units/ChangeLog new file mode 100644 index 0000000..a09f8e4 --- /dev/null +++ b/dev-perl/Math-Calc-Units/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-perl/Math-Calc-Units +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Nov 2008; Wolfram Schlich +metadata.xml, + +Math-Calc-Units-1.06.ebuild: + initial import + diff --git a/dev-perl/Math-Calc-Units/Manifest b/dev-perl/Math-Calc-Units/Manifest new file mode 100644 index 0000000..ded7d10 --- /dev/null +++ b/dev-perl/Math-Calc-Units/Manifest @@ -0,0 +1,4 @@ +DIST Math-Calc-Units-1.06.tar.gz 33916 RMD160 237975ae0b007ce52eebda5a2d0e11e960f67e79 SHA1 546e95dc449cdec8410edb6739a5229d5a63f644 SHA256 527e3b1c37bbad785801a56bba9d0ee5bf8d038bc58c1be14d60aec97cb48a7e +EBUILD Math-Calc-Units-1.06.ebuild 345 RMD160 0f04dd0e98a79f5d9f643797befb3b57768d423f SHA1 3d6a0b939a355ac4e63a02c7520ccc51d632dc85 SHA256 010decb6d310875328e07d6b31acdfa1588cf27e6994b389699ace087709550a +MISC ChangeLog 243 RMD160 d2be4006020f9bb3a94a16fe16fb5bbc04a5a8ab SHA1 c7611f0fab94931251d155e3e1c08afd1b905a32 SHA256 1dccc6f56bc731e8f2e67310841e78efe7cf42971a51046f468fe7f33eec36a1 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/dev-perl/Math-Calc-Units/Math-Calc-Units-1.06.ebuild b/dev-perl/Math-Calc-Units/Math-Calc-Units-1.06.ebuild new file mode 100644 index 0000000..970592d --- /dev/null +++ b/dev-perl/Math-Calc-Units/Math-Calc-Units-1.06.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MODULE_AUTHOR=SFINK + +inherit perl-module + +DESCRIPTION="Math::Calc::Units - Human-readable unit-aware calculator" + +IUSE="" +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~amd64 ~x86" +SRC_TEST="do" + +DEPEND="dev-lang/perl" diff --git a/dev-perl/Math-Calc-Units/metadata.xml b/dev-perl/Math-Calc-Units/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/dev-perl/Math-Calc-Units/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/dev-perl/Nagios-Plugin/ChangeLog b/dev-perl/Nagios-Plugin/ChangeLog new file mode 100644 index 0000000..7911dbd --- /dev/null +++ b/dev-perl/Nagios-Plugin/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-perl/Nagios-Plugin +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Nov 2008; Wolfram Schlich +metadata.xml, + +Nagios-Plugin-0.27.ebuild: + initial import + diff --git a/dev-perl/Nagios-Plugin/Manifest b/dev-perl/Nagios-Plugin/Manifest new file mode 100644 index 0000000..4c87cd9 --- /dev/null +++ b/dev-perl/Nagios-Plugin/Manifest @@ -0,0 +1,4 @@ +DIST Nagios-Plugin-0.27.tar.gz 39980 RMD160 7ef92dcf962e2d9f4eca983b3550c8b85ce5e6ef SHA1 c1d358917a0f08623469a849978fb29021e9e447 SHA256 41b3c6e68f84450376e94f540ebd329480308390bade1719b2a3cc05e7c4be2d +EBUILD Nagios-Plugin-0.27.ebuild 468 RMD160 f65bc0ce1b348b7c449dfb4354f7aef85a687293 SHA1 7b429f444b6d8d25625e1c148c41cc6985bdae26 SHA256 9a0b959225c5abe113805c7f4289a67f195f6d073a4e9bcd5fa1c55c0ab5ed7f +MISC ChangeLog 239 RMD160 eef70482d1396eba286c0b02918eb50f2bd3739b SHA1 f8be94afe504e901661ae398db0e189f517cd843 SHA256 0d7ee6e42a739da1b57bedd7c10d060a71993aa4570cfab829ba67e15ec1c79d +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/dev-perl/Nagios-Plugin/Nagios-Plugin-0.27.ebuild b/dev-perl/Nagios-Plugin/Nagios-Plugin-0.27.ebuild new file mode 100644 index 0000000..bf3de23 --- /dev/null +++ b/dev-perl/Nagios-Plugin/Nagios-Plugin-0.27.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MODULE_AUTHOR=TONVOON + +inherit perl-module + +DESCRIPTION="Nagios::Plugin - A family of perl modules to streamline writing Nagios plugins" + +IUSE="" +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~amd64 ~x86" +SRC_TEST="do" + +DEPEND="dev-perl/Params-Validate + dev-perl/Class-Accessor + dev-perl/Config-Tiny + dev-perl/Math-Calc-Units + dev-lang/perl" diff --git a/dev-perl/Nagios-Plugin/metadata.xml b/dev-perl/Nagios-Plugin/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/dev-perl/Nagios-Plugin/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/licenses/AVIRA-AntiVir b/licenses/AVIRA-AntiVir new file mode 100644 index 0000000..4826544 --- /dev/null +++ b/licenses/AVIRA-AntiVir @@ -0,0 +1,354 @@ +Avira GmbH + +End-user License Agreement (EULA) + +This Software has been copyrighted for the + +Avira GmbH +Tjark Auerbach +Chief Executive Officer +Lindauer Str. 21 +88069 Tettnang, Germany +www.avira.de + +hereinafter "Licensor". + +The unauthorised reproduction or unauthorised sale of this Software +or parts thereof is liable to prosecution. Such conduct can be +prosecuted under criminal or civil law and result in severe penalties +and/or claims for damages. The Licensor hereby authorises you +- hereinafter Licensee - to use this Software within the context +of the following licensing conditions: + +§1 Subject of the Licence Concession + +1) Subject of the contract is the existing computer programme; +in this case the activated full version including the licence +file necessary for activation, (the "Software"), as well as the +programme description, operating instructions and other pertinent +materials (the "documentation"). + +2) The transfer of the main programme to the Licensee shall take +place (after the order has been placed) either by means of the +sending of sealed system disks or by means of download by the +Licensee from the website of the Licensor. Before a licence file +has been purchased, the main programme can be used solely as +a limited test version. In order to use all functions, the Licensee +must purchase a licence file from the Licensor or from an authorised +retailer. The transfer of the licence file to the Licensee shall +take place by means of the sending of a sealed system disk by +post, or, by order of the Licensee (as in other cases also at +the option of the Licensor), by e-mail. In a case where the Licensee +downloads the main programme or the licence file, the transfer +shall be deemed to have taken place when downloading is complete. +With the main programme, the Licensee receives the documentation; +this shall be made available to the Licensee by the Licensor +(and at the Licensor's option), either in printed form or as +a file in a standard format (e.g. hlp, txt or pdf), irrespective +of how the Software is transferred. If the Licensee receives +the Software by means of downloading by modem or from the Licensor's +server via the Internet, he/she shall download the Documentation +in the same manner. + +3) The Software individually described in the documentation is +commensurate with state-of-the-art technology. The Licensee is +advised that with today's state-of-the art technology, it is +not possible to manufacture Software in such a way that it works +in every case and in a problem-free manner with all applications +and in all combinations (especially with third-party Software). + +4) The Software may not be used in danger zones where error-free +continuous operation is demanded (high-risk activities like, +for example, the operation of atomic power facilities, weapons +systems, aerospace navigation or communication systems and /or +life-support machines). + +§2 Scope of Use + +The Licensor grants the Licensee the simple, non-exclusive and +personal right to use the Software within the agreed scope of +use - particularly with regard to the type and number of computers, +for the duration of the contract (the "Licence"). The scope of +the licence can be seen in the LIC-INFO.TXT file, which the Licensee +receives together with the licence file. + +§3 Copyrights and Transfer of the Software + +1) The Licensee may reproduce the Software, if such reproduction +is necessary for the use of the Software. Necessary reproductions +include the installation of the Software from the original system +disk or from the downloaded installation archive on the mass +memory of the hardware in accordance with § 2, as well as the +loading of the Software into the main memory during Software +operation. + +2) Moreover, the Licensee may reproduce the Software for backup +purposes. However, only one backup copy of the original system +disk or the downloaded installation archive may be created and/or +stored. Said copy must be marked as a backup. + +3) Should a rotational backup of a system's entire data set, including +the software programmes, be essential for a fast reactivation +of the system following a complete breakdown, Licensee may create +backup copies in the quantities absolutely required. The pertinent +system disks shall be marked accordingly. These backup copies +may be used for archive purposes in connection with data backup +only. + +4) Licensee shall take the necessary steps to prohibit unauthorized +access to the Software and its documentation by third parties. +Affiliated companies of the Licensee are also regarded as being +third parties. The original data media, as well as all backup +copies, shall be stored in a secure place, safe from access by +unauthorized third parties. The Licensee's employees shall be +expressly informed as to their obligations to observe and abide +by all contractual conditions specified herein, as well as all +provisions of copyright law. + +5) The Licensee is not authorised, + +a. with the exception of the reproductions expressly authorised +in this agreement, to create other reproductions of the Software +or the documentation, either wholly or in part, on the same or +on other disks/carrier media; this also includes the output of +the programme code to a printer; + +b. to transfer the Software from one computer to another computer +or recording device via a network or other data transfer channel, +insofar as the receiving device is not a computer or other recording +device of the Licensee which is referred to in, and understood +to be within, the framework of this Agreement; + +c. without the written express permission of the Licensor, to +change, translate, retro-develop, decompile or disassemble the +Software, or to create works derived from the Software or the +documentation, or to reproduce, translate, change or create works +derived from the documentation , insofar as this is not absolutely +necessary within the context of contractual use; + +d. to remove copyright endorsements, serial numbers or other features +which serve to identify the programme, unless the Licensor has +provided written authorisation for this beforehand; + +e. to transfer the Software to third parties or to provide access +to the Software in any other form. This also applies to reproduction +of the Software. Affiliated companies of the Licensee shall also +be regarded in principle as third parties; transferring the Software +within the group of companies for exclusive use at the new site +shall be authorised in writing by the Licensor - such authorisation +may only be denied for a major reason. In this case, adherence +to the scope of use as per § 2 and § 3, any other agreements +made in this contract and any possible secondary agreements shall +be ensured. When such transfer has occurred, the Licensee must +fully delete the Software and any backup copies still at the +previous site of use within the group of companies without delay; + +f. to transfer the Software, the documentation or parts thereof +to third parties for the purposes of renting or leasing over +a period of time. + + +§4 Other Rights to the Software + +Within the context of the performance of the existing agreement, +any purchase of full rights by the Licensee shall only take place +on the physical system disks on which the Software and the documentation +are recorded. Purchase of utilisation rights or rights of use +for the Software and the documentation shall only take place +insofar as this is expressly intended in the existing agreement. +The Licensor retains in particular all publication rights, reproduction +rights, editing rights, translation rights and other utilization +rights to the Software. + +§5 Term and Termination + +1) The Licensee has the right to use the Software and the documentation +indefinitely. + +2) The right of both parties to exceptional termination shall +remain unaffected, if a major reason for such termination exists. +In particular, the Licensor has the right to terminate without +notice in the case of substantial violations of contractual obligations +on the part of the Licensee. + +3) After a termination, the Licensee is liable under contract +to fully delete all Software, in particular the original system +disk, any backup copies and any pertinent Software files installed +on his/her computer. The Licensee shall also return all pertinent +documentation. The Licensor has the right to demand a sworn statement +from the Licensee regarding such deletion. + +§6 Warranty and Cooperation of the Licensee + +1) Warranty claims by the Licensee for Software defects or defective +documentation shall only be made to the supplier of the Software +- in particular to the retailer. + +2) If the Licensor is also the supplier - in the case of direct +purchase of the Software from the Licensor - the Licensor shall +guarantee the possibility of use in conformity with the documentation, +if no other agreement on special cases has been made. The legal +warranty period shall begin with the transfer of the Software +as per § 1. 2. If the Licensee is not a consumer as defined within +the meaning of the German Civil Code (BGB), the following shall +also apply: The warranty period shall amount to 12 months; in +the case of deviations from the documentation, where such deviations +considerably affect contractual use, the Licensor, at his/her +option, shall be obliged to supply a replacement or subsequent +improvement. If the Licensor cannot correct such deviations (within +an appropriate time limit) through the delivery of replacements +or subsequent improvements, or if the Licensor cannot bypass +such deviations in such a way that the Licensee is enabled contractual +use of the Software, or if the delivery of replacements or subsequent +improvements are deemed to have failed due to any other causes, +the Licensee, at his/her option, can demand a reduction in the +purchase price or cancel the licence for the programme without +notice. In the latter case, the Licensee shall also be entitled +to a full refund of the purchase price. + +3) When reporting errors, the Licensee shall endeavour to be extremely +precise in the description, narrowing-down, determination and +reporting of such errors - to this end, he/she shall use competent +employees. Where applicable, checklists supplied by the retailer +or Licensor shall be used. + +§7 Liability and Third Party Proprietary Rights + +1) In the case of damages for which he/she is responsible, the +Licensor shall be liable to pay up to five times the amount of +the price paid upon delivery of the Software or licence file. +Standard in this case is the net amount paid (without VAT) at +the time of purchase. + +2) The Licensor shall not be held liable for any lack of economic +success, for indirect damages, consequential damages and for +damages arising from third party claims, with the exception of +claims pertaining to the infringement of third party proprietary +rights. + +3) The Licensor shall only be held liable for ordinary negligence +insofar as an obligation is violated, adherence to which is of +major importance for the attainment of the object of this contract +(cardinal obligation). + +4) For the recovery of data and other damages due to loss of data, +the Licensor shall only be liable to pay an amount typical for +the effort and costs involved in such a recovery, and only then +if the Licensee has ensured that this data (as defined within +the meaning of proper data processing from data banks) is held +in readiness in machine-readable form, can be reproduced with +a justifiable amount of effort, and if the Licensee has in particular +carried out regular and risk-pertinent creation of backup copies. + +5) The limitations of liability in § 1-4 do not apply to damages +caused by malice or gross negligence on the part of the Licensor, +his/her legal representatives, responsible employees, auxiliary +persons and damages arising from injury to life, body or health. + +6) If the Licensee is in violation of any of the limitations of +use contained in the existing contract, in particular of § 1.4, +liability on the part of the Licensor for damages arising from +such violation shall be excluded. + +7) Liability in accordance with the product liability law shall +remain unaffected. + +8) If a third party, in spite of the Licensee's contractually +correct use of the valid, unchanged original version of the Software +or documentation, makes claims against the Licensee claiming +infringement of industrial property rights or infringement of +copyright in the German Federal Republic, the Licensor shall +defend the Licensee against all such claims. The Licensor shall +assume the legal costs and quantum of damages imposed on the +Licensee, provided that the Licensee has immediately informed +the Licensor of the assertion of such claims and provided that +all legal defence measures and composition hearings/negotiations +are reserved for the Licensor. + +9) If claims in accordance with §8 or other claims for an infringement +of third part proprietary rights have been made, or are expected +to be made against the Licensee, the Licensor, at his/her option, +has the right to change or exchange all or part of the Software +and/or documentation at his/her own expense, to an extent that +is deemed reasonable for the Licensee. + +10) If a case arises involving §8 and §9, when a Software change +or the execution of a right of use is not possible with reasonable +effort, each contractual partner can cancel the licence for the +Software involved without notice. + +§8 Updates + +1) With the purchase of the licence file, the Licensee is entitled +to receive and install updates. Updates are made available to +the Licensee via download from the website of the Licensor - +unless otherwise agreed. + +2) Provided that no other terms have been agreed for the use of +such updates, the existing conditions apply. + +3) The duration and extent of the Licensee's download subscription +rights are governed by the terms of the purchased licence. + +4) An extension of the Licensee's download subscription rights +is based on the terms agreed upon. Unless otherwise specified, +the Licensor's terms and conditions apply which are published +on his/her website. + + +§9 Remuneration of the Licensor + +1) If conclusion and implementation of the existing contract take +place without the involvement of the retail trade, i.e. directly +with the Licensor, + +a) the Licensor shall receive a one-off fee, which may include +an update subscription for the first period of use, from the +Licensee upon purchase of the licence file which is necessary +for activation of the Software. The amount of the licence fee +is either taken from the Licensor's price list which is/was valid +at the time of ordering and which can be accessed on the Licensor's +website, or derived from a different agreement. + +b) The licence fee in accordance with a.) shall be paid upon transfer +of the licence file (as per § 1.2) to the Licensee. The Licensee +shall receive an invoice for the payable amount together with +the licence file. + +2) If the Software is purchased through a retailer, the licence +fee, which may include an update subscription for the first period +of use, is discharged upon payment of the purchase price. + +§10 Miscellaneous + +1) Any changes in, and/or supplements to this contract, including +this clause, must be made in writing. Verbal supplements to this +contract shall under no circumstances be made. General Terms +and Conditions of Business of the Licensee are not part of this +contract and have no legal force where this contractual relationship +is concerned. + +2) If a provision of this contract ceases to be effective or proves +to be not feasible, and the attainment of the object of this +contract is nevertheless still not essentially impossible, the +lawfulness of any remaining provisions shall remain unaffected. +Both parties shall replace the provision which is ineffective +or not feasible by one which, in a legally valid and economical +manner, comes closest to the sense and purpose of the ineffective +provision. + +3) The laws of the German Federal Republic apply to this contract. +Place of jurisdiction for merchants (who are Licensees) is the +registered office of the Licensor. + +4) In the case of delivery in EU countries, price calculation +without VAT can only occur if the Licensee has provided his/her +VAT ID. + + +Avira GmbH +Lindauer Str. 21 | 88069 Tettnang | Germany +Telephone: +49 (0) 7542-500 0 +Fax: +49 (0) 7542-525 10 +E-mail: info@avira.de +Internet: http://www.avira.de diff --git a/mail-filter/dkimproxy/ChangeLog b/mail-filter/dkimproxy/ChangeLog new file mode 100644 index 0000000..2d20f94 --- /dev/null +++ b/mail-filter/dkimproxy/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for mail-filter/dkimproxy +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 04 Mar 2009; Wolfram Schlich +metadata.xml, + +dkimproxy-1.1.ebuild: + version bump, added metadata.xml + diff --git a/mail-filter/dkimproxy/Manifest b/mail-filter/dkimproxy/Manifest new file mode 100644 index 0000000..dc00bca --- /dev/null +++ b/mail-filter/dkimproxy/Manifest @@ -0,0 +1,7 @@ +AUX dkimproxy.init 908 RMD160 adfeca8ef1cc47aa04df395921025a15ce23a95f SHA1 f933dad12e612eca79e25bf76fd9f233c01bb974 SHA256 15e9b9b92ad90d63fb375bdca0be32f4e3ea4911f98747a20c3c171035640aeb +DIST dkimproxy-1.0.1.tar.gz 77675 RMD160 e33ad826a9c9fba2a02154b95fb4f21da33541fb SHA1 73c7af9f37291725e39c5e3103c24c4d9ffd4bc8 SHA256 715ec44fd9a014804c9660e36afb3eaae9c8d860c3f2a4bf07c6cc1ddfacb6bd +DIST dkimproxy-1.1.tar.gz 78775 RMD160 575fc23152209a72160944a8ffc2714079fa543a SHA1 d6ff204690974824d546919756a408a0770182b7 SHA256 f08bfcb2e166de4c52c96ccf5c3e6b54b589beaf0d442868bd04fbd23158aba5 +EBUILD dkimproxy-1.0.1.ebuild 1340 RMD160 954e999961aba31fc3747c71163f8b98eb690445 SHA1 42f64e83d1544a7787e507169988692813e76c36 SHA256 8fbd6c4da0319b7d995a961e4e753aa78a396778c4713e8d6205c238783dfd13 +EBUILD dkimproxy-1.1.ebuild 1340 RMD160 e35e3c6355ba0995752b4d76d7ea02c2f7a4bc05 SHA1 6901f62f1d24514df277723f960aa3df9a3bb8d9 SHA256 26b4c89a3f7b08fee7f0535a435f0dc48972352125f4761c16c3e0c624eedf31 +MISC ChangeLog 251 RMD160 e63da850e809ce84fab81500c526d019842816a5 SHA1 b40343a5f0afa34166a328b49927471002be5066 SHA256 52406c1e87846ea543fdb8e5ca9d476be031e184985029ceefa9cf5e7f9a4908 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/mail-filter/dkimproxy/dkimproxy-1.0.1.ebuild b/mail-filter/dkimproxy/dkimproxy-1.0.1.ebuild new file mode 100644 index 0000000..952ada8 --- /dev/null +++ b/mail-filter/dkimproxy/dkimproxy-1.0.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils perl-module + +DESCRIPTION="An SMTP proxy that signs and/or verifies emails using the Mail::DKIM module" +HOMEPAGE="http://dkimproxy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=dev-perl/Mail-DKIM-0.30 + dev-perl/Error + >=dev-perl/net-server-0.91" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup dkim + enewuser dkim -1 -1 -1 dkim +} + +src_compile(){ + perlinfo + export perllibdir=${VENDOR_LIB} + econf || die "econf failed" + emake || die "emake failed" +} + +src_install(){ + emake DESTDIR="${D}" install || die "emake install failed" + dosed '1s:^\(#!/usr/bin/perl\).*$:\1:' /usr/bin/dkimproxy.{in,out} + for i in in out; do + newinitd ${FILESDIR}/dkimproxy.init dkimproxy_${i} + done + dodoc README NEWS TODO + diropts -odkim -gdkim -m0750 + dodir /etc/dkimproxy +} + +pkg_postinst() { + einfo + einfo "If you want to sign outgoing mail using DKIM, you might want" + einfo "to generate an RSA keypair now:" + einfo + einfo "umask 0027" + einfo "openssl genrsa -out /etc/dkimproxy/privkey.pem 1024" + einfo "openssl rsa -in /etc/dkimproxy/privkey.pem -pubout -out /etc/dkimproxy/pubkey.pem" + einfo "chgrp dkim /etc/dkimproxy/*.pem" + einfo +} diff --git a/mail-filter/dkimproxy/dkimproxy-1.1.ebuild b/mail-filter/dkimproxy/dkimproxy-1.1.ebuild new file mode 100644 index 0000000..f87ff5f --- /dev/null +++ b/mail-filter/dkimproxy/dkimproxy-1.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils perl-module + +DESCRIPTION="An SMTP proxy that signs and/or verifies emails using the Mail::DKIM module" +HOMEPAGE="http://dkimproxy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=dev-perl/Mail-DKIM-0.32 + dev-perl/Error + >=dev-perl/net-server-0.91" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup dkim + enewuser dkim -1 -1 -1 dkim +} + +src_compile(){ + perlinfo + export perllibdir=${VENDOR_LIB} + econf || die "econf failed" + emake || die "emake failed" +} + +src_install(){ + emake DESTDIR="${D}" install || die "emake install failed" + dosed '1s:^\(#!/usr/bin/perl\).*$:\1:' /usr/bin/dkimproxy.{in,out} + for i in in out; do + newinitd ${FILESDIR}/dkimproxy.init dkimproxy_${i} + done + dodoc README NEWS TODO + diropts -odkim -gdkim -m0750 + dodir /etc/dkimproxy +} + +pkg_postinst() { + einfo + einfo "If you want to sign outgoing mail using DKIM, you might want" + einfo "to generate an RSA keypair now:" + einfo + einfo "umask 0027" + einfo "openssl genrsa -out /etc/dkimproxy/privkey.pem 1024" + einfo "openssl rsa -in /etc/dkimproxy/privkey.pem -pubout -out /etc/dkimproxy/pubkey.pem" + einfo "chgrp dkim /etc/dkimproxy/*.pem" + einfo +} diff --git a/mail-filter/dkimproxy/files/dkimproxy.init b/mail-filter/dkimproxy/files/dkimproxy.init new file mode 100644 index 0000000..80ceae9 --- /dev/null +++ b/mail-filter/dkimproxy/files/dkimproxy.init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +dkimproxy_bin=/usr/bin/${SVCNAME%_*}.${SVCNAME#*_} # dkimproxy.in/dkimproxy.out +dkimproxy_pidfile=/var/run/${SVCNAME}.pid +dkimproxy_conf=/etc/${SVCNAME}.conf +#dkimproxy_opts: can be set in /etc/conf.d/${SVCNAME} + +depend() { + need net + use mta +} + +checkconfig() { + if [ ! -f ${dkimproxy_conf} ]; then + eerror "Configuration file ${dkimproxy_conf} not found" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet \ + --exec ${dkimproxy_bin} -- \ + --daemonize --user=dkim --group=dkim \ + --conf_file=${dkimproxy_conf} \ + --pidfile=${dkimproxy_pidfile} \ + ${dkimproxy_opts} + eend ${?} +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile ${dkimproxy_pidfile} + eend ${?} +} diff --git a/mail-filter/dkimproxy/metadata.xml b/mail-filter/dkimproxy/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/mail-filter/dkimproxy/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/mail-filter/dovecot-antispam/ChangeLog b/mail-filter/dovecot-antispam/ChangeLog new file mode 100644 index 0000000..83df1f3 --- /dev/null +++ b/mail-filter/dovecot-antispam/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for mail-filter/dovecot-antispam +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 01 Jun 2008; Wolfram Schlich + dovecot-antispam-9999.ebuild: + added debug CFLAGS + + 27 Apr 2008; Wolfram Schlich + +dovecot-antispam-9999.ebuild: + initial import + diff --git a/mail-filter/dovecot-antispam/Manifest b/mail-filter/dovecot-antispam/Manifest new file mode 100644 index 0000000..7a4eadb --- /dev/null +++ b/mail-filter/dovecot-antispam/Manifest @@ -0,0 +1,2 @@ +EBUILD dovecot-antispam-9999.ebuild 2145 RMD160 0b9573768b7a56808d6083a64999bcee9acc4da4 SHA1 f545fff6ba503b9853b11625afe3d3390a8dba96 SHA256 1a53cee4be2de15e0daddd000116374f3a60f1bb07cee58f491d937d12097b5d +MISC ChangeLog 340 RMD160 3efc4216a0f8aeab9440d0aa68ebf780f5524c0b SHA1 1872f008894039a561349c514b00ce6780d6a0cd SHA256 7e35f295a3d32dfe017fd02427f3b0de508b3bf221108859e856215df5baa54c diff --git a/mail-filter/dovecot-antispam/dovecot-antispam-9999.ebuild b/mail-filter/dovecot-antispam/dovecot-antispam-9999.ebuild new file mode 100644 index 0000000..11b0699 --- /dev/null +++ b/mail-filter/dovecot-antispam/dovecot-antispam-9999.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/dovecot-antispam-20080424.ebuild,v 1.1 2008/04/24 11:46:40 hollow Exp $ + +inherit confutils eutils autotools flag-o-matic git multilib + +EGIT_REPO_URI="http://git.sipsolutions.net/dovecot-antispam.git" + +DESCRIPTION="A dovecot antispam plugin supporting multiple backends" +HOMEPAGE="http://johannes.sipsolutions.net/Projects/dovecot-antispam" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug dspam crm114 mailtrain signature-log syslog" + +DEPEND="net-mail/dovecot + dspam? ( mail-filter/dspam ) + crm114? ( app-text/crm114 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +# we need this to prevent errors from dovecot-config +top_builddir() { + return +} + +pkg_setup() { + confutils_require_one dspam signature-log mailtrain crm114 + confutils_use_depend_all syslog debug +} + +src_unpack() { + git_src_unpack + cd "${S}" + sed -e 's/$(INSTALLDIR)/$(DESTDIR)$(INSTALLDIR)/' -i Makefile +} + +src_compile() { + source "${ROOT}"/usr/lib/dovecot/dovecot-config || \ + die "cannot find dovecot-config" + + echo DOVECOT=${dovecot_incdir} > .config + if has_version '=net-mail/dovecot-1.0*'; then + echo DOVECOT_VERSION=1.0 >> .config + elif has_version '=net-mail/dovecot-1.1*'; then + echo DOVECOT_VERSION=1.1 >> .config + fi + echo INSTALLDIR=${moduledir}/imap/ >> .config + echo PLUGINNAME=antispam >> .config + echo USER=root >> .config + echo GROUP=root >> .config + + use dspam && echo BACKEND=dspam-exec >> .config + use signature-log && echo BACKEND=signature-log >> .config + use mailtrain && echo BACKEND=mailtrain >> .config + use crm114 && echo BACKEND=crm114-exec >> .config + + if use debug; then + echo CFLAGS+=-g3 >> .config + if use syslog; then + echo DEBUG=syslog >> .config + else + echo DEBUG=stderr >> .config + fi + fi + + emake || die "make failed" +} + +src_install() { + source "${ROOT}"/usr/lib/dovecot/dovecot-config || \ + die "cannot find dovecot-config" + + dodir "${moduledir}"/imap/ + make DESTDIR="${D}" install || die "make install failed" + + newman antispam.7 dovecot-antispam.7 +} diff --git a/mail-filter/sbd-proxy/ChangeLog b/mail-filter/sbd-proxy/ChangeLog new file mode 100644 index 0000000..21f0e6a --- /dev/null +++ b/mail-filter/sbd-proxy/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for mail-filter/sbd-proxy +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 25 Jan 2010; Wolfram Schlich +sbd-proxy-1.2.ebuild: + version bump + + 04 Nov 2009; Wolfram Schlich +sbd-proxy-1.1.ebuild: + version bump + + 28 Oct 2009; Wolfram Schlich +files/sbd-proxy.confd, + +files/sbd-proxy.initd, +sbd-proxy-1.0.ebuild: + initial import + diff --git a/mail-filter/sbd-proxy/Manifest b/mail-filter/sbd-proxy/Manifest new file mode 100644 index 0000000..30c91fc --- /dev/null +++ b/mail-filter/sbd-proxy/Manifest @@ -0,0 +1,9 @@ +AUX sbd-proxy.confd 187 RMD160 05ea13942b87b34efc7fbd7da5ee9e7b090aaf31 SHA1 c800e8303a08a41a3cd09535d5ddd87a459e711e SHA256 4c884c252cf1d65635daa59a0687f33509a56c1d4a403dcf4fcb87d0ba09f955 +AUX sbd-proxy.initd 798 RMD160 deacda480e48c30fc8d4230a28ce956dc2aac6b9 SHA1 259ee4d091b255203a3ad2c84eecd9b5f567fe33 SHA256 0b9dd9e3e765e5d14a5cb1ed33678db7e2f4ef07fc0947552788c78a9a4e3c8a +DIST sbd-proxy-1.0.tar.bz2 6425 RMD160 585017e239dc14835443805cf0ab75690b529f39 SHA1 c45815e3935b944dde86daeb5634dab3c0b60dc3 SHA256 c8d838e46cb0f3d39792f6c56ac5cc6b74b302c6987e3b3453f1f2733ab5dad3 +DIST sbd-proxy-1.1.tar.bz2 6488 RMD160 d4e5725f92cd6fc26735220a32e237858a89cfb5 SHA1 6cc38b9d64d347854929459ab8f358e7aae0ed57 SHA256 4723b7d23e3556c91accd407baaba4de88286d025c23520e60eabecc6fae65be +DIST sbd-proxy-1.2.tar.bz2 7797 RMD160 bdea663404e8749c7b0254ad25ed5c30ec7bc6a2 SHA1 9ed4a31785be0ffb04bf1aac468537298bf2688b SHA256 7de022956e47149c5140447aec8c6ba7a7e278c71281dafaef512c5dc3f1440e +EBUILD sbd-proxy-1.0.ebuild 1062 RMD160 cf0ad92b5d062c46b3d34f1d5f7b141ee544295c SHA1 b448b8111e4bf8c7f9f667a4f491002e4c87d4a9 SHA256 2eed5616946c59025e1a4243a7b89d7f81d11a16de0095324234823b36da83ad +EBUILD sbd-proxy-1.1.ebuild 1062 RMD160 cf0ad92b5d062c46b3d34f1d5f7b141ee544295c SHA1 b448b8111e4bf8c7f9f667a4f491002e4c87d4a9 SHA256 2eed5616946c59025e1a4243a7b89d7f81d11a16de0095324234823b36da83ad +EBUILD sbd-proxy-1.2.ebuild 1062 RMD160 1720d4d93d63c48f2c628f4495d0b0c9bf07cd57 SHA1 45ae27158a147fbc1d83d05a7d94d23215616287 SHA256 b21dadd020484fab4b111bc46124a0297fe55113da9685bda57a18c80e61d9e2 +MISC ChangeLog 450 RMD160 d8827ba8ea0186d046439ae7e7e16eb316238848 SHA1 5a5bf79f22a8d3bb3e2c68c4c76c10658dfedf14 SHA256 10499a7fa83348cfab7515c8c1bba578e1b552a178c9ab9f7e8ba0f65ff9d80a diff --git a/mail-filter/sbd-proxy/files/sbd-proxy.confd b/mail-filter/sbd-proxy/files/sbd-proxy.confd new file mode 100644 index 0000000..8314cc6 --- /dev/null +++ b/mail-filter/sbd-proxy/files/sbd-proxy.confd @@ -0,0 +1,5 @@ +#sbdproxy_uid="sbd" +#sbdproxy_gid="sbd" +#sbdproxy_bin="/usr/local/bin/sbd-proxy.pl" +#sbdproxy_pidfile="/var/run/${SVCNAME}.pid" +sbdproxy_opts="--simulate 127.0.0.1:10033 127.0.0.1:10034" diff --git a/mail-filter/sbd-proxy/files/sbd-proxy.initd b/mail-filter/sbd-proxy/files/sbd-proxy.initd new file mode 100755 index 0000000..006c275 --- /dev/null +++ b/mail-filter/sbd-proxy/files/sbd-proxy.initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +sbdproxy_bin="/usr/bin/sbd-proxy.pl" +sbdproxy_pidfile="/var/run/${SVCNAME}.pid" +#sbdproxy_uid: can be set in /etc/conf.d/${SVCNAME} +#sbdproxy_gid: can be set in /etc/conf.d/${SVCNAME} +#sbdproxy_opts: can be set in /etc/conf.d/${SVCNAME} + +depend() { + need net + use mta +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet \ + --chuid "${sbdproxy_uid:-sbd}:${sbdproxy_gid:-sbd}" \ + --exec "${sbdproxy_bin}" \ + --background \ + --pidfile "${sbdproxy_pidfile}" \ + --make-pidfile \ + -- ${sbdproxy_opts} + eend ${?} +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile "${sbdproxy_pidfile}" + eend ${?} +} diff --git a/mail-filter/sbd-proxy/sbd-proxy-1.0.ebuild b/mail-filter/sbd-proxy/sbd-proxy-1.0.ebuild new file mode 100644 index 0000000..002ddd3 --- /dev/null +++ b/mail-filter/sbd-proxy/sbd-proxy-1.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="An SMTP proxy for solicited bounce detection" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=" + virtual/perl-Getopt-Long + virtual/perl-Sys-Syslog + dev-perl/Config-IniFiles + dev-perl/DBI + dev-perl/Exception-Class + dev-perl/Exception-Class-TryCatch + dev-perl/Exception-Class-DBI +" +RDEPEND="${DEPEND} + virtual/mysql +" + +pkg_setup() { + enewgroup sbd + enewuser sbd -1 -1 -1 sbd +} + +src_install(){ + newinitd ${FILESDIR}/${PN}.initd ${PN} || die + newconfd ${FILESDIR}/${PN}.confd ${PN} || die + dobin ${PN}.pl || die + insopts -o sbd -g sbd -m 0640 + insinto /etc + doins ${PN}.ini || die + dodoc sbd-proxy-setup-mysql.sql +} + +pkg_postinst() { + einfo + einfo "See the bundled sbd-proxy-setup-mysql.sql example on" + einfo "how to create the needed MySQL database, user and table." + einfo +} diff --git a/mail-filter/sbd-proxy/sbd-proxy-1.1.ebuild b/mail-filter/sbd-proxy/sbd-proxy-1.1.ebuild new file mode 100644 index 0000000..002ddd3 --- /dev/null +++ b/mail-filter/sbd-proxy/sbd-proxy-1.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="An SMTP proxy for solicited bounce detection" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=" + virtual/perl-Getopt-Long + virtual/perl-Sys-Syslog + dev-perl/Config-IniFiles + dev-perl/DBI + dev-perl/Exception-Class + dev-perl/Exception-Class-TryCatch + dev-perl/Exception-Class-DBI +" +RDEPEND="${DEPEND} + virtual/mysql +" + +pkg_setup() { + enewgroup sbd + enewuser sbd -1 -1 -1 sbd +} + +src_install(){ + newinitd ${FILESDIR}/${PN}.initd ${PN} || die + newconfd ${FILESDIR}/${PN}.confd ${PN} || die + dobin ${PN}.pl || die + insopts -o sbd -g sbd -m 0640 + insinto /etc + doins ${PN}.ini || die + dodoc sbd-proxy-setup-mysql.sql +} + +pkg_postinst() { + einfo + einfo "See the bundled sbd-proxy-setup-mysql.sql example on" + einfo "how to create the needed MySQL database, user and table." + einfo +} diff --git a/mail-filter/sbd-proxy/sbd-proxy-1.2.ebuild b/mail-filter/sbd-proxy/sbd-proxy-1.2.ebuild new file mode 100644 index 0000000..b2d3bac --- /dev/null +++ b/mail-filter/sbd-proxy/sbd-proxy-1.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="An SMTP proxy for solicited bounce detection" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=" + virtual/perl-Getopt-Long + virtual/perl-Sys-Syslog + dev-perl/Config-IniFiles + dev-perl/DBI + dev-perl/Exception-Class + dev-perl/Exception-Class-TryCatch + dev-perl/Exception-Class-DBI +" +RDEPEND="${DEPEND} + virtual/mysql +" + +pkg_setup() { + enewgroup sbd + enewuser sbd -1 -1 -1 sbd +} + +src_install(){ + newinitd ${FILESDIR}/${PN}.initd ${PN} || die + newconfd ${FILESDIR}/${PN}.confd ${PN} || die + dobin ${PN}.pl || die + insopts -o sbd -g sbd -m 0640 + insinto /etc + doins ${PN}.ini || die + dodoc sbd-proxy-setup-mysql.sql +} + +pkg_postinst() { + einfo + einfo "See the bundled sbd-proxy-setup-mysql.sql example on" + einfo "how to create the needed MySQL database, user and table." + einfo +} diff --git a/mail-mta/qpsmtpd/Manifest b/mail-mta/qpsmtpd/Manifest new file mode 100644 index 0000000..f0a42a2 --- /dev/null +++ b/mail-mta/qpsmtpd/Manifest @@ -0,0 +1,10 @@ +AUX qpsmtpd-0.40-badhelo_disconnect.patch 520 RMD160 f4e72cbe1d769206f719d0f3eff3c14a9216a1b8 SHA1 24ec87ae2cf9e95a8850640081b1a6594a030360 SHA256 f93dff30d7a6837b8b3e5b4b6ef9b02bb4fdeb58499e54f4d94d43668ad82970 +AUX qpsmtpd-0.40-badrcptto_allowrelay.patch 498 RMD160 8afc719f895da5aeb9a8333daaf0b690eb44d56b SHA1 2f5d4d34560415000bc0319b5bfe993f6734ea43 SHA256 f0bc5f9d4865084ef673e5271725dd01ec1d3fbfcf4ea47988d728c5acd14acf +AUX qpsmtpd-0.40-clamd_conf.patch 707 RMD160 819b17f489ca014d3552243af15084ea6ec4fa56 SHA1 9dd3aed08fa07e7748342c9743bc29a5440e5f50 SHA256 bedc83603a4411670d4926366d0c23b0ebcf5ec00aed4621135e66c25319d927 +AUX qpsmtpd.confd 617 RMD160 3b95ace716df3f61f9280ca783dbef43e6ee23ac SHA1 b409a52c77fad35b1a6f3c4e7eb65a7fb78cea89 SHA256 7748b525d9c3a3e8cbeec66b8b5df48510a44a1d624168278ce71720e7de8bc0 +AUX qpsmtpd.envd 74 RMD160 963ae15c132be3f99226bf5efed7da5b8f3c2570 SHA1 3a9975274ee6b8cbf2158b5643bd692291625fe8 SHA256 bbf8f40198e8a87ff6103b5dc98cae561f0dc9738a6cda3492b00468fbfdfd8e +AUX qpsmtpd.initd 2068 RMD160 5a809569722c8930bd4cc4d6b8bfd458fca2056d SHA1 2ebdb7ef090fcf56a6eb69540bef88600edf15b6 SHA256 13473280234660bb314289d79c79c57a5e25a2be913469cdb4ab66fefcfc14ce +AUX qpsmtpd.xinetd 526 RMD160 040c159e3c637dc00f1816088852207766c286fa SHA1 81deb67094386ab4ae341572270c47c140f16e89 SHA256 45729911251be13007d95bb9e25b6c9c951a6419b8badae4e4097dfc603edcdd +DIST qpsmtpd-0.82.tar.gz 176806 RMD160 8d7642f1887278ce45b3355de7da7f6b2c98a7d4 SHA1 540155086c0b5e553f951ef4f8967886384dca24 SHA256 794af76a1be3cc766ce034311a351ff76b0323c2decc49af96d626e3f3de4df9 +EBUILD qpsmtpd-0.82.ebuild 2213 RMD160 019494407bad167bcdb8565f9311acab933a1904 SHA1 fc1056e4781b75953c84832118653af89a3a5d50 SHA256 61162e62c6d9e3c19a7e50959c43c7cede71cd08ba59c64c6e7c966a43da13f6 +MISC metadata.xml 372 RMD160 598ecf1aa54e627f258d0f7b82b324475053f5bb SHA1 363c6c940b1537527bae2f632d74da1997682a13 SHA256 9f3a32db335226556204e3ef71f85ea1d872430f7567fb5ae3cc0cfaf3ca313d diff --git a/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badhelo_disconnect.patch b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badhelo_disconnect.patch new file mode 100644 index 0000000..6d8b88c --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badhelo_disconnect.patch @@ -0,0 +1,11 @@ +--- qpsmtpd-0.40/plugins/check_spamhelo.badhelo_disconnect 2007-06-14 11:57:24.000000000 -0600 ++++ qpsmtpd-0.40/plugins/check_spamhelo 2007-06-14 13:21:45.000000000 -0600 +@@ -23,7 +23,7 @@ + for my $bad ($self->qp->config('badhelo')) { + if ($host eq lc $bad) { + $self->log(LOGDEBUG, "Denying HELO from host claiming to be $bad"); +- return (DENY, "Sorry, I don't believe that you are $host."); ++ return (DENY_DISCONNECT, "Sorry, I don't believe that you are $host."); + } + } + return DECLINED; diff --git a/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badrcptto_allowrelay.patch b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badrcptto_allowrelay.patch new file mode 100644 index 0000000..1f9f33f --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-badrcptto_allowrelay.patch @@ -0,0 +1,10 @@ +--- qpsmtpd-0.40/plugins/check_badrcptto.badrcptto_allowrelay 2007-06-14 11:57:24.000000000 -0600 ++++ qpsmtpd-0.40/plugins/check_badrcptto 2007-06-14 13:26:42.000000000 -0600 +@@ -3,6 +3,7 @@ + + sub hook_rcpt { + my ($self, $transaction, $recipient, %param) = @_; ++ return (DECLINED) if $self->qp->connection->relay_client; + my @badrcptto = $self->qp->config("badrcptto") or return (DECLINED); + return (DECLINED) unless $recipient->host && $recipient->user; + my $host = lc $recipient->host; diff --git a/mail-mta/qpsmtpd/files/qpsmtpd-0.40-clamd_conf.patch b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-clamd_conf.patch new file mode 100644 index 0000000..b1e0f80 --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd-0.40-clamd_conf.patch @@ -0,0 +1,12 @@ +diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.40/plugins/virus/clamav mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamav +--- qpsmtpd-0.40/plugins/virus/clamav 2007-06-14 11:57:23.000000000 -0600 ++++ mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamav 2007-06-15 13:37:26.000000000 -0600 +@@ -148,7 +148,7 @@ + $self->{_max_size} ||= 512 * 1024; + $self->{_spool_dir} ||= $self->spool_dir(); + $self->{_back_compat} ||= ''; # make sure something is set +- $self->{_clamd_conf} ||= '/etc/clamd/conf'; # make sure something is set ++ $self->{_clamd_conf} ||= '/etc/clamd.conf'; # make sure something is set + + unless ($self->{_spool_dir}) { + $self->log(LOGERROR, "No spool dir configuration found"); diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.confd b/mail-mta/qpsmtpd/files/qpsmtpd.confd new file mode 100644 index 0000000..9a82c71 --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd.confd @@ -0,0 +1,25 @@ +# Config file for /etc/init.d/qpsmtpd +# + +QPSMTPD_CONFIG="/etc/qpsmtpd" +QPSMTPD_NICELEVEL="0" + +# Select QPSMTPD server type +# - async +# Not all plugins work without problems with the async mode. +# - forkserver (default) +# - prefork +# Does not work 100%. Use at your own risk. +QPSMTPD_SERVER_TYPE="forkserver" + +# QPSMTPD options. This can be different depending on +# what QPSMTPD server you run. +# +# Typical forkserver +QPSMTPD_OPTIONS="-l 0.0.0.0 -p 25 -u smtpd" +# +# Typical prefork +# QPSMTPD_OPTIONS="--interface 0.0.0.0 --port 25 --user smtpd" +# +# Typical async +# QPSMTPD_OPTIONS="-l 0.0.0.0 -p 25 -u smtpd" diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.envd b/mail-mta/qpsmtpd/files/qpsmtpd.envd new file mode 100644 index 0000000..3665116 --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd.envd @@ -0,0 +1,2 @@ +QPSMTPD_CONFIG="/etc/qpsmtpd" +CONFIG_PROTECT="/usr/share/qpsmtpd/plugins" diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.initd b/mail-mta/qpsmtpd/files/qpsmtpd.initd new file mode 100644 index 0000000..4624304 --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd.initd @@ -0,0 +1,60 @@ +#!/sbin/runscript + +depend() { + use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd + provide mta +} + +checkconfig() { + if ! [ -d "${QPSMTPD_CONFIG:-/etc/qpsmtpd}" ]; then + eerror "Configuration directory ${QPSMTPD_CONFIG:-/etc/qpsmtpd} does not exist." + return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" + HOME="/var/spool/qpsmtpd" + local QPSMTPD_SERVER_BIN="" + local myopts="" + export QPSMTPD_CONFIG=${QPSMTPD_CONFIG} + for foo in PERL_UNICODE LANG LC_TIME LC_ALL BASH_ENV ENV CDPATH IFS + do + unset ${foo} + done + case "${QPSMTPD_SERVER_TYPE}" in + prefork) + QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-prefork" + QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" + # Option --pid-file is mentioned in the help of the prefork server + # but does not work when specified. + # QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file /var/run/qpsmtpd.pid" + myopts="${myopts} --make-pidfile --pidfile /var/run/qpsmtpd.pid" + ;; + async) + QPSMTPD_SERVER_BIN="/usr/sbin/qpsmtpd-async" + myopts="${myopts} --background --make-pidfile --pidfile /var/run/qpsmtpd.pid" + ;; + forkserver|*) + QPSMTPD_SERVER_BIN="/usr/bin/qpsmtpd-forkserver" + QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:\-\-pid\-file[\t ]\{1,99\}[^ ]*::gI")" + QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-d[\t ]\{1,99\}|[\t ]\{1,99\}\-d[\t ]\{0,99\}::gI")" + QPSMTPD_OPTIONS="$(echo "${QPSMTPD_OPTIONS}" | sed "s:[\t ]\{0,99\}\-\detach[\t ]\{1,99\}|[\t ]\{1,99\}\-\-detach[\t ]\{0,99\}::gI")" + QPSMTPD_OPTIONS="${QPSMTPD_OPTIONS} --pid-file /var/run/qpsmtpd.pid --detach" + myopts="${myopts} --pidfile /dev/null" + ;; + esac + start-stop-daemon --start --nicelevel ${QPSMTPD_NICELEVEL:-0} \ + --quiet ${myopts} \ + --exec ${QPSMTPD_SERVER_BIN} \ + -- ${QPSMTPD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping qpsmtpd [${QPSMTPD_SERVER_TYPE}] server" + start-stop-daemon --stop --quiet --pidfile /var/run/qpsmtpd.pid + eend $? +} diff --git a/mail-mta/qpsmtpd/files/qpsmtpd.xinetd b/mail-mta/qpsmtpd/files/qpsmtpd.xinetd new file mode 100644 index 0000000..71cb21c --- /dev/null +++ b/mail-mta/qpsmtpd/files/qpsmtpd.xinetd @@ -0,0 +1,20 @@ +# default: off +# description: The telnet server serves telnet sessions; it uses \ +# unencrypted username/password pairs for authentication. + +service smtp +{ + flags = REUSE + socket_type = stream + wait = no + user = smtpd + group = smtpd + groups = yes + log_on_failure += USERID HOST + disable = yes + rlimit_as = 128M + instances = 40 + per_source = 10 + cps = 50 10 + server = /usr/bin/qpsmtpd +} diff --git a/mail-mta/qpsmtpd/metadata.xml b/mail-mta/qpsmtpd/metadata.xml new file mode 100644 index 0000000..65c65bb --- /dev/null +++ b/mail-mta/qpsmtpd/metadata.xml @@ -0,0 +1,8 @@ + + + + + Add deps + support for asynchronous mail reception/processing as well as preforked daemon + create user with permissions for proper postfix interaction + + diff --git a/mail-mta/qpsmtpd/qpsmtpd-0.82.ebuild b/mail-mta/qpsmtpd/qpsmtpd-0.82.ebuild new file mode 100644 index 0000000..6db9622 --- /dev/null +++ b/mail-mta/qpsmtpd/qpsmtpd-0.82.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" +HOMEPAGE="http://smtpd.develooper.com" +SRC_URI="http://smtpd.develooper.com/files/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="postfix ipv6 syslog" + +RDEPEND=">=dev-lang/perl-5.8.0 + dev-perl/Net-DNS + virtual/perl-MIME-Base64 + dev-perl/MailTools + dev-perl/IPC-Shareable + dev-perl/Socket6 + dev-perl/Danga-Socket + dev-perl/ParaDNS + ipv6? ( dev-perl/IO-Socket-INET6 ) + syslog? ( virtual/perl-Sys-Syslog ) + virtual/inetd" + +pkg_setup() { + enewgroup smtpd + local additional_groups + if use postfix; then + additional_groups="${additional_groups},postdrop" + fi + enewuser smtpd -1 -1 /var/spool/qpsmtpd smtpd${additional_groups} +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.40-badhelo_disconnect.patch + epatch "${FILESDIR}"/${PN}-0.40-badrcptto_allowrelay.patch + epatch "${FILESDIR}"/${PN}-0.40-clamd_conf.patch +} + +src_compile() { + perl Makefile.PL PREFIX=/usr || die "Running Makefile.PL failed" + emake || die "make failed" +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + + insinto /etc/xinetd.d + newins "${FILESDIR}"/qpsmtpd.xinetd qpsmtpd + + dodir /usr/share/qpsmtpd + cp -Rf plugins "${D}"/usr/share/qpsmtpd/ + + diropts -m 0755 -o smtpd -g smtpd + dodir /var/spool/qpsmtpd + keepdir /var/spool/qpsmtpd + + dodir /etc/qpsmtpd + insinto /etc/qpsmtpd + doins config.sample/* + + echo "/usr/share/qpsmtpd/plugins" > "${D}"/etc/qpsmtpd/plugin_dirs + echo "/var/spool/qpsmtpd" > "${D}"/etc/qpsmtpd/spool_dir + if use syslog; then + echo "logging/syslog loglevel LOGINFO priority LOG_NOTICE" > "${D}"/etc/qpsmtpd/logging + else + diropts -m 0755 -o smtpd -g smtpd + dodir /var/log/qpsmtpd + keepdir /var/log/qpsmtpd + echo "logging/file loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d" > "${D}"/etc/qpsmtpd/logging + fi + + newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd + + newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd || die "Installing conf.d file" + newinitd "${FILESDIR}"/qpsmtpd.initd qpsmtpd || die "Installing init.d file" + + dodoc CREDITS Changes README README.plugins STATUS +} diff --git a/net-analyzer/nagcon/ChangeLog b/net-analyzer/nagcon/ChangeLog new file mode 100644 index 0000000..a2658ee --- /dev/null +++ b/net-analyzer/nagcon/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagcon +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Aug 2008; Wolfram Schlich + +files/nagcon-0.0.30.patch, +nagcon-0.0.30.ebuild: + initial import + diff --git a/net-analyzer/nagcon/Manifest b/net-analyzer/nagcon/Manifest new file mode 100644 index 0000000..b2c22f3 --- /dev/null +++ b/net-analyzer/nagcon/Manifest @@ -0,0 +1,4 @@ +AUX nagcon-0.0.30.patch 2394 RMD160 27f3a8e70d48d8d706a5efdac8b707e15536ba5a SHA1 7a12b0fd690271988d77300cc4fa26c22862edbf SHA256 71e0be6d6f762effc52773a62c67d6547ee82cc366bf3f38668387a413e33f52 +DIST nagcon-0.0.30.tgz 15479 RMD160 953d1ac52680811226b6b8a27fa0d83d5316f582 SHA1 fe92892f464c363382412ef621f2ed31ef5dfb9d SHA256 e115f62fdd315b85dfe3a4d0e52a17e7e10ae064b012caa45f4b5dc50889020e +EBUILD nagcon-0.0.30.ebuild 582 RMD160 038c44d9e22bb0e1987c8c0ab01f057b2e3e9053 SHA1 3bce84a48606b21acf7170a88c1da3b8ff9ed7a9 SHA256 c5930424482146beb9ddaecd821752213fe357c9119ad6ce3f9ed88c2d93cc7d +MISC ChangeLog 244 RMD160 b4d5ff669dd083363489bd2aa3f4748be5bf777b SHA1 e3455470ffa18620304ace97186c2a3278a45504 SHA256 b5bafe591b0966f51fa23fe36039510e4d856d6745d50c5c2e9b30e7d204fb31 diff --git a/net-analyzer/nagcon/files/nagcon-0.0.30.patch b/net-analyzer/nagcon/files/nagcon-0.0.30.patch new file mode 100644 index 0000000..0e70b93 --- /dev/null +++ b/net-analyzer/nagcon/files/nagcon-0.0.30.patch @@ -0,0 +1,56 @@ +diff -urN nagcon-0.0.30.orig/Makefile nagcon-0.0.30/Makefile +--- nagcon-0.0.30.orig/Makefile 2008-07-31 13:57:31.000000000 +0200 ++++ nagcon-0.0.30/Makefile 2008-08-01 19:17:39.018319961 +0200 +@@ -1,7 +1,7 @@ + VERSION=0.0.30 + +-DEBUG= -g # -D_DEBUG -g -fprofile-arcs -ftest-coverage # -pg -g +-CXXFLAGS+=-Wall -g -O2 -DVERSION=\"${VERSION}\" $(DEBUG) ++DEBUG= # -D_DEBUG -g -fprofile-arcs -ftest-coverage # -pg -g ++CXXFLAGS+=-Wall -g -DVERSION=\"${VERSION}\" $(DEBUG) + CFLAGS+=${CXXFLAGS} + LDFLAGS+=$(DEBUG) -lncurses -lstdc++ + +diff -urN nagcon-0.0.30.orig/nc.cpp nagcon-0.0.30/nc.cpp +--- nagcon-0.0.30.orig/nc.cpp 2008-07-31 13:57:31.000000000 +0200 ++++ nagcon-0.0.30/nc.cpp 2008-08-01 19:20:10.246175059 +0200 +@@ -177,8 +177,8 @@ + version(); + + printf("-f file what file to monitor (usuallly:\n"); +- printf("-F host:port connect to a host for retrieving the status.log information\n"); +- printf(" /usr/local/nagios/var/status.log, look for status_file in\n"); ++ printf("-F host:port connect to a host for retrieving the status information\n"); ++ printf(" /var/nagios/status.dat, look for status_file in\n"); + printf(" the nagios.cfg file\n"); + printf("-i x check interval (in seconds)\n"); + printf("-a list also the services for hosts that are down\n"); +@@ -187,8 +187,8 @@ + printf("-g turn off grouping by status\n"); + printf("-s change sort order\n"); + printf("-e/-o suppress services with ok status\n"); +- printf("-x status.log-file is in Nagios 1.0 format\n"); +- printf("-X status.log-file is in Nagios 2.0 format\n"); ++ printf("-x status file is in Nagios 1.0 format\n"); ++ printf("-X status file is in Nagios 2.0 format\n"); + printf("-1 x set width of hostname column\n"); + printf("-2 x set width of service description column\n"); + printf("-h this help\n"); +@@ -210,7 +210,7 @@ + WINDOW *win; + int sw; + +- char *status_log = "/usr/local/nagios/var/status.log"; ++ char *status_log = "/var/nagios/status.dat"; + int interval = 5; + char list_all_problems = 0; + char always_notify = 0; +@@ -297,7 +297,7 @@ + } + + if (file_mode == 0 && stat(status_log, &statstruct) == -1) +- error_exit("error accessing nagios status.log file! (%s)", status_log); ++ error_exit("error accessing nagios status file! (%s)", status_log); + + init_curses(); + signal(SIGWINCH, do_resize); diff --git a/net-analyzer/nagcon/nagcon-0.0.30.ebuild b/net-analyzer/nagcon/nagcon-0.0.30.ebuild new file mode 100644 index 0000000..13f663d --- /dev/null +++ b/net-analyzer/nagcon/nagcon-0.0.30.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils flag-o-matic + +IUSE="" +DESCRIPTION="Nagios Console" +HOMEPAGE="http://www.vanheusden.com/nagcon/" +SRC_URI="http://www.vanheusden.com/${PN}/${P}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +DEPEND="sys-libs/ncurses virtual/libstdc++" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}.patch +} + +src_compile() { + # TODO: fix CXXFLAGS in Makefile + emake || die "make failed" +} + +src_install() { + dobin nagcon + dodoc readme.txt +} diff --git a/net-analyzer/nagios-check_dell_warranty/ChangeLog b/net-analyzer/nagios-check_dell_warranty/ChangeLog new file mode 100644 index 0000000..6525cf9 --- /dev/null +++ b/net-analyzer/nagios-check_dell_warranty/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_dell_warranty +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 28 May 2009; Wolfram Schlich +metadata.xml, + +nagios-check_dell_warranty-1.1.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_dell_warranty/Manifest b/net-analyzer/nagios-check_dell_warranty/Manifest new file mode 100644 index 0000000..623adf9 --- /dev/null +++ b/net-analyzer/nagios-check_dell_warranty/Manifest @@ -0,0 +1,4 @@ +DIST check_dell_warranty-1.1.tar.bz2 2435 RMD160 c1350fd352ee1eb5a6a92809c04f44f8690fd31c SHA1 ef24732763909b1ffa460e35c1b2abbc9da616f8 SHA256 8f9e6afef3e744dd27ddaa1d40162757569b9a9d1dd1a1e6fc16a29a027b6c9d +EBUILD nagios-check_dell_warranty-1.1.ebuild 652 RMD160 5b4cae9329703e55b6ff6da43425fa75f79676f1 SHA1 590d6a00d2dec2527ba17f9a191f96c6a50b633b SHA256 0d5bf704a017731396bff72c39b62a5b28a9f7f6caf92e1ed36cdd8508ef3670 +MISC ChangeLog 268 RMD160 08979200e08f6c6b1120d46e9e5b137f76a5ad3f SHA1 04ac943307a55c6bc73b8427a3a3872b0b16c099 SHA256 a6c253817dc602f003598d131154f3d5d0a5aebb9566a161323fcf8983e10ce1 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_dell_warranty/metadata.xml b/net-analyzer/nagios-check_dell_warranty/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_dell_warranty/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_dell_warranty/nagios-check_dell_warranty-1.1.ebuild b/net-analyzer/nagios-check_dell_warranty/nagios-check_dell_warranty-1.1.ebuild new file mode 100644 index 0000000..707006f --- /dev/null +++ b/net-analyzer/nagios-check_dell_warranty/nagios-check_dell_warranty-1.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking Linux software RAID" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=3094.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/python" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.py +} diff --git a/net-analyzer/nagios-check_drbd/ChangeLog b/net-analyzer/nagios-check_drbd/ChangeLog new file mode 100644 index 0000000..5136080 --- /dev/null +++ b/net-analyzer/nagios-check_drbd/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_drbd +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Nov 2008; Wolfram Schlich +metadata.xml, + +nagios-check_drbd-0.5.2.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_drbd/Manifest b/net-analyzer/nagios-check_drbd/Manifest new file mode 100644 index 0000000..df4ab9b --- /dev/null +++ b/net-analyzer/nagios-check_drbd/Manifest @@ -0,0 +1,4 @@ +DIST check_drbd-0.5.2.tar.bz2 4250 RMD160 dce30f616ee12eff5d8032436df3e7ea7be5c327 SHA1 507468c9abaccd89121564290ea6b5e43ae9ff68 SHA256 1c77a4f3f88d510c3733ea3a41a18332ec57d4f95bb5660f5e64cebdccc0c2f3 +EBUILD nagios-check_drbd-0.5.2.ebuild 684 RMD160 8c1ac6673bb2f8401e8a0b6fe0b852a2a53c6669 SHA1 3c1e445f9706121cc302647503416c14dd1a56c3 SHA256 089efdca7b53260c0e63d7039382bd393831c6978f9f1b92c27e9ee4b8068aac +MISC ChangeLog 252 RMD160 1dadbc1c4db533f4381ca1e514ed1d6758c537d6 SHA1 4738cccb6aed6e59d8ef5b79262d5528a72cf379 SHA256 5fff1ff837fbea2357aaece11d64829dfe215d550aba6963f06191d3b2e5b620 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_drbd/metadata.xml b/net-analyzer/nagios-check_drbd/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_drbd/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_drbd/nagios-check_drbd-0.5.2.ebuild b/net-analyzer/nagios-check_drbd/nagios-check_drbd-0.5.2.ebuild new file mode 100644 index 0000000..f159133 --- /dev/null +++ b/net-analyzer/nagios-check_drbd/nagios-check_drbd-0.5.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking DRBD" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1771.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl + virtual/perl-Getopt-Long" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.pl + dodoc README +} diff --git a/net-analyzer/nagios-check_heartbeat_link/ChangeLog b/net-analyzer/nagios-check_heartbeat_link/ChangeLog new file mode 100644 index 0000000..6977a36 --- /dev/null +++ b/net-analyzer/nagios-check_heartbeat_link/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for net-analyzer/nagios-check_heartbeat_link +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Nov 2008; Wolfram Schlich + files/nagios-check_heartbeat_link-listnodes.patch, + -nagios-check_heartbeat_link-0.1.1-r1.ebuild, + +nagios-check_heartbeat_link-0.1.1-r2.ebuild: + added missing eutils inheritance, fix patch + + 17 Nov 2008; Wolfram Schlich + +files/nagios-check_heartbeat_link-listnodes.patch, + -nagios-check_heartbeat_link-0.1.1.ebuild, + +nagios-check_heartbeat_link-0.1.1-r1.ebuild: + add patch for cl_status listnodes call + + 17 Nov 2008; Wolfram Schlich +metadata.xml, + +nagios-check_heartbeat_link-0.1.1.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_heartbeat_link/Manifest b/net-analyzer/nagios-check_heartbeat_link/Manifest new file mode 100644 index 0000000..75abc45 --- /dev/null +++ b/net-analyzer/nagios-check_heartbeat_link/Manifest @@ -0,0 +1,5 @@ +AUX nagios-check_heartbeat_link-listnodes.patch 422 RMD160 8026dbb0c3a819a8c48eee1ba3d90a4dee437dd5 SHA1 7b76e015309720dff7a10c75b9399cde4e2de8f9 SHA256 5b42b282e799aada6b25fd10eadae8d32a0d9933d4e7230dea1071f807cc0942 +DIST check_heartbeat_link-0.1.1.tar.bz2 2649 RMD160 8baa111414c9b6b7ef18ba8a0d203ff0f723a4a9 SHA1 b55108bdc29effe8f57c97845fb2a52a8476515e SHA256 54de9fb7febb953352517d9b9bedac82adf9aba437146d4033ae47e762dcc22e +EBUILD nagios-check_heartbeat_link-0.1.1-r2.ebuild 755 RMD160 0f3b16ae049e10cdceee7791ed001ab31d21b1cf SHA1 a00d4c9c5655f4c2b056a9ec6ef6e5816c3551fa SHA256 a5391bbdb7ef29feb02845f7759401fb9a207f572f3184c7fcccea786f5e585b +MISC ChangeLog 763 RMD160 9b4dc6da526bfd2b2340a6084f71edac906d53b4 SHA1 1011dcbcc20e3b8b1cbfc699cdfc2f86c416e51f SHA256 8d5da3e293536bfb8be7269397aa5b117e2ca2b1882d13e4aa16b6a1ac19118f +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_heartbeat_link/files/nagios-check_heartbeat_link-listnodes.patch b/net-analyzer/nagios-check_heartbeat_link/files/nagios-check_heartbeat_link-listnodes.patch new file mode 100644 index 0000000..e4852ce --- /dev/null +++ b/net-analyzer/nagios-check_heartbeat_link/files/nagios-check_heartbeat_link-listnodes.patch @@ -0,0 +1,11 @@ +--- check_heartbeat_link.pl.orig 2008-11-17 19:01:05.523601473 +0100 ++++ check_heartbeat_link.pl 2008-11-17 19:01:13.603723361 +0100 +@@ -136,7 +136,7 @@ + # + my $self; + my @exclude; +- open(CL,"$cl_status listnodes|") || &myexit('CRITICAL',"Could not open $cl_status"); ++ open(CL,"$cl_status listnodes -n|") || &myexit('CRITICAL',"Could not open $cl_status"); + while() { + chop($_); + if (defined($exclude{$_})) { diff --git a/net-analyzer/nagios-check_heartbeat_link/metadata.xml b/net-analyzer/nagios-check_heartbeat_link/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_heartbeat_link/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_heartbeat_link/nagios-check_heartbeat_link-0.1.1-r2.ebuild b/net-analyzer/nagios-check_heartbeat_link/nagios-check_heartbeat_link-0.1.1-r2.ebuild new file mode 100644 index 0000000..98643bb --- /dev/null +++ b/net-analyzer/nagios-check_heartbeat_link/nagios-check_heartbeat_link-0.1.1-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils multilib + +DESCRIPTION="A nagios plugin for checking Heartbeat" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1803.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-listnodes.patch +} +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.pl + dodoc README +} diff --git a/net-analyzer/nagios-check_ilo2_health/ChangeLog b/net-analyzer/nagios-check_ilo2_health/ChangeLog new file mode 100644 index 0000000..77ac0d0 --- /dev/null +++ b/net-analyzer/nagios-check_ilo2_health/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_ilo2_health +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Nov 2008; Wolfram Schlich +metadata.xml, + +nagios-check_ilo2_health-1.41.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_ilo2_health/Manifest b/net-analyzer/nagios-check_ilo2_health/Manifest new file mode 100644 index 0000000..b78a387 --- /dev/null +++ b/net-analyzer/nagios-check_ilo2_health/Manifest @@ -0,0 +1,4 @@ +DIST check_ilo2_health-1.41.tar.bz2 4593 RMD160 f9a21ab98e5bcbedd04c867b57d44e4c9ffd3cfa SHA1 560a52423bafaa18b733c3d910c7cd15cd1978e5 SHA256 47d58f1a0a8109ca34d74e5bacfbc18b092466e3dd18d4edb1fa64900a4f82e1 +EBUILD nagios-check_ilo2_health-1.41.ebuild 671 RMD160 403db31ec116d940c51ea89170a94bdb76c4718a SHA1 286bd743fc83403f30e7fa405b377757a5d80eac SHA256 656e2a8b9752582be0b3e8f3ea669130431e640d52c2e9b15b1d221934f849c3 +MISC ChangeLog 265 RMD160 cd682d4fc8b125b80ef8381d53d76da6642a7691 SHA1 1890a0c7765ed79367161df29240808a78c3ee78 SHA256 002791ca7e763bcf039c729198471d55864d70d142f4c6b34b933ae7fb214199 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_ilo2_health/metadata.xml b/net-analyzer/nagios-check_ilo2_health/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_ilo2_health/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_ilo2_health/nagios-check_ilo2_health-1.41.ebuild b/net-analyzer/nagios-check_ilo2_health/nagios-check_ilo2_health-1.41.ebuild new file mode 100644 index 0000000..6e001bc --- /dev/null +++ b/net-analyzer/nagios-check_ilo2_health/nagios-check_ilo2_health-1.41.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking HP servers using iLO2" +HOMEPAGE="" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl + dev-perl/Nagios-Plugin + dev-perl/IO-Socket-SSL + dev-perl/XML-Simple" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.pl + dodoc README +} diff --git a/net-analyzer/nagios-check_ipmi_chassis/ChangeLog b/net-analyzer/nagios-check_ipmi_chassis/ChangeLog new file mode 100644 index 0000000..92c87e3 --- /dev/null +++ b/net-analyzer/nagios-check_ipmi_chassis/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_ipmi_chassis +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 06 Jan 2009; Wolfram Schlich +metadata.xml, + +nagios-check_ipmi_chassis-1.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_ipmi_chassis/Manifest b/net-analyzer/nagios-check_ipmi_chassis/Manifest new file mode 100644 index 0000000..184b46d --- /dev/null +++ b/net-analyzer/nagios-check_ipmi_chassis/Manifest @@ -0,0 +1,4 @@ +DIST check_ipmi_chassis-1.tar.bz2 1661 RMD160 d9df8b7a04e29f05af9f3dd7e844680adec25f5e SHA1 546c5bae6595beab694da8d7ebd86a1745590414 SHA256 a944f0fdf8dcf601675889c059a9003926b3adb682f7f7103650490ed1863b80 +EBUILD nagios-check_ipmi_chassis-1.ebuild 630 RMD160 6c3e34fb395373f6125aaa3e470968b3f1ade550 SHA1 1760a9ef9c4695af412f3b7a8cca9a66711126c1 SHA256 b6c8ef797d0e7de34539aa9033a81a62090b7b7b1c8a613cbcdb71abea36ef35 +MISC ChangeLog 264 RMD160 20bedf87c3bb3e080660078a396036d55fc45f32 SHA1 d398fb7f3ea4655c2a1fe194daeadb70a7e267ef SHA256 eb6f05d1812760f36e674f883e14f163a99204289db3674c80360f31df831876 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_ipmi_chassis/metadata.xml b/net-analyzer/nagios-check_ipmi_chassis/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_ipmi_chassis/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_ipmi_chassis/nagios-check_ipmi_chassis-1.ebuild b/net-analyzer/nagios-check_ipmi_chassis/nagios-check_ipmi_chassis-1.ebuild new file mode 100644 index 0000000..d237d1e --- /dev/null +++ b/net-analyzer/nagios-check_ipmi_chassis/nagios-check_ipmi_chassis-1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking the chassis status of IPMI-enabled servers" +HOMEPAGE="" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-apps/ipmitool" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.sh +} diff --git a/net-analyzer/nagios-check_md_raid/ChangeLog b/net-analyzer/nagios-check_md_raid/ChangeLog new file mode 100644 index 0000000..f63ec4c --- /dev/null +++ b/net-analyzer/nagios-check_md_raid/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_md_raid +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Dec 2008; Wolfram Schlich + +nagios-check_md_raid-0.7.2.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_md_raid/Manifest b/net-analyzer/nagios-check_md_raid/Manifest new file mode 100644 index 0000000..cdaf513 --- /dev/null +++ b/net-analyzer/nagios-check_md_raid/Manifest @@ -0,0 +1,3 @@ +DIST check_md_raid-0.7.2.tar.bz2 2346 RMD160 a2be2246b2175baeeeb927a71e69cc982dccbb66 SHA1 7eb90c5c1943e0c35784b3d413122dd2996d6917 SHA256 396cb085ac0fb8a6abbefebb19966b3535b3f89af8db499316235b15b983156b +EBUILD nagios-check_md_raid-0.7.2.ebuild 647 RMD160 3dd0b3a6ee3a1eb96435c01b8ea0d761d44641cc SHA1 15db1835b1b7f7a630e6fb852c9951b173455a99 SHA256 748f2209a70d03a730dc3e684dbb15c9721fbfbe1a8d0acb5075a9e8588b2791 +MISC ChangeLog 243 RMD160 c0f374a35b6db80aa5ae5622192d177a899b11ec SHA1 88c77c5d848f4b75d35a06dc4f189a2efd3566e6 SHA256 5438448b0bd05703bd787e727eb8d045396b9548217f3cb35a91ec9feed67148 diff --git a/net-analyzer/nagios-check_md_raid/nagios-check_md_raid-0.7.2.ebuild b/net-analyzer/nagios-check_md_raid/nagios-check_md_raid-0.7.2.ebuild new file mode 100644 index 0000000..b9b1cbb --- /dev/null +++ b/net-analyzer/nagios-check_md_raid/nagios-check_md_raid-0.7.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking Linux software RAID" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2418.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/python" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN} +} diff --git a/net-analyzer/nagios-check_megaraid_sas/ChangeLog b/net-analyzer/nagios-check_megaraid_sas/ChangeLog new file mode 100644 index 0000000..d088696 --- /dev/null +++ b/net-analyzer/nagios-check_megaraid_sas/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for net-analyzer/nagios-check_megaraid_sas +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 07 May 2009; Wolfram Schlich ++, + -files/check_megaraid_sas-megacli-compat.patch: + REALLY fix the file name issue this time + + 07 May 2009; Wolfram Schlich ++, + -files/check_megaraid_sas.pl-megacli-compat.patch: + file name fix + + 07 May 2009; Wolfram Schlich + +files/check_megaraid_sas.pl-megacli-compat.patch, + -nagios-check_megaraid_sas-3.ebuild, + +nagios-check_megaraid_sas-3-r1.ebuild: + added MegaCli compatibility patch (needed for newer versions) + + 07 May 2009; Wolfram Schlich + +nagios-check_megaraid_sas-3.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_megaraid_sas/Manifest b/net-analyzer/nagios-check_megaraid_sas/Manifest new file mode 100644 index 0000000..71bc438 --- /dev/null +++ b/net-analyzer/nagios-check_megaraid_sas/Manifest @@ -0,0 +1,4 @@ +AUX check_megaraid_sas-3-megacli-compat.patch 639 RMD160 39f12059c8ecafdec29a9c1f1cd921fabe65cfb5 SHA1 d173e817fc4df202e463a71d35afe13f0106302f SHA256 7c575c4b2072d2201b3c91f0da3f19c5a30b69bd9442b571dd27ecc2b9a2880a +DIST check_megaraid_sas-3.tar.bz2 2327 RMD160 7c7090489f5aa3d0d0f42c038eb45b975c52111a SHA1 35bf949eafeb26216db9b03ce3f877f0f79e0030 SHA256 44c3dffaa13f2e864b915d630e55f06f88d9898e8296be69b16d07f038bb6e76 +EBUILD nagios-check_megaraid_sas-3-r1.ebuild 767 RMD160 db7256895fded849d12a004573a61f0a2d9f09c6 SHA1 d4b11e2b8587b83c4ebebb09d1c07ceb7b1e23c7 SHA256 29c69f855e835d30dd9d1c663f3b1b87ceb951f5ec16364bf22d8bcf642d8d94 +MISC ChangeLog 779 RMD160 47261c9616c1cabbfdfe52345347a0bb12f2008f SHA1 4cb4ba5ffd3205017d87f2fc347dfc45042139d4 SHA256 4425cefb845c204d916fbd1dc361ae425765c47934e5551f9d510f1192ca474b diff --git a/net-analyzer/nagios-check_megaraid_sas/files/check_megaraid_sas-3-megacli-compat.patch b/net-analyzer/nagios-check_megaraid_sas/files/check_megaraid_sas-3-megacli-compat.patch new file mode 100644 index 0000000..6af4772 --- /dev/null +++ b/net-analyzer/nagios-check_megaraid_sas/files/check_megaraid_sas-3-megacli-compat.patch @@ -0,0 +1,20 @@ +--- check_megaraid_sas.pl.orig 2009-05-07 15:25:44.520619635 +0200 ++++ check_megaraid_sas.pl 2009-05-07 15:26:31.502484300 +0200 +@@ -96,7 +96,7 @@ + + my ($ldnum); + while () { +- if ( m/Number of Virtual drives configured on adapter \d:\s*(\d+)/ ) { ++ if ( m/number of virtual drives configured on adapter \d:\s*(\d+)/i ) { + $ldnum = $1; + last; + } +@@ -110,7 +110,7 @@ + + my ($size, $unit, $raidlevel, $ldpdcount, $state); + while () { +- if ( m/Size:\s*((\d+)(MB|GB|TB))/ ) { ++ if ( m/Size:\s*(([\d.]+)\s*(MB|GB|TB))/ ) { + $size = $2; + $unit = $3; + # Adjust MB to GB if that's what we got diff --git a/net-analyzer/nagios-check_megaraid_sas/nagios-check_megaraid_sas-3-r1.ebuild b/net-analyzer/nagios-check_megaraid_sas/nagios-check_megaraid_sas-3-r1.ebuild new file mode 100644 index 0000000..fbedaa7 --- /dev/null +++ b/net-analyzer/nagios-check_megaraid_sas/nagios-check_megaraid_sas-3-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib eutils + +DESCRIPTION="A nagios plugin for checking LSI Logic MegaRAID SAS RAID controllers" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1394.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${MY_P}-megacli-compat.patch +} +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.pl +} diff --git a/net-analyzer/nagios-check_mpt/ChangeLog b/net-analyzer/nagios-check_mpt/ChangeLog new file mode 100644 index 0000000..b030b7a --- /dev/null +++ b/net-analyzer/nagios-check_mpt/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_mpt +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Dec 2008; Wolfram Schlich + +files/check_mpt-0.1-lib.patch, +nagios-check_mpt-0.1.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_mpt/Manifest b/net-analyzer/nagios-check_mpt/Manifest new file mode 100644 index 0000000..0f5b605 --- /dev/null +++ b/net-analyzer/nagios-check_mpt/Manifest @@ -0,0 +1,4 @@ +AUX check_mpt-0.1-lib.patch 432 RMD160 48f3ee0a73c2b6c819d7f310cdc1142a1a8a9b40 SHA1 95f0f59158302a0f772d61407c4a16e2ecd32982 SHA256 c9ac5a6e0fbf8860a299d36aa938bd140dd7228eeffe25ad68ecbb6bc610c7b5 +DIST check_mpt-0.1.tar.bz2 1470 RMD160 8e078ab746c7ca54ea956f1f435a906938784794 SHA1 0ccb6639ba88c02b6b543aa31806e5bdaf593d24 SHA256 d60a76b9ea38f619c921ca9b580619afcf8316a1635e09368aa9a95a6e3dcd63 +EBUILD nagios-check_mpt-0.1.ebuild 780 RMD160 00e7dbfbcdea5b34236911181b73d9b8f743cab6 SHA1 24363d3e9e16f33f9ffc67c28faa66933555cd8e SHA256 193f0a6ea9564b6020d6b98022831e09265cf2ffbf816876dba5517d01bfbdc7 +MISC ChangeLog 265 RMD160 8cae5c13ee83708fd4b68876cb119643d74238d3 SHA1 05acc3efa51ce0a0a0a1b1b7d0c6d570b9fd3f2b SHA256 dcb11adf9bf82144d459d3fbc090597b5cced9d5a8ebcd5e15641bb8e1823519 diff --git a/net-analyzer/nagios-check_mpt/files/check_mpt-0.1-lib.patch b/net-analyzer/nagios-check_mpt/files/check_mpt-0.1-lib.patch new file mode 100644 index 0000000..e6cab14 --- /dev/null +++ b/net-analyzer/nagios-check_mpt/files/check_mpt-0.1-lib.patch @@ -0,0 +1,12 @@ +diff -urN check_mpt-0.1.orig/check_mpt.pl check_mpt-0.1/check_mpt.pl +--- check_mpt-0.1.orig/check_mpt.pl 2008-12-05 19:01:17.807868000 +0100 ++++ check_mpt-0.1/check_mpt.pl 2008-12-05 19:04:13.870524571 +0100 +@@ -24,7 +24,7 @@ + use English; + use Getopt::Long; + use vars qw($PROGNAME); +-use lib "/usr/local/nagios/libexec" ; ++use lib "/usr/lib/nagios/plugins" ; + use utils qw (%ERRORS &print_revision &support); + + sub print_help (); diff --git a/net-analyzer/nagios-check_mpt/nagios-check_mpt-0.1.ebuild b/net-analyzer/nagios-check_mpt/nagios-check_mpt-0.1.ebuild new file mode 100644 index 0000000..ed8918c --- /dev/null +++ b/net-analyzer/nagios-check_mpt/nagios-check_mpt-0.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib eutils + +DESCRIPTION="A nagios plugin for checking LSI Logic MPT Fusion RAID controllers" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2236.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl + virtual/perl-Getopt-Long" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${MY_P}-lib.patch +} +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.pl +} diff --git a/net-analyzer/nagios-check_raid/ChangeLog b/net-analyzer/nagios-check_raid/ChangeLog new file mode 100644 index 0000000..8f30a9a --- /dev/null +++ b/net-analyzer/nagios-check_raid/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_raid +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Dec 2008; Wolfram Schlich + +nagios-check_raid-2.0.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_raid/Manifest b/net-analyzer/nagios-check_raid/Manifest new file mode 100644 index 0000000..cc589c2 --- /dev/null +++ b/net-analyzer/nagios-check_raid/Manifest @@ -0,0 +1,4 @@ +DIST check_raid-2.0.tar.gz 510319 RMD160 198ed00e209f6cda8be2085e8b0e5f8393494927 SHA1 14c1ccb3471ae045ef250f6dafbe00787156a5b4 SHA256 32664e918c1bf73ab02f44552e0847b2f7daaa399ff9eda44ac7f9451e73b555 +EBUILD nagios-check_raid-2.0.ebuild 672 RMD160 d58e79acbfc50ff1e0922b0e4ff5c146ed697da4 SHA1 ea89a7b4b603635cec17896fe45bd4d59f2eaf3e SHA256 47ee16c22b724c7857d6f5a8c9b1eacd1eed6db07b6aa6ca625ca587bdfb587f +MISC ChangeLog 235 RMD160 8d4c34d6d5f1b9631f9514e4faba9fe17f7c0163 SHA1 239451b54a1ef2a54dbff17d892d221cf17737e9 SHA256 7955c9ae4d3a3edebdf9cdaccc8b06e35f9a1e4b9f0482718adb0b29fdd6944a +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_raid/metadata.xml b/net-analyzer/nagios-check_raid/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_raid/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_raid/nagios-check_raid-2.0.ebuild b/net-analyzer/nagios-check_raid/nagios-check_raid-2.0.ebuild new file mode 100644 index 0000000..e3c6adc --- /dev/null +++ b/net-analyzer/nagios-check_raid/nagios-check_raid-2.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking different types of RAIDs" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1692.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/perl + virtual/perl-Getopt-Long" + +S="${WORKDIR}/nrpe" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN} +} diff --git a/net-analyzer/nagios-check_swraid/ChangeLog b/net-analyzer/nagios-check_swraid/ChangeLog new file mode 100644 index 0000000..6980f89 --- /dev/null +++ b/net-analyzer/nagios-check_swraid/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_swraid +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Dec 2008; Wolfram Schlich + +nagios-check_swraid-0.3.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_swraid/Manifest b/net-analyzer/nagios-check_swraid/Manifest new file mode 100644 index 0000000..ff0a988 --- /dev/null +++ b/net-analyzer/nagios-check_swraid/Manifest @@ -0,0 +1,3 @@ +DIST check_swraid-0.3.tar.bz2 1551 RMD160 ef39c0482658f617485f945c93e03d588a3872e9 SHA1 1ac21effa62211ffaa7cb2ba1385dcd2b74f80a3 SHA256 fa7d11d86d6f2893ed94b952f962bfb1380e6d2f5c08070a4de582cee8d4febb +EBUILD nagios-check_swraid-0.3.ebuild 657 RMD160 a73f777a13b9cfa3a5fa1c8ae9c6936f7a1834c8 SHA1 b82fbf23708ca9cb68a30e6a313d1748d298125a SHA256 f6a399e049487ce2d9a957bd58e48fb267fde40910d8ccbeba85bc5909d16b36 +MISC ChangeLog 239 RMD160 34978048c233befe6f6e10bd5051c8da3cf34d55 SHA1 29d50251c27a25f16baece3dc40ba7f564b13716 SHA256 3cb6416960ecdb3b9ff7ff3d5a69c93c9c4635034149822c07d41e464a7c27fb diff --git a/net-analyzer/nagios-check_swraid/nagios-check_swraid-0.3.ebuild b/net-analyzer/nagios-check_swraid/nagios-check_swraid-0.3.ebuild new file mode 100644 index 0000000..bc1a953 --- /dev/null +++ b/net-analyzer/nagios-check_swraid/nagios-check_swraid-0.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib eutils + +DESCRIPTION="A nagios plugin for checking Linux software RAID" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2152.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="dev-lang/python" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.py +} diff --git a/net-analyzer/nagios-check_xen/ChangeLog b/net-analyzer/nagios-check_xen/ChangeLog new file mode 100644 index 0000000..50be4da --- /dev/null +++ b/net-analyzer/nagios-check_xen/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/nagios-check_xen +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 05 Feb 2009; Wolfram Schlich +metadata.xml, + +nagios-check_xen-0.9.1.ebuild: + initial import + diff --git a/net-analyzer/nagios-check_xen/Manifest b/net-analyzer/nagios-check_xen/Manifest new file mode 100644 index 0000000..0d91280 --- /dev/null +++ b/net-analyzer/nagios-check_xen/Manifest @@ -0,0 +1,4 @@ +DIST check_xen-0.9.1.tar.bz2 2333 RMD160 372e86d8b0f5628c07742e5bca6b1f33c5d1a107 SHA1 bff0684d35a6aa4cc4f5b905ba55d41227309a52 SHA256 84432b29abc4ffe83a802d0d6e73e4601140768d9a7667989570cff5ad69a8e2 +EBUILD nagios-check_xen-0.9.1.ebuild 745 RMD160 cbba1515bc2e7e61f5949d1a8b5a218dff69446f SHA1 b62f8956fa4edca62a8598b51f64d9112eb61edc SHA256 ef7f61c3097220039de36a9f75278254bd99338c7ef6233baed4d52bde05b275 +MISC ChangeLog 250 RMD160 f24b78e6f83943aba30ef9724eb801797c40e4e3 SHA1 f0fad1673899d4e2b3b0c8d3eb7fc5b6559fdbce SHA256 466bc40e2b883561080659decf6e000ca8d1fb60e7c957b8a137f4b12ba04e80 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-analyzer/nagios-check_xen/metadata.xml b/net-analyzer/nagios-check_xen/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-analyzer/nagios-check_xen/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-analyzer/nagios-check_xen/nagios-check_xen-0.9.1.ebuild b/net-analyzer/nagios-check_xen/nagios-check_xen-0.9.1.ebuild new file mode 100644 index 0000000..7f6fb17 --- /dev/null +++ b/net-analyzer/nagios-check_xen/nagios-check_xen-0.9.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A nagios plugin for checking Xen (dom0 + domU status)" +HOMEPAGE="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2272.html;d=1" + +MY_PN=${PN/nagios-/} +MY_P=${MY_PN}-${PV} + +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.bz2" +LICENSE="GPL" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="app-shells/bash + sys-process/procps + sys-process/lsof + app-admin/sudo + app-emulation/xen-tools" + +S="${WORKDIR}/${MY_P}" + +src_compile() { :; } +src_install() { + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe ${MY_PN}.sh +} diff --git a/net-analyzer/nagios-plugins-extra/ChangeLog b/net-analyzer/nagios-plugins-extra/ChangeLog new file mode 100644 index 0000000..ee82c34 --- /dev/null +++ b/net-analyzer/nagios-plugins-extra/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for net-analyzer/nagios-plugins-extra +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 01 Apr 2008; Wolfram Schlich + -nagios-plugins-extra-2.ebuild, +nagios-plugins-extra-4.ebuild: + version bump + + 01 Apr 2008; Wolfram Schlich + nagios-plugins-extra-2.ebuild: + added RESTRICT=mirror + + 01 Apr 2008; Wolfram Schlich + -nagios-plugins-extra-1.ebuild, +nagios-plugins-extra-2.ebuild: + version bump + + 01 Apr 2008; Wolfram Schlich + +nagios-plugins-extra-1.ebuild: + initial import + diff --git a/net-analyzer/nagios-plugins-extra/Manifest b/net-analyzer/nagios-plugins-extra/Manifest new file mode 100644 index 0000000..ba18cf5 --- /dev/null +++ b/net-analyzer/nagios-plugins-extra/Manifest @@ -0,0 +1,3 @@ +DIST nagios-plugins-extra-4.tar.bz2 4426 RMD160 2e7ed2c5df124bbcf0b288e1a900c65ab2222f6c SHA1 42c02c443168d4990a0b0592b90d88cd185f6117 SHA256 066b5e437ea2fbb5ae655cb8f59f1aed6305655efcb92b0973ebb009f94ebb32 +EBUILD nagios-plugins-extra-4.ebuild 814 RMD160 c3c5e1e2ade2a500263e778bb9729264c912d7fb SHA1 fc6a713bb194a98edff42bcd9cc832e2c15f29ca SHA256 00397fc153559159bfecc13bf543e0b31e3a95556e5796b745628ef130ab1652 +MISC ChangeLog 620 RMD160 655851490bdef7d6c567643434b526479b30b33d SHA1 d070c0f6928d659dc0a1176d7a97f5851764f740 SHA256 0536aac82ba7c8730bee33db27e8b8687b68de1a923baa4fac5a01dbd873bee5 diff --git a/net-analyzer/nagios-plugins-extra/nagios-plugins-extra-4.ebuild b/net-analyzer/nagios-plugins-extra/nagios-plugins-extra-4.ebuild new file mode 100644 index 0000000..1f6edb2 --- /dev/null +++ b/net-analyzer/nagios-plugins-extra/nagios-plugins-extra-4.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +IUSE="" +DESCRIPTION="" +HOMEPAGE="http://dev.gentoo.org/~wschlich/misc/nagios/${PN}/" +SRC_URI="http://dev.gentoo.org/~wschlich/misc/nagios/${PN}/${P}.tar.bz2" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +RESTRICT="mirror" + +src_compile() { + : +} + +src_install() { + diropts -o root -g root -m 0750 + dodir /usr/$(get_libdir)/nagios/plugins/extra + diropts -o root -g nagios -m 0750 + dodir /usr/$(get_libdir)/nagios/plugins/extra + + exeopts -o root -g nagios -m 0750 + exeinto /usr/$(get_libdir)/nagios/plugins/extra + doexe plugins/* + + dodoc misc/* +} + +pkg_postinst() { + chown root:nagios ${ROOT}/usr/$(get_libdir)/nagios/plugins + chmod 0750 ${ROOT}/usr/$(get_libdir)/nagios/plugins +} diff --git a/net-mail/gnarwl/ChangeLog b/net-mail/gnarwl/ChangeLog new file mode 100644 index 0000000..919446d --- /dev/null +++ b/net-mail/gnarwl/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-mail/gnarwl +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 19 Jun 2009; Wolfram Schlich gnarwl-3.6.ebuild: + fix paths, added some variables for user control of ebuild setup + + 18 Jun 2009; Wolfram Schlich +metadata.xml, + +gnarwl-3.6.ebuild: + initial import + diff --git a/net-mail/gnarwl/Manifest b/net-mail/gnarwl/Manifest new file mode 100644 index 0000000..414905a --- /dev/null +++ b/net-mail/gnarwl/Manifest @@ -0,0 +1,4 @@ +DIST gnarwl-3.6.tgz 73111 RMD160 c1b60da88d0f2cb5e74073d6b69d636d7e13ca65 SHA1 f1c06f176c1782077d01235c5d21b293c2b0ac8b SHA256 51735d91746b689c97e8cbb35a3b0d8c392135a21a24c96cdadc692edfec64ec +EBUILD gnarwl-3.6.ebuild 1454 RMD160 229ea06ee6dddabe3dd37514ba202d7f14557852 SHA1 ac0edf3ffbc766561cb5f2e19309dff6b463ec31 SHA256 38b3a0d730662e8c7f896d4c818a842492aa629e770c4cc4d07c2cc5247e97b3 +MISC ChangeLog 364 RMD160 d5ed4b1f57e2fb1a18e59c6aed685daa2971a39f SHA1 f63aaa5f148748505558cbe366ec127f8585596b SHA256 c4191078a19e3331bd69ca4e5131182395b6bb5ee1e33c959d55cb774092f513 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-mail/gnarwl/gnarwl-3.6.ebuild b/net-mail/gnarwl/gnarwl-3.6.ebuild new file mode 100644 index 0000000..06c57e1 --- /dev/null +++ b/net-mail/gnarwl/gnarwl-3.6.ebuild @@ -0,0 +1,58 @@ +# $Header: $ + +inherit eutils + +DESCRIPTION="Gnarwl is a serverside email autoresponder, which is backed by an LDAP database." +SRC_URI="http://www.onyxbits.de/sites/default/files/${P}.tgz" +HOMEPAGE="http://www.onyxbits.de/gnarwl" +LICENSE="GPL-2" +SLOT="0" +#IUSE="targrey" +DEPEND="" +RDEPEND=" + >=sys-devel/gcc-2.95.3 + >=sys-libs/gdbm-1.8.0 + >=net-nds/openldap-2.0.23 + mail-mta/postfix + sys-devel/make + sys-apps/groff + app-arch/gzip" + +KEYWORDS="~amd64 ~x86" + +pkg_setup() { + GNARWL_HOME=${GNARWL_HOME:-/var/lib/gnarwl} + GNARWL_USER=${GNARWL_USER:-gnarwl} + GNARWL_GROUP=${GNARWL_GROUP:-gnarwl} + enewgroup ${GNARWL_GROUP} || die "enewgroup failed" + enewuser ${GNARWL_USER} -1 -1 ${GNARWL_HOME} ${GNARWL_USER} -c "gnarwl autoreply agent" || die "enewuser failed" +} + +src_compile() { + econf --with-homedir=${GNARWL_HOME} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + dobin src/gnarwl + dosbin src/damnit + + insinto ${GNARWL_HOME} + doins data/{header,footer}.txt + dodir ${GNARWL_HOME}/{block,bin} + echo "|/usr/bin/gnarwl" > .forward + doins .forward + ./src/damnit -a badheaders.db < data/badheaders.txt + ./src/damnit -a blacklist.db < data/blacklist.txt + doins badheaders.db + doins blacklist.db + + insinto /etc + doins data/gnarwl.cfg + + doman doc/{damnit,gnarwl}.8 + dodoc doc/{FAQ,HISTORY,README,README.upgrade,*.ldif,*.schema} + + fowners -R ${GNARWL_USER}:${GNARWL_GROUP} ${GNARWL_HOME} + fowners ${GNARWL_USER}:${GNARWL_GROUP} /etc/gnarwl.cfg +} diff --git a/net-mail/gnarwl/metadata.xml b/net-mail/gnarwl/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-mail/gnarwl/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-misc/unison/Manifest b/net-misc/unison/Manifest new file mode 100644 index 0000000..8d4caeb --- /dev/null +++ b/net-misc/unison/Manifest @@ -0,0 +1,10 @@ +DIST unison-2.27.29-manual.html 231860 RMD160 e1914a7f87a0062a48f37132b212a53c3dfd7208 SHA1 3633363b76568e4427fdf66cb03bfc1b353f58cf SHA256 8ebe142ae15ed66bcc061ad6935aab23f67c8fde5eb9ce54c96a712f53ea576a +DIST unison-2.27.29-manual.pdf 451367 RMD160 1a0a71545854ecfc9ee24a3a6a5b37905b9c9cdc SHA1 c394d07cf93feb082f6a742ac13a73eef28b2b19 SHA256 649eb962673ef830b472115262a7474d376f6ae0815a3fd9644789e306fcdda0 +DIST unison-2.27.29.tar.gz 591171 RMD160 a700e9b7275712201e14ddad5fc5e1995ebbb3d2 SHA1 8622c9ce1dfb9ef1b173b8854690756d4ded4c4c SHA256 3665346238db717e0439476c1ddbde754e4becf5c0fdd70652f107dbda1254b7 +EBUILD unison-2.27.29.ebuild 1710 RMD160 454f162e96475f19453e2e6a3e60bd59c8230cd9 SHA1 042cb50adb3bd8727fe7e7bbfa0adc551fba07a7 SHA256 770ed45828b20c11d25d06105870a8e416be49cbca4b9284de9e1013f1159217 +MD5 7200de2a709b1e53faf1f49a99bd0fe3 unison-2.27.29.ebuild 1710 +RMD160 454f162e96475f19453e2e6a3e60bd59c8230cd9 unison-2.27.29.ebuild 1710 +SHA256 770ed45828b20c11d25d06105870a8e416be49cbca4b9284de9e1013f1159217 unison-2.27.29.ebuild 1710 +MD5 d67a0dfe50a70e4fb217abb0ae00d802 files/digest-unison-2.27.29 759 +RMD160 a7325d81c11f1ef57b470383a76948ef4f45666d files/digest-unison-2.27.29 759 +SHA256 32df2202ab933d9be2313ef2656ce6d41a49b9f6d0d03ce3e7e985230a3b1258 files/digest-unison-2.27.29 759 diff --git a/net-misc/unison/files/digest-unison-2.27.29 b/net-misc/unison/files/digest-unison-2.27.29 new file mode 100644 index 0000000..49e4637 --- /dev/null +++ b/net-misc/unison/files/digest-unison-2.27.29 @@ -0,0 +1,9 @@ +MD5 6fbe74c53d36e7ef6dd5014d7818f4c1 unison-2.27.29-manual.html 231860 +RMD160 e1914a7f87a0062a48f37132b212a53c3dfd7208 unison-2.27.29-manual.html 231860 +SHA256 8ebe142ae15ed66bcc061ad6935aab23f67c8fde5eb9ce54c96a712f53ea576a unison-2.27.29-manual.html 231860 +MD5 96e64571ea7d96d29ceab89df19b2f90 unison-2.27.29-manual.pdf 451367 +RMD160 1a0a71545854ecfc9ee24a3a6a5b37905b9c9cdc unison-2.27.29-manual.pdf 451367 +SHA256 649eb962673ef830b472115262a7474d376f6ae0815a3fd9644789e306fcdda0 unison-2.27.29-manual.pdf 451367 +MD5 a79280de81c6cf47014ddc6881911323 unison-2.27.29.tar.gz 591171 +RMD160 a700e9b7275712201e14ddad5fc5e1995ebbb3d2 unison-2.27.29.tar.gz 591171 +SHA256 3665346238db717e0439476c1ddbde754e4becf5c0fdd70652f107dbda1254b7 unison-2.27.29.tar.gz 591171 diff --git a/net-misc/unison/unison-2.27.29.ebuild b/net-misc/unison/unison-2.27.29.ebuild new file mode 100644 index 0000000..ca305d5 --- /dev/null +++ b/net-misc/unison/unison-2.27.29.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils pax-utils + +IUSE="gtk doc static debug threads" + +DESCRIPTION="Two-way cross-platform file synchronizer" +HOMEPAGE="http://www.cis.upenn.edu/~bcpierce/unison/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64 ~sparc" + +DEPEND=">=dev-lang/ocaml-3.04 + gtk? ( >=dev-ml/lablgtk-2.2 )" + +RDEPEND="gtk? ( >=dev-ml/lablgtk-2.2 +|| ( net-misc/x11-ssh-askpass net-misc/gtk2-ssh-askpass ) )" + +PDEPEND="gtk? ( media-fonts/font-schumacher-misc )" + +SRC_URI="http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}.tar.gz +doc? ( http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.pdf + http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.html )" + +src_compile() { + local myconf + + if useq threads; then + myconf="${myconf} THREADS=true" + fi + if useq static; then + myconf="${myconf} STATIC=true" + fi + if useq debug; then + myconf="${myconf} DEBUGGING=true" + fi + if useq gtk; then + myconf="${myconf} UISTYLE=gtk2" + else + myconf="${myconf} UISTYLE=text" + fi + + make ${myconf} CFLAGS="" || die +} + +src_install () { + # install manually, since it's just too much + # work to force the Makefile to do the right thing. + dobin unison || die + dodoc BUGS.txt CONTRIB COPYING INSTALL NEWS \ + README ROADMAP.txt TODO.txt || die + + if useq doc; then + dohtml ${DISTDIR}/${P}-manual.html || die + dodoc ${DISTDIR}/${P}-manual.pdf || die + fi + + # Turn MPROTECT off for the unison binary, since it is trying to + # rewrite the segment (which will obviously fail on systems having + # PAX_MPROTECT enabled). + pax-mark -m "${D}"/usr/bin/unison +} diff --git a/net-wireless/madwifi-ng-tools/ChangeLog b/net-wireless/madwifi-ng-tools/ChangeLog new file mode 100644 index 0000000..e00e4c6 --- /dev/null +++ b/net-wireless/madwifi-ng-tools/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-wireless/madwifi-ng-tools +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 18 Mar 2009; Wolfram Schlich +metadata.xml, + +madwifi-ng-tools-3941_p20090205.ebuild: + initial import + diff --git a/net-wireless/madwifi-ng-tools/Manifest b/net-wireless/madwifi-ng-tools/Manifest new file mode 100644 index 0000000..aa8800a --- /dev/null +++ b/net-wireless/madwifi-ng-tools/Manifest @@ -0,0 +1,4 @@ +DIST madwifi-trunk-r3941-20090205.tar.gz 4160203 RMD160 73149107fd296f9c4790b504f7a72274c5bf5074 SHA1 ecedae822127a14e9e4899849cb1172066228db6 SHA256 e3b58cd77a836d0c5800ce5d1c92c17c0dd34782d90895d62a992a008c871310 +EBUILD madwifi-ng-tools-3941_p20090205.ebuild 1703 RMD160 c40622b2c17663835ea26482150c534cdd4c3cfb SHA1 acfe502993122f6f2e3acbbfcfeabace7aeaf227 SHA256 19d07260164943d6871f9df2a0b22091876ee0af33e907286df5c159f9b0de65 +MISC ChangeLog 259 RMD160 6646dc8651789cf0288ed872d9029484a391f4c0 SHA1 0e34320bfbb1de43aeac1aaf9a1f2ed13f41f59a SHA256 688b31aec94c8b9812a69341866aa47f684301ad9ddec7822a688a6e1377b4b4 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-wireless/madwifi-ng-tools/madwifi-ng-tools-3941_p20090205.ebuild b/net-wireless/madwifi-ng-tools/madwifi-ng-tools-3941_p20090205.ebuild new file mode 100644 index 0000000..3f64703 --- /dev/null +++ b/net-wireless/madwifi-ng-tools/madwifi-ng-tools-3941_p20090205.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs + +MY_P="${PN/-ng-tools/}-trunk-r${PV%%_p*}-${PV##*_p}" +S=${WORKDIR}/${MY_P}/tools + +DESCRIPTION="Next Generation tools for configuration of Atheros based IEEE 802.11a/b/g wireless LAN cards" +HOMEPAGE="http://www.madwifi-project.org/" +SRC_URI="http://snapshots.madwifi-project.org/madwifi-trunk/${MY_P}.tar.gz" + +LICENSE="|| ( BSD GPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="" +DEPEND="virtual/libc" +RDEPEND="!net-wireless/madwifi-old-tools + ${DEPEND}" + +src_unpack() { + unpack ${A} + sed -i \ + -e "s:CC =.*:CC = $(tc-getCC):" \ + -e "s:CFLAGS=:CFLAGS+=:" \ + -e "s:LDFLAGS=:LDFLAGS+=:" \ + "${S}"/Makefile || die +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" BINDIR=/usr/bin MANDIR=/usr/share/man STRIP=echo \ + install || die "emake install failed" + + dodir /sbin + mv "${D}"/usr/bin/wlanconfig "${D}"/sbin + + # install headers for use by + # net-wireless/wpa_supplicant and net-wireless/hostapd + cd "${S}"/.. + insinto /usr/include/madwifi/include/ + doins include/*.h + insinto /usr/include/madwifi/net80211 + doins net80211/*.h +} + +pkg_postinst() { + if [ -e "${ROOT}"/etc/udev/rules.d/65-madwifi.rules ]; then + ewarn + ewarn "The udev rules for creating interfaces (athX) are no longer needed." + ewarn + ewarn "You should manually remove the /etc/udev/rules.d/65-madwifi.rules file" + ewarn "and either run 'udevstart' or reboot for the changes to take effect." + ewarn + fi + einfo + einfo "If you use net-wireless/wpa_supplicant or net-wireless/hostapd with madwifi" + einfo "you should remerge them now." + einfo +} diff --git a/net-wireless/madwifi-ng-tools/metadata.xml b/net-wireless/madwifi-ng-tools/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-wireless/madwifi-ng-tools/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-wireless/madwifi-ng/ChangeLog b/net-wireless/madwifi-ng/ChangeLog new file mode 100644 index 0000000..2143515 --- /dev/null +++ b/net-wireless/madwifi-ng/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-wireless/madwifi-ng +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 18 Mar 2009; Wolfram Schlich +metadata.xml, + +madwifi-ng-3941_p20090205.ebuild: + initial import + diff --git a/net-wireless/madwifi-ng/Manifest b/net-wireless/madwifi-ng/Manifest new file mode 100644 index 0000000..4b4eaa6 --- /dev/null +++ b/net-wireless/madwifi-ng/Manifest @@ -0,0 +1,4 @@ +DIST madwifi-trunk-r3941-20090205.tar.gz 4160203 RMD160 73149107fd296f9c4790b504f7a72274c5bf5074 SHA1 ecedae822127a14e9e4899849cb1172066228db6 SHA256 e3b58cd77a836d0c5800ce5d1c92c17c0dd34782d90895d62a992a008c871310 +EBUILD madwifi-ng-3941_p20090205.ebuild 2981 RMD160 ae69658a325f66f1772aadec91a2f0e85dc35e34 SHA1 fb6ec7df22478e11c048558250228a0a894c8736 SHA256 9fe311ae79987993f74de54e744ae8d4715ddad9106ee1cdc03694a57e99c15a +MISC ChangeLog 247 RMD160 dd6eb22364f024c7348067b102a3adb23901656f SHA1 77406a9aabee5ca0371814242ba6790fbf32f65b SHA256 cff0bdd088b46c5e9d5e8098c1c5c65936b189719aa2411ab30491dc451d02e9 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/net-wireless/madwifi-ng/madwifi-ng-3941_p20090205.ebuild b/net-wireless/madwifi-ng/madwifi-ng-3941_p20090205.ebuild new file mode 100644 index 0000000..be3d9e8 --- /dev/null +++ b/net-wireless/madwifi-ng/madwifi-ng-3941_p20090205.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod + +MY_P="${PN/-ng/}-trunk-r${PV%%_p*}-${PV##*_p}" +S="${WORKDIR}"/${MY_P} + +DESCRIPTION="Next Generation driver for Atheros based IEEE 802.11a/b/g wireless LAN cards" +HOMEPAGE="http://www.madwifi-project.org/" +SRC_URI="http://snapshots.madwifi-project.org/madwifi-trunk/${MY_P}.tar.gz" +RESTRICT="mirror" + +LICENSE="atheros-hal + || ( BSD GPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="injection" + +RDEPEND="!net-wireless/madwifi-old + net-wireless/wireless-tools + ~net-wireless/madwifi-ng-tools-${PV}" + +CONFIG_CHECK="CRYPTO WIRELESS_EXT SYSCTL KMOD" +ERROR_CRYPTO="${P} requires Cryptographic API support (CONFIG_CRYPTO)." +ERROR_WIRELESS_EXT="${P} requires CONFIG_WIRELESS_EXT selected by Wireless LAN drivers (non-hamradio) & Wireless Extensions" +ERROR_SYSCTL="${P} requires Sysctl support (CONFIG_SYSCTL)." +ERROR_KMOD="${F} requires CONFIG_KMOD to be set to y or m" +BUILD_TARGETS="all" +MODULESD_ATH_PCI_DOCS="README" + +pkg_setup() { + linux-mod_pkg_setup + + MODULE_NAMES='ath_hal(net:"${S}"/ath_hal) + wlan(net:"${S}"/net80211) + wlan_acl(net:"${S}"/net80211) + wlan_ccmp(net:"${S}"/net80211) + wlan_tkip(net:"${S}"/net80211) + wlan_wep(net:"${S}"/net80211) + wlan_xauth(net:"${S}"/net80211) + wlan_scan_sta(net:"${S}"/net80211) + wlan_scan_ap(net:"${S}"/net80211) + ath_rate_amrr(net:"${S}"/ath_rate/amrr) + ath_rate_onoe(net:"${S}"/ath_rate/onoe) + ath_rate_sample(net:"${S}"/ath_rate/sample) + ath_rate_minstrel(net:"${S}"/ath_rate/minstrel) + ath_pci(net:"${S}"/ath)' + + BUILD_PARAMS="KERNELPATH=${KV_OUT_DIR}" +} + +src_unpack() { + unpack ${A} + + cd "${S}" + touch svnversion.h + if use injection; then epatch "${FILESDIR}"/${PN}-r1886.patch; fi + for dir in ath ath_hal net80211 ath_rate ath_rate/amrr ath_rate/minstrel ath_rate/onoe ath_rate/sample; do + convert_to_m "${S}/${dir}/Makefile" + done +} + +src_install() { + linux-mod_src_install + + dodoc README THANKS +} + +pkg_postinst() { + local moddir="${ROOT}/lib/modules/${KV_FULL}/net/" + + linux-mod_pkg_postinst + + einfo + einfo "Interfaces (athX) are now automatically created upon loading the ath_pci" + einfo "module." + einfo + einfo "The type of the created interface can be controlled through the 'autocreate'" + einfo "module parameter." + einfo + einfo "As of net-wireless/madwifi-ng-0.9.3 rate control module selection is done at" + einfo "module load time via the 'ratectl' module parameter. USE flags amrr and onoe" + einfo "no longer serve any purpose." + + elog "Please note: This release is based off of 0.9.3.3 and NOT trunk." + elog "# No AR5007 support in this release;" + elog "experimental support is available for i386 (32bit) in #1679" + elog "# No AR5008 support in this release; support is available in trunk " + elog "No, we will not apply the patch from 1679, if you must, please do so + in an overlay on your system. That is upstreams ticket 1679, not Gentoo's." +} diff --git a/net-wireless/madwifi-ng/metadata.xml b/net-wireless/madwifi-ng/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/net-wireless/madwifi-ng/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/net-www/awstats/Manifest b/net-www/awstats/Manifest new file mode 100644 index 0000000..b1ce745 --- /dev/null +++ b/net-www/awstats/Manifest @@ -0,0 +1,4 @@ +AUX awstats-6.3-gentoo.diff 1219 RMD160 8c6ea2a093c231043674f8f14bc4332cfeeee930 SHA1 8a1971c0e710cec05004a7e94461f83f77b2fd1a SHA256 0de073550f021a93d883c307f999b4b6ead1abf3a587118e2e01578907d15814 +AUX postinst-en-r1.txt 2412 RMD160 6f4b9705b36ab0968d82f94915d8d6526f52fbe8 SHA1 953ec2765fd8322035c4b5dbc92741343814ffee SHA256 ae1c4d318867c444583af0b34b057955cc10f45fc6fa5457f06261d8ba5b3884 +DIST awstats-6.8.tar.gz 1101851 RMD160 b03f382b19bc057598fb231d58afefdfb91c07bb SHA1 cd0ab93ca28e5a194401232931d8f4521af10ae9 SHA256 a888d0fd680016f71950f584b70c607ae3e28f192a0b8a6d758ed2a7928b6a99 +EBUILD awstats-6.8.ebuild 3643 RMD160 1a90a974aa3b0c9b1903d895e48febde433b27e8 SHA1 4ce960d8e97ca79803fe9449137054e30e3bc20c SHA256 f97b4e807f79d4ac210b7eb502eda9701a5145f3cf663031df40e10faa6bb23b diff --git a/net-www/awstats/awstats-6.8.ebuild b/net-www/awstats/awstats-6.8.ebuild new file mode 100644 index 0000000..d3cc267 --- /dev/null +++ b/net-www/awstats/awstats-6.8.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils webapp versionator depend.apache + +DESCRIPTION="AWStats is short for Advanced Web Statistics." +HOMEPAGE="http://awstats.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="geoip" + +RESTRICT="mirror" + +SLOT="0" +WEBAPP_MANUAL_SLOT="yes" + +RDEPEND=">=dev-lang/perl-5.6.1 + >=media-libs/libpng-1.2 + virtual/perl-Time-Local + dev-perl/URI + geoip? ( dev-perl/Geo-IP )" + +want_apache + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-6.3-gentoo.diff + + # change default installation directory + for file in tools/* wwwroot/cgi-bin/*; do + if [[ -f "${file}" ]]; then + sed \ + -e "s#/usr/local/awstats/wwwroot/cgi-bin#${MY_CGIBINDIR}#g" \ + -e "s#/usr/local/awstats/wwwroot/icon#${MY_HTDOCSDIR}/icon#g" \ + -e "s#/usr/local/awstats/wwwroot/plugins#${MY_HOSTROOTDIR}/plugins#g" \ + -e "s#/usr/local/awstats/wwwroot/classes#${MY_HTDOCSDIR}/classes#g" \ + -e "s#/usr/local/awstats/wwwroot#${MY_HTDOCSDIR}#g" \ + -i "${file}" || die "sed ${file} failed" + fi + done + + # set the logpath + if use apache2; then + logpath="apache2/access_log" + else + logpath="awstats_log" + fi + + # set default values for directories + sed \ + -e "s|^\(LogFile=\).*$|\1\"/var/log/${logpath}\"|" \ + -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ + -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ + -e "s|^\(DirCgi=\).*$|\1\"/cgi-bin\"|" \ + -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" +} + +src_install() { + webapp_src_preinst + + dohtml -r docs/*.html docs/*.xml docs/*.css docs/*.js docs/images + dodoc README.TXT docs/COPYING.TXT docs/LICENSE.TXT + newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm + docinto xslt + dodoc tools/xslt/* + + webapp_postinst_txt en "${FILESDIR}"/postinst-en-r1.txt + + keepdir /var/lib/awstats + + # Copy the app's main files + exeinto "${MY_CGIBINDIR}" + doexe "${S}"/wwwroot/cgi-bin/*.pl + + exeinto "${MY_HTDOCSDIR}"/classes + doexe "${S}"/wwwroot/classes/*.jar + + # install language files, libraries and plugins + mkdir -p "${D}${MY_CGIBINDIR}" + for dir in lang lib plugins; do + cp -R "${S}/wwwroot/cgi-bin/${dir}" "${D}${MY_CGIBINDIR}" + done + + # install the app's www files + mkdir -p "${D}${MY_HTDOCSDIR}" + for dir in icon css js; do + cp -R "${S}/wwwroot/${dir}" "${D}${MY_HTDOCSDIR}" + done + + # copy configuration file + insinto /etc/awstats + doins "${S}"/wwwroot/cgi-bin/awstats.model.conf + + # create the data directory for awstats + mkdir -p "${D}/${MY_HOSTROOTDIR}/datadir" + + # install command line tools + cd "${S}"/tools + dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ + awstats_updateall.pl logresolvemerge.pl \ + maillogconvert.pl awstats_configure.pl + newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl + + webapp_src_install + + # fix perms + for dir in lang lib plugins; do + chmod 0755 "${D}${MY_CGIBINDIR}/${dir}" + done + for dir in icon css js; do + chmod 0755 "${D}${MY_HTDOCSDIR}/${dir}" + done +} + +pkg_postinst() { + elog + elog "The AWStats-Manual is available either inside" + elog "the /usr/share/doc/${PF} - folder, or at" + elog "http://awstats.sourceforge.net/docs/index.html ." + elog + ewarn "Copy the /etc/awstats/awstats.model.conf to" + ewarn "/etc/awstats/awstats..conf and edit it." + + if use geoip ; then + einfo + einfo "Add the following line to /etc/awstats/awstats..conf" + einfo "to enable GeoIP plugin:" + einfo "LoadPlugin=\"geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\" " + einfo + fi + + webapp_pkg_postinst +} diff --git a/net-www/awstats/files/awstats-6.3-gentoo.diff b/net-www/awstats/files/awstats-6.3-gentoo.diff new file mode 100644 index 0000000..ec3b115 --- /dev/null +++ b/net-www/awstats/files/awstats-6.3-gentoo.diff @@ -0,0 +1,32 @@ +diff -urN awstats-6.3.orig/tools/awstats_configure.pl awstats-6.3/tools/awstats_configure.pl +--- awstats-6.3.orig/tools/awstats_configure.pl 2005-01-24 09:28:43.980923725 -0500 ++++ awstats-6.3/tools/awstats_configure.pl 2005-01-24 09:28:52.034571769 -0500 +@@ -658,13 +658,27 @@ + print "\n-----> Restart Web server with '$command'\n"; + my $ret=`$command`; + print "$ret"; ++ } elsif (-f "/etc/gentoo-release") { ++ my $command; ++ if (-x "/usr/sbin/apache2ctl") { ++ $command="/usr/sbin/apache2ctl graceful"; ++ } elsif (-x "/usr/sbin/apachectl") { ++ $command="/usr/sbin/apachectl graceful"; ++ } else { ++ print "\n-----> Don't forget to restart manually your web server\n"; ++ } ++ if ($command != "") { ++ print "\n-----> Restart Web server with '$command'\n"; ++ my $ret=`$command`; ++ print "$ret"; ++ } + } elsif (-x "/sbin/service") { + # We are not on debian + my $command="/sbin/service httpd restart"; + print "\n-----> Restart Web server with '$command'\n"; + my $ret=`$command`; + print "$ret"; +- } else { ++ } else { + print "\n-----> Don't forget to restart manually your web server\n"; + } + } diff --git a/net-www/awstats/files/postinst-en-r1.txt b/net-www/awstats/files/postinst-en-r1.txt new file mode 100644 index 0000000..94a36aa --- /dev/null +++ b/net-www/awstats/files/postinst-en-r1.txt @@ -0,0 +1,67 @@ +### +# INSTRUCTIONS: +# +# If you would like to require authentication to access AWStats, then use ONE +# of the example configurations below. There are many other modules and +# options for authentication which will not be discussed here. +# +# NOTE: Related AWStats configuration directives are: +# +# AllowAccessFromWebToAuthenticatedUsersOnly=1 +# AllowAccessFromWebToFollowingAuthenticatedUsers="user1 [user2 ...]" +# +# You can use these to set a per-domain user access when needed for virtual +# hosting. That means: only the selected user(s) will have access to stats for +# the particular domain. All other users will not be allowed to see the domain +# stats even though they have authenticated successfully. +### + +### +# SECTION I - Basic Authentication +# +# The following example requires mod_auth (apache 2.0) or mod_auth_basic +# (apache 2.2) to work. Make sure you have installed and enabled it in +# /etc/apache2/httpd.conf +# +# Add your AWStats users to /etc/awstats/.htpasswd file. +# Please see 'man htpasswd2' for more details if you need. +# +# htpasswd2 -c /etc/awstats/.htpasswd username1 htpasswd2 +# /etc/awstats/.htpasswd username2 etc... +### + +# +# AuthType Basic +# AuthName "AWStats authenticated zone" +# AuthUserFile /etc/awstats/.htpasswd +# Require valid-user +# + +### +# SECTION II - Digest Authentication +# +# The following example requires mod_auth_digest to work. Make sure you have +# installed and enabled it in /etc/apache2/httpd.conf +# +# Do not forget to replace www.example.com as appropriate. You can also add as +# many domains as you need to this line. +# +# Add your AWStats users to /etc/awstats/.htdigest file. Please see 'man +# htdigest2' and http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html for +# more details if you need. +# +# htdigest2 -c /etc/awstats/.htdigest "AWStats authenticated zone" username1 +# htdigest2 /etc/awstats/.htdigest "AWStats authenticated zone" username2 +# etc... +### + +# +# AuthType Digest +# AuthName "AWStats authenticated zone" +# AuthDigestFile /etc/awstats/.htdigest +# AuthDigestDomain http://www.example.com https://www.example.com +# require valid-user +# # The following line is REQUIRED to work around a bug in MSIE. +# # See http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html +# BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On +# diff --git a/profiles/use.local.desc b/profiles/use.local.desc new file mode 100644 index 0000000..1d0fc57 --- /dev/null +++ b/profiles/use.local.desc @@ -0,0 +1,13 @@ +# Copyright 1999-2008 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +app-antivirus/antivir-core:gui - Adds support for the Graphical User Interface +app-antivirus/antivir-core:mirror - Adds support for locally mirroring updates +app-antivirus/antivir-core:smc - Adds support for the Security Management Center +app-antivirus/antivir-mailgate:postfix - Adds support for the Postfix MTA +app-antivirus/antivir-mailgate:spamfilter - Adds support for the optional SPAM filter +sys-cluster/heartbeat:crm - Enable the Cluster Resource Manager (for v2 features) +sys-cluster/heartbeat:ipmi - Enable builtin IPMI STONITH support +sys-cluster/heartbeat:ldirectord - Enable support for use with ldirectord +sys-cluster/drbdlinks:heartbeat - Adds support for use with Heartbeat/Linux-HA diff --git a/sys-apps/makedev-gentoo/ChangeLog b/sys-apps/makedev-gentoo/ChangeLog new file mode 100644 index 0000000..333b642 --- /dev/null +++ b/sys-apps/makedev-gentoo/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sys-apps/makedev-gentoo +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 24 Apr 2008; Wolfram Schlich +files/MAKEDEV, + +makedev-gentoo-1.ebuild: + initial import, taken from baselayout-1 + diff --git a/sys-apps/makedev-gentoo/Manifest b/sys-apps/makedev-gentoo/Manifest new file mode 100644 index 0000000..8d6f571 --- /dev/null +++ b/sys-apps/makedev-gentoo/Manifest @@ -0,0 +1,4 @@ +AUX MAKEDEV 51166 RMD160 8a2b3d9007223612f7f9c57968b575b63161c662 SHA1 731deffb2f31770a3ac70ff65b5a94e2366bc794 SHA256 41e3e4612d8640082fb80fee4789a589f60a3259878a5730b529b340e0ad513d +EBUILD makedev-gentoo-1.ebuild 396 RMD160 50d8953c09a43578f36924bdf04160ccff929889 SHA1 79ecc53b396bd335a13638ef1a237bb7f4b0339e SHA256 6d240b70acc98ba33dd387c72e8d295def80ec679e0af1e2c5666feec7070d0d +MISC ChangeLog 264 RMD160 17945e4507b11a77ab4935972490f0b03d64cfc7 SHA1 65eef0a1582b289b7fc60905b5b958a1d9f09829 SHA256 28e8ee38fdf3eb2ebed2493650db003c4c205f48b9d914ad3299cf25df9729ec +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/sys-apps/makedev-gentoo/files/MAKEDEV b/sys-apps/makedev-gentoo/files/MAKEDEV new file mode 100755 index 0000000..c87b58d --- /dev/null +++ b/sys-apps/makedev-gentoo/files/MAKEDEV @@ -0,0 +1,2123 @@ +#! /bin/sh - +# $Id: MAKEDEV 1577 2005-10-19 00:07:16Z vapier $ + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# +# Customisation: +# The devices fall into various classes. This section contains the mapping +# from a class name into a group name and permission. +# You will almost certainly need to edit the group name to match your +# system, and you may change the permissions to suit your preference. These +# lines _must_ be of the format "user group perm". + + public=" root root 0666" +private=" root root 0600" + system=" root root 0660" + kmem=" root kmem 0640" + tty=" root tty 0666" + cons=" root tty 0600" +dialout=" root dialout 0660" + dip=" root dip 0660" + mouse=" root root 0660" +printer=" root lp 0660" + floppy=" root floppy 0660" + disk=" root disk 0660" + scsi=" root root 0600" + cdrom=" root cdrom 0660" + tape=" root tape 0660" + audio=" root audio 0660" + video=" root video 0660" + ibcs2=" root root 0666" +scanner=" root root 0666" + coda=" root root 0600" + ipsec=" root root 0200" +readable=" root root 0444" + +MAXVT=63 + +# defaults for $major_* +major_ide0=3 +major_ide1=22 +major_sd=8 +major_lp=6 + +# Remark: OSS/Linux becomes major_OSSLinux + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +# try to do the right things if udev is running +if [ "$WRITE_ON_UDEV" ]; then + : +elif [ -d /dev/.static/dev/ ] && [ "`pwd`" = /dev ] && [ -e /proc/mounts ] \ + && grep -qE '^[^ ]+ /dev/\.static/dev' /proc/mounts; then + cd /dev/.static/dev/ +elif [ -d /.dev/ ] && [ "`pwd`" = /dev ] && [ -e /proc/mounts ] \ + && grep -qE '^[^ ]+ /\.dev' /proc/mounts; then + cd /.dev/ +elif [ -d .udevdb/ ] && [ "`pwd`" = /dev ]; then + echo ".udevdb presence implies active udev. Aborting MAKEDEV invocation." + # use exit 0, not 1, so postinst scripts don't fail on this + exit 0 +fi + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +# don't stomp on devfs users +if [ -c .devfsd ] +then + echo ".devfsd presence implies active DevFS. Aborting MAKEDEV invocation." + # use exit 0, not 1, so postinst scripts don't fail on this + exit 0 +fi + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +# don't stomp on non-Linux users +if [ "$(uname -s)" != "Linux" ] +then + echo "Results undefined on non-Linux systems, aborting MAKEDEV invocation." + # use exit 0, not 1, so postinst scripts don't fail on this + exit 0 +fi + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +procfs=/proc + +opt_v= +opt_d= +opt_n= + +while [ $# -ge 1 ] +do + case $1 in + --) shift; break ;; + -v) shift; opt_v=1 ;; + -d) shift; opt_d=1 ;; + -n) shift; opt_n=1; opt_v=1 ;; + -V) shift; opt_V=1 ;; + -*) echo "$0: unknown flag \"$1\"" >&2; exit 1 ;; + *) break ;; + esac +done + +if [ "$opt_V" ] +then + echo "This is MAKEDEV based on Debian's makedev_2.3.1-78." + echo "See the MAKEDEV(8) manpage for more information." + exit 0 +fi + +opts="${opt_n:+-n} ${opt_v:+-v} ${opt_d:+-d}" + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +devicename () { # translate device names to something safe + echo "$*" | sed -e 's/[^A-Za-z0-9_]/_/g' +} + +makedev () { # usage: makedev name [bcu] major minor owner group mode + if [ "$opt_v" ] + then if [ "$opt_d" ] + then echo "delete $1" + else echo "create $1 $2 $3 $4 $5:$6 $7" + fi + fi + # missing parameters are a bug - bail - should we do an exit 1 here? + case :$1:$2:$3:$4:$5:$6:$7: in + *::*) echo "Warning: MAKEDEV $@ is missing parameter(s)." >&2;; + esac + if [ ! "$opt_n" ] + then + if [ "$opt_d" ] + then + rm -f $1 + else + rm -f $1- + if mknod $1- $2 $3 $4 && + chown $5:$6 $1- && + chmod $7 $1- && + mv $1- $1 + then + : # it worked + else + # Didn't work, clean up any mess... + echo "makedev $@: failed" + rm -f $1- + fi + fi + fi +} +symlink () { # usage: symlink name target + if [ "$opt_v" ] + then if [ "$opt_d" ] + then echo "delete $1" + else echo "create $1 -> $2" + fi + fi + [ ! "$opt_n" ] && rm -f $1 && + [ ! "$opt_d" ] && ln -s $2 $1 +} + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +# Debian allows us to assume /bin/sh is a POSIX compliant shell, so go for it! + +math () { + eval echo "\$(($*))" +} +index () { # index string c + eval "I=\${1%$2*}" + eval echo "\${#I}" +} +suffix () { + eval echo "\${1#$2}" +} +strip () { + eval echo "\${1% $2 *} \${1#* $2 }" +} +first () { + echo "${1%%?}" +} +second () { + echo "${1##?}" +} +substr () { + echo $1 | dd bs=1 count=1 skip=$(( $2 - 1 )) 2> /dev/null +} + +#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# + +devices= +if [ ! -f $procfs/devices ] +then + echo "$0: warning: can't read $procfs/devices" >&2 +else + exec 3<$procfs/devices + while read major device extra <&3 + do + device=`echo $device | sed 's#/.*##'` + case "$major" in + Character|Block|'') + ;; + *) + safedevname=`devicename $device` + eval "major_$safedevname=$major" + devices="$devices $device" + ;; + esac + done + exec 3<&- +fi + +Major () { + device=$2 + devname=`devicename $1` + if [ "$opt_d" ] + then + echo -1 # don't care + else + eval echo \${major_$devname:-\${device:?\"unknown major number for $1\"}} + fi +} + +cvt () { + while [ $# -ne 0 ] + do + case "$1" in + mem|tty|ttyp|cua|cub|cui) ;; + hd) (for d in a b c d e f g h ; do + echo -n hd$d " " + done) ; echo + ;; + ide0) echo hda hdb ;; + ide1) echo hdc hdd ;; + ide2) echo hde hdf ;; + ide3) echo hdg hdh ;; + ide4) echo hdi hdj ;; + ide5) echo hdk hdl ;; + ide6) echo hdm hdn ;; + ide7) echo hdo hdp ;; + ide8) echo hdq hdr ;; + ide9) echo hds hdt ;; + sd) echo sda sdb sdc sdd ;; + dasd) (for d in a b c d e f g h i j k l m \ + n o p q r s t u v w x y z ; do + echo -n dasd$d " " + done) ; echo + ;; + raw) echo raw ;; + sg) echo sg ;; + sr) echo scd ;; + st) echo st0 ;; + xd) echo xda xdb ;; + ad) echo ada adb ;; + fd) echo fd0 fd1 ;; + lp) echo lp ;; + mt) echo ftape ;; + qft) echo ftape ;; + loop) echo loop ;; + md) echo md ;; + ibcs2) echo ibcs2 ;; + tpqic02) echo qic ;; + sound) echo audio ;; + logiscan) echo logiscan ;; + ac4096) echo ac4096 ;; + hw) echo helloworld ;; + sbpcd | sbpcd[123]) echo $1 ;; + joystick) echo js ;; + input) echo input ;; + apm_bios) echo apm ;; + dcf) echo dcf ;; + aztcd) echo aztcd ;; + cm206cd) echo cm206cd ;; + gscd) echo gscd ;; + pcmcia) ;; # taken care of by its own driver + ttyC) echo cyclades ;; + isdn) echo isdnmodem isdnbri dcbri ;; + vcs) ;; + pty) echo pty ;; + misc) echo misc ;; + 3dfx) echo 3dfx ;; + agpgart) echo agpgart ;; + microcode) echo microcode ;; + ipmi|ipmikcs) echo ipmi ;; + fb) echo fb ;; + nb|drbd) echo nb0 nb1 nb2 nb3 nb4 nb5 nb6 nb7;; + netlink) echo netlink ;; + tap) echo netlink ;; + hamradio) echo hamradio ;; + snd) ;; + ptm) ;; + pts) ;; + ttyB) (for l in 0 1 2 3 4 5 6 7 ; do + echo -n ttyB$l " " + done) ; echo + ;; + ttyS) echo ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ;; + ttyI) echo ttyI0 ttyI1 ttyI2 ttyI3 ;; + ircomm|irlpt) irda ;; + ppp) echo ppp ;; + usb) echo usb ;; + dpt_i2o) echo dpti ;; + bluetooth) echo bluetooth ;; + lvm) ;; # taken care of by LVM userspace tools + ramdisk) echo ram ;; + *) echo "$0: don't know what \"$1\" is" >&2 ;; + esac + shift + done +} + +get_arch() { + case `uname -m` in + arm*) echo arm;; + i?86) echo i386;; + ppc*) echo powerpc;; + s390*) echo s390;; + sh*) echo sh;; + x86_64) echo i386;; + # alpha|hppa|ia64|m68k|mips|sparc + *) echo $a;; + esac +} + +for arg in $* +do +# case `cvt $arg` in + case $arg in + generic) + $0 $opts generic-`get_arch` + ;; + generic-alpha) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts xda xdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts busmice + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts dac960 + ;; + generic-arm) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts xda xdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts busmice + makedev sunmouse c 10 6 $mouse + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + ;; + generic-hppa) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts ttyB0 ttyB1 ttyB2 ttyB3 ttyB4 ttyB5 ttyB6 ttyB7 + $0 $opts busmice + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts rtc + ;; + generic-i386) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts xda xdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts busmice + $0 $opts input + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts isdn-io eda edb sonycd mcd mcdx cdu535 + $0 $opts optcd sjcd cm206cd gscd + $0 $opts lmscd sbpcd aztcd bpcd dac960 dpti ida ataraid cciss + $0 $opts i2o.hda i2o.hdb i2o.hdc i2o.hdd + ;; + generic-ia64) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 + $0 $opts busmice + $0 $opts input + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts efirtc + ;; + generic-m68k) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts sg + $0 $opts ada adb adc add ade adf + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 + $0 $opts m68k-mice + $0 $opts lp + $0 $opts par + $0 $opts nvram + $0 $opts audio + $0 $opts fb + ;; + generic-mips) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts busmice + ;; + generic-mipsel) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts rtc + ;; + generic-powerpc) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts busmice + $0 $opts m68k-mice + $0 $opts input + $0 $opts lp + $0 $opts par + $0 $opts nvram + $0 $opts audio + $0 $opts adb + $0 $opts fb + $0 $opts rtc + $0 $opts isdn-io + ;; + generic-s390) + $0 $opts std + $0 $opts fd + $0 $opts dasda dasdb dasdc dasdd dasde dasdf dasdg dasdh \ + dasdi dasdj dasdk dasdl dasdm dasdn dasdo dasdp \ + dasdq dasdr dasds dasdt dasdu dasdv dasdw dasdx \ + dasdy dasdz + $0 $opts pty + $0 $opts consoleonly + $0 $opts rtc + ;; + generic-sh) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts ttySC0 ttySC1 ttySC2 ttySC3 + $0 $opts lp + $0 $opts par + $0 $opts audio + $0 $opts fb + $0 $opts rtc + ;; + generic-sparc) + $0 $opts std + $0 $opts fd + $0 $opts fd0 fd1 + $0 $opts hda hdb hdc hdd + $0 $opts sda sdb sdc sdd + $0 $opts scd0 scd1 + $0 $opts st0 st1 + $0 $opts sg + $0 $opts pty + $0 $opts console + $0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 + $0 $opts busmice + $0 $opts fb + $0 $opts rtc + makedev kbd c 11 0 $cons + makedev sunmouse c 10 6 $mouse + symlink mouse sunmouse + makedev openprom c 10 139 root root 0664 + ;; + generic-*) + echo "$0: no support for generic on this arch" >&2 + exit 1 + ;; + local) + $0.local $opts + ;; + std) + makedev mem c 1 1 $kmem + makedev kmem c 1 2 $kmem + makedev null c 1 3 $public + makedev port c 1 4 $kmem + makedev zero c 1 5 $public + symlink core $procfs/kcore + makedev full c 1 7 $public + makedev random c 1 8 $public + makedev urandom c 1 9 $readable + makedev tty c 5 0 $tty + $0 $opts ram + $0 $opts loop + ;; + hamradio) + $0 $opts scc + $0 $opts bc + ;; + scc) + for unit in 0 1 2 3 4 5 6 7 + do + makedev scc$unit c 34 $unit $system + done + ;; + bc) + for unit in 0 1 2 3 + do + makedev bc$unit c 51 $unit $system + done + ;; + random) + makedev random c 1 8 $public + ;; + urandom) + makedev urandom c 1 9 $readable + ;; + ram) + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do + makedev ram$i b 1 $i $disk + done + symlink ram ram1 + ;; + ram[0-9]|ram1[0-6]) + unit=`suffix $arg ram` + makedev ram$unit b 1 $unit $disk + ;; + initrd) + makedev initrd b 1 250 $disk + ;; + raw) + makedev rawctl c 162 0 $disk + mkdir -p raw + for i in 1 2 3 4 5 6 7 8; do + makedev raw/raw$i c 162 $i $disk + done + ;; + consoleonly) + makedev tty0 c 4 0 $cons + # new kernels need a device, old ones a symlink... sigh + kern_rev1=`uname -r | sed -e 's@^\([^.]*\)\..*@\1@'` + kern_rev2=`uname -r | sed -e 's@^[^.]*\.\([^.]*\)\..*@\1@'` + if [ $kern_rev1 -gt 2 ] + then + makedev console c 5 1 $cons + else + if [ $kern_rev1 -eq 2 ] && [ $kern_rev2 -ge 1 ] + then + makedev console c 5 1 $cons + else + symlink console tty0 + fi + fi + ;; + console) + $0 $opts consoleonly + major=`Major vcs 7` # not fatal + [ "$major" ] && makedev vcs0 c $major 0 $cons + symlink vcs vcs0 + [ "$major" ] && makedev vcsa0 c $major 128 $cons + symlink vcsa vcsa0 + # individual vts + line=1 + while [ $line -le $MAXVT ] && [ $line -le 63 ] + do + makedev tty$line c 4 $line $cons + [ "$major" ] && makedev vcs$line c $major $line $cons + [ "$major" ] && makedev vcsa$line c $major `math $line + 128` $cons + line=`math $line + 1` + done + ;; + adb) + case `get_arch` in + powerpc) + # ADB bus devices (char) + makedev adb c 56 0 $mouse + makedev adbmouse c 10 10 $mouse + ;; + m68k) + # ACSI disk 2, whole device (block) + makedev adb b 28 16 $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( 16 + $part )) + makedev adb$part b 28 $minor $disk + done + ;; + *) + echo "no support for adb on this arch" >&2 + exit 1 + ;; + esac + ;; + raw1394) + makedev raw1394 c 171 0 $disk + ;; + video1394) + rm -f video1394 + mkdir -p video1394 + for i in `seq 0 15` + do + makedev video1394/$i c 171 `math 16 + $i` $video + done + ;; + nvram) + makedev nvram c 10 144 $mouse + ;; + tty[1-9]|tty[1-5][0-9]|tty[6][0-3]) + line=`suffix $arg tty` + makedev tty$line c 4 $line $cons + ;; + ttyS[0-9]|ttyS[1-5][0-9]|ttyS[6][0-3]) + line=`suffix $arg ttyS` + minor=`math 64 + $line` + makedev ttyS$line c 4 $minor $dialout + ;; + ttySC[0-3]) + line=`suffix $arg ttySC` + minor=`math 8 + $line` + makedev ttySC$line c 204 $minor $dialout + ;; + ttyB[0-7]) + minor=`suffix $arg ttyB` + makedev ttyB$minor c 11 $minor $dialout + ;; + pty[a-ep-z]) + bank=`suffix $arg pty` + base=`index pqrstuvwxyzabcde $bank` + base=`math $base \* 16` + for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f + do + j=`index 0123456789abcdef $i` + makedev pty$bank$i c 2 `math $base + $j` $tty + makedev tty$bank$i c 3 `math $base + $j` $tty + done + ;; + pty) + ptysufs="" + for i in p q r s t u v w x y z a b c d e + do + ptysufs="$ptysufs pty$i" + done + $0 $opts $ptysufs ptmx + ;; + ptmx) + # master pty multiplexer for 2.1 kernels + makedev ptmx c 5 2 $tty + ;; + cyclades|ttyC) + major1=`Major ttyC 19` || continue + #major2=`Major cub 20` || continue + for i in 0 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 + do + makedev ttyC$i c $major1 $i $dialout + #makedev cub$i c $major2 $i $dialout + done + ;; + stallion|ttyE) + major1=`Major ttyE 24` || continue + #major2=`Major cue 25` || continue + majorc=28 + minor=0 + until [ $minor -gt 256 ] + do + makedev ttyE$minor c $major1 $minor $dialout + #makedev cue$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + for i in 0 1 2 3 + do + makedev staliomem$i c $majorc $i $private + done + ;; + chase|ttyH) + major1=`Major ttyH 17` || continue + #major2=`Major cuh 18` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyH$minor c $major1 $minor $dialout + #makedev cuh$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + rocketport|ttyR) + major1=`Major ttyR 46` || continue + #major2=`Major cur 47` || continue + minor=0 + until [ $minor -gt 64 ] # tell me if 64 is wrong + do + makedev ttyR$minor c $major1 $minor $dialout + #makedev cur$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + ttyV) + major1=`Major ttyV 105` || continue + #major2=`Major cuv 106` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyV$minor c $major1 $minor $dialout + #makedev cuv$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + digi|ttyD) + major1=`Major ttyD 22` || continue + #major2=`Major cud 23` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyD$minor c $major1 $minor $dialout + #makedev cud$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + specialix|ttyX) + major1=`Major ttyX 32` || continue + #major2=`Major cux 33` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyX$minor c $major1 $minor $dialout + #makedev cux$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + specialixIO8|ttyW) + major1=`Major ttyW 75` || continue + #major2=`Major cuw 76` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyW$minor c $major1 $minor $dialout + #makedev cuw$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + PAM|ttyM) + major1=`Major ttyM 79` || continue + #major2=`Major cum 80` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyM$minor c $major1 $minor $dialout + #makedev cum$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + riscom|ttyL) + major=`Major ttyL 48` || continue + minor=0 + until [ $minor -gt 16 ] # tell me if 16 is wrong + do + makedev ttyL$minor c $major $minor $dialout + minor=`math $minor + 1` + done + ;; + computone|ttyF) + major=`Major ttyF 71` || continue + #major2=`Major cuf 72` || continue + minor=0 + until [ $minor -gt 255 ] + do + makedev ttyF$minor c $major $minor $dialout + #makedev cuf$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + major=73 + for i in 0 4 8 12 + do + makedev ip2ipl$i c $major $i $private + makedev ip2stat$i c $major `math $i + 1` $private + done + ;; + ESP|ttyP) + major=`Major ttyP 57` || continue + #major2=`Major cup 58` || continue + minor=0 + until [ $minor -gt 4 ] # tell me if 4 is wrong + do + makedev ttyP$minor c $major $minor $dialout + #makedev cup$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + COMX|comx) + major=`Major comx 88` || continue + minor=0 + until [ $minor -gt 4 ] # tell me if 4 is wrong + do + makedev comx$minor c $major $minor $private + minor=`math $minor + 1` + done + ;; + isdnmodem|ttyI) + major1=`Major ttyI 43` || continue + #major2=`Major cui 44` || continue + minor=0 + until [ $minor -gt 63 ] + do + makedev ttyI$minor c $major1 $minor $dialout + #makedev cui$minor c $major2 $minor $dialout + minor=`math $minor + 1` + done + ;; + isdnbri) + major=45 + minor=0 + until [ $minor -gt 63 ] + do + makedev isdn$minor c $major $minor $dialout + makedev isdnctrl$minor c $major `math $minor + 64` $dialout + makedev ippp$minor c $major `math $minor + 128` $dialout + minor=`math $minor + 1` + done + makedev isdninfo c $major 255 $private + ;; + dcbri) + major=52 + for i in 0 1 2 3 + do + makedev dcbri$i c $major $i $dialout + done + ;; + capi) + major=68 + makedev capi20 c $major 0 $dialout + for i in 0 1 2 3 4 5 6 7 8 9 + do + makedev capi20.0$i c $major `math $i + 1` $dialout + done + for i in 10 11 12 13 14 15 16 17 18 19 + do + makedev capi20.$i c $major `math $i + 1` $dialout + done + ;; + ubd) + major=98 + for devicenum in 0 1 2 3 4 5 6 7 + do + device=ubd`substr abcdefgh $(($devicenum + 1))` + baseminor=`math $devicenum \* 16` + makedev $device b $major $baseminor $disk + for partition in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=`math $baseminor + $partition` + makedev $device$partition b $major $minor $disk + done + done + ;; + fb) + for i in 0 1 2 3 4 5 6 7 + do + makedev fb$i c 29 $i $video + done + ;; + fb[0-7]) + dev=`suffix $arg fb` + makedev fb$dev c 29 $dev $video + ;; + netlink|tap|tap[0-9]|tap1[0-5]) + makedev route c 36 0 $coda + makedev skip c 36 1 $coda + makedev fwmonitor c 36 3 $coda + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev tap$i c 36 `math $i + 16` $coda + done + ;; + tun) + mkdir -p net + makedev net/tun c 10 200 $system + ;; + lp) + major=`Major lp 6` || continue + makedev ${arg}0 c $major 0 $printer + makedev ${arg}1 c $major 1 $printer + makedev ${arg}2 c $major 2 $printer + ;; + par) + major=`Major lp 6` || continue + makedev ${arg}0 c $major 0 $printer + makedev ${arg}1 c $major 1 $printer + makedev ${arg}2 c $major 2 $printer + ;; + parport) + major=`Major parport 99` || continue + makedev ${arg}0 c $major 0 $printer + makedev ${arg}1 c $major 1 $printer + makedev ${arg}2 c $major 2 $printer + ;; + slm) + major=`Major slm 28` || continue + for i in 0 1 2 3 + do + makedev slm c $major $i $printer + done + ;; + input) + major=`Major pcsp 13` || continue + mkdir -p input + for i in 0 1 2 3 + do + makedev input/js$i c $major $i $mouse + makedev input/mouse$i c $major `math $i + 32` $mouse + makedev input/event$i c $major `math $i + 64` $mouse + done + makedev input/mice c $major 63 $mouse + ;; + busmice) + major=`Major mouse 10` || continue + makedev logibm c $major 0 $mouse + makedev psaux c $major 1 $mouse + makedev inportbm c $major 2 $mouse + makedev atibm c $major 3 $mouse + makedev jbm c $major 4 $mouse + ;; + m68k-mice) + major=`Major mouse 10` || continue + makedev amigamouse c $major 4 $mouse + makedev atarimouse c $major 5 $mouse + makedev amigamouse1 c $major 7 $mouse + makedev adbmouse c $major 10 $mouse + ;; + 3dfx) + major=`Major $arg 107` || continue + makedev $arg c $major 0 $video + ;; + agpgart) + major=`Major $arg 10` || continue + makedev $arg c $major 175 $video + ;; + hwrng) + major=`Major $arg 10` || continue + makedev $arg c $major 183 $private + ;; + cpu|microcode) + mkdir -p cpu + makedev cpu/microcode c 10 184 $private + for i in 0 1 2 3 + do + mkdir -p cpu/$i + makedev cpu/$i/msr c 202 $i $private + makedev cpu/$i/cpuid c 203 $i $private + done + ;; + ipmi|ipmikcs) + major=`Major ipmikcs 10` || continue + makedev ipmikcs c $major 173 $private + ;; + irda) + for i in 0 1 + do + makedev ircomm$i c 161 $i $dialout + makedev irlpt$i c 161 `math $i + 16` $printer + done + ;; + irnet) + makedev irnet c 10 187 $system + ;; + misc) + major=`Major mouse 10` || continue + makedev logibm c $major 0 $mouse + makedev psaux c $major 1 $mouse + makedev inportbm c $major 2 $mouse + makedev atibm c $major 3 $mouse + makedev jbm c $major 4 $mouse + makedev amigamouse c $major 4 $mouse + makedev atarimouse c $major 5 $mouse + makedev sunmouse c $major 6 $mouse + makedev amigamouse1 c $major 7 $mouse + makedev smouse c $major 8 $mouse + makedev pc110pad c $major 9 $mouse + makedev adbmouse c $major 10 $mouse + makedev beep c $major 128 $mouse + makedev modreq c $major 129 $mouse + makedev watchdog c $major 130 $mouse + makedev temperature c $major 131 $mouse + makedev hwtrap c $major 132 $mouse + makedev exttrp c $major 133 $mouse + makedev apm_bios c $major 134 $mouse + makedev rtc c $major 135 $mouse + makedev openprom c $major 139 root root 0664 + makedev relay8 c $major 140 $mouse + makedev relay16 c $major 141 $mouse + makedev msr c $major 142 $mouse + makedev pciconf c $major 143 $mouse + makedev nvram c $major 144 $mouse + makedev hfmodem c $major 145 $mouse + makedev led c $major 151 $mouse + makedev mergemem c $major 153 $mouse + makedev pmu c $major 154 $mouse + ;; + pmu) + major=`Major mouse 10` || continue + makedev pmu c $major 154 $mouse + ;; + thinkpad) + major=`Major mouse 10` || continue + mkdir -p thinkpad + makedev thinkpad/thinkpad c $major 170 $mouse + ;; + rtc) + major=`Major mouse 10` || continue + makedev rtc c $major 135 $mouse + ;; + efirtc) + major=`Major mouse 10` || continue + makedev efirtc c $major 136 $mouse + ;; + mwave) + makedev mwave c 10 219 $mouse + ;; + systrace) + makedev systrace c 10 226 $private + ;; + uinput) + makedev input/uinput c 10 223 $mouse + ;; + js) + major=`Major Joystick 13` || continue + for unit in 0 1 2 3 + do + makedev js$unit c $major $unit $readable + makedev djs$unit c $major `math $unit + 128` $readable + done + ;; + fd[0-7]) + major=`Major fd 2` || continue + base=`suffix $arg fd` + if [ $base -ge 4 ] + then + base=`math $base + 124` + fi + makedev ${arg} b $major $base $floppy + makedev ${arg}d360 b $major `math $base + 4` $floppy + makedev ${arg}h1200 b $major `math $base + 8` $floppy + makedev ${arg}u360 b $major `math $base + 12` $floppy + makedev ${arg}u720 b $major `math $base + 16` $floppy + makedev ${arg}h360 b $major `math $base + 20` $floppy + makedev ${arg}h720 b $major `math $base + 24` $floppy + makedev ${arg}u1440 b $major `math $base + 28` $floppy + makedev ${arg}u2880 b $major `math $base + 32` $floppy + makedev ${arg}CompaQ b $major `math $base + 36` $floppy + + makedev ${arg}h1440 b $major `math $base + 40` $floppy + makedev ${arg}u1680 b $major `math $base + 44` $floppy + makedev ${arg}h410 b $major `math $base + 48` $floppy + makedev ${arg}u820 b $major `math $base + 52` $floppy + makedev ${arg}h1476 b $major `math $base + 56` $floppy + makedev ${arg}u1722 b $major `math $base + 60` $floppy + makedev ${arg}h420 b $major `math $base + 64` $floppy + makedev ${arg}u830 b $major `math $base + 68` $floppy + makedev ${arg}h1494 b $major `math $base + 72` $floppy + makedev ${arg}u1743 b $major `math $base + 76` $floppy + makedev ${arg}h880 b $major `math $base + 80` $floppy + makedev ${arg}u1040 b $major `math $base + 84` $floppy + makedev ${arg}u1120 b $major `math $base + 88` $floppy + makedev ${arg}h1600 b $major `math $base + 92` $floppy + makedev ${arg}u1760 b $major `math $base + 96` $floppy + makedev ${arg}u1920 b $major `math $base + 100` $floppy + makedev ${arg}u3200 b $major `math $base + 104` $floppy + makedev ${arg}u3520 b $major `math $base + 108` $floppy + makedev ${arg}u3840 b $major `math $base + 112` $floppy + makedev ${arg}u1840 b $major `math $base + 116` $floppy + makedev ${arg}u800 b $major `math $base + 120` $floppy + makedev ${arg}u1600 b $major `math $base + 124` $floppy + ;; + ed[a-b]) + major=`Major ed 36` || continue + unit=`suffix $arg ed` + base=`index ab $unit` + base=`math $base \* 64` + makedev ed$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev ed$unit$part b $major `math $base + $part` $disk + done + ;; + hd[a-b]) + major=`Major ide0` || major=`Major hd 3` || continue + unit=`suffix $arg hd` + base=`index ab $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major `math $base + $part` $disk + done + ;; + hd[c-d]) + major=`Major ide1 22` || continue + unit=`suffix $arg hd` + base=`index cd $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[e-f]) + major=`Major ide2 33` || continue + unit=`suffix $arg hd` + base=`index ef $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[g-h]) + major=`Major ide3 34` || continue + unit=`suffix $arg hd` + base=`index gh $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[i-j]) + major=`Major ide4 56` || continue + unit=`suffix $arg hd` + base=`index ij $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[k-l]) + major=`Major ide5 57` || continue + unit=`suffix $arg hd` + base=`index kl $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[m-n]) + major=`Major ide6 88` || continue + unit=`suffix $arg hd` + base=`index mn $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[o-p]) + major=`Major ide7 89` || continue + unit=`suffix $arg hd` + base=`index op $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[q-r]) + major=`Major ide8 90` || continue + unit=`suffix $arg hd` + base=`index qr $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + hd[s-t]) + major=`Major ide9 91` || continue + unit=`suffix $arg hd` + base=`index st $unit` + base=`math $base \* 64` + makedev hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev hd$unit$part b $major $(( $base + $part )) $disk + done + ;; + ub|uba) + major=180 + makedev uba b $major 0 $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev uba$part b $major $part $disk + done + ;; + ht0) + major=`Major ht0 37` || continue + # Only one IDE tape drive is currently supported; ht0. + makedev ht0 c $major 0 $tape + makedev nht0 c $major 128 $tape + ;; + pt) + major=`Major pt 96` || continue + for i in 0 1 2 3 + do + makedev pt$i c $major $i $tape + makedev npt$i c $major `math $i + 128` $tape + done + ;; + xd[a-d]) + major=`Major xd 13` || continue + unit=`suffix $arg xd` + base=`index abcd $unit` + base=`math $base \* 64` + makedev xd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20 + do + makedev xd$unit$part b $major $(( $base + $part )) $disk + done + ;; + sd[a-z]) + major=`Major sd 8` || continue + unit=`suffix $arg sd` + base=`index abcdefghijklmnopqrstuvwxyz $unit` + base=$(( $base * 16 )) + if [ $base -lt 256 ]; then + major=8 + else + major=65 + base=$(( $base - 256 )) + fi + makedev sd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( $base + $part )) + makedev sd$unit$part b $major $minor $disk + done + ;; + sd[a-d][a-z]) + unit=`suffix $arg sd` + unitmaj=`first $unit` + unitmin=`second $unit` + basemaj=`index Xabcd $unitmaj` + basemin=`index abcdefghijklmnopqrstuvwxyz $unitmin` + basemaj=`math $basemaj \* 416` + basemin=`math $basemin \* 16` + base=`math $basemaj + $basemin` + basemaj=`math $base / 256` + base=`math $base % 256` + major=`math basemaj \+ 64` + if [ $major -gt 71 ]; then + echo "$0: don't know how to make device \"$arg\"" >&2 + exit 0 + fi + makedev sd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( $base + $part )) + makedev sd$unit$part b $major $minor $disk + done + ;; + i2o.hd[a-z]) + [ -d i2o ] || { + mkdir i2o + chown root:root i2o + chmod 755 i2o + [ -e i2o/ctl ] || makedev i2o/ctl c 10 166 $disk + } + unit=`suffix $arg i2o.hd` + base=`index abcdefghijklmnopqrstuvwxyz $unit` + base=$(( $base * 16 )) + if [ $base -lt 256 ]; then + major=80 + else + major=81 + base=$(( $base - 256 )) + fi + makedev i2o/hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( $base + $part )) + makedev i2o/hd$unit$part b $major $minor $disk + done + ;; + i2o.hd[a-d][a-z]) + [ -d i2o ] || { + mkdir i2o + chown root:root i2o + chmod 755 i2o + [ -e i2o/ctl ] || makedev i2o/ctl c 10 166 $disk + } + unit=`suffix $arg i2o.hd` + unitmaj=`first $unit` + unitmin=`second $unit` + basemaj=`index Xabcd $unitmaj` + basemin=`index abcdefghijklmnopqrstuvwxyz $unitmin` + basemaj=`math $basemaj \* 416` + basemin=`math $basemin \* 16` + base=`math $basemaj + $basemin` + basemaj=`math $base / 256` + base=`math $base % 256` + major=`math basemaj \+ 80` + if [ $major -gt 87 ]; then + echo "$0: don't know how to make device \"$arg\"" >&2 + exit 0 + fi + makedev i2o/hd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( $base + $part )) + makedev i2o/hd$unit$part b $major $minor $disk + done + ;; + dasd[a-z]) + major=`Major dasd 94` || continue + unit=`suffix $arg dasd` + base=`index abcdefghijklmnopqrstuvwxyz $unit` + base=$(( $base * 4 )) + if [ $base -lt 256 ]; then + major=94 + else + major=65 + base=$(( $base - 256 )) + fi + makedev dasd$unit b $major $base $disk + for part in 1 2 3 + do + minor=$(( $base + $part )) + makedev dasd$unit$part b $major $minor $disk + done + ;; + ad[a-p]) + major=`Major ad 28` || continue + unit=`suffix $arg ad` + base=`index abcdefghijklmnop $unit` + base=`math $base \* 16` + makedev ad$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=$(( $base + $part )) + makedev ad$unit$part b $major $minor $disk + done + ;; + dac960) + for ctr in 0 1 2 3 4 5 6 7 + do + $0 $opts dac960.$ctr + done + makedev dac960_gam c 10 252 $disk + ;; + dac960.[0-7]) + [ -d rd ] || { + mkdir rd + chown root:root rd + chmod 755 rd + } + unit=`suffix $arg dac960.` + major=`math 48 + $unit` + minor=0 + for ld in 0 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 + do + makedev rd/c${unit}d${ld} b $major $minor $disk + minor=`math $minor + 1` + for part in 1 2 3 4 5 6 7 + do + makedev rd/c${unit}d${ld}p$part b $major $minor $disk + minor=`math $minor + 1` + done + done + ;; + dpti) + major=151 + for ld in 1 2 3 4 5 6 7 + do + minor=`math $ld -1` + makedev dpti${ld} c $major $minor $disk + done + ;; + ataraid) + for ctr in 0 1 2 # 3 4 5 6 7 + do + $0 $opts ataraid.$ctr + done + ;; + ataraid.[0-7]) + [ -d ataraid ] || { + mkdir ataraid + chown root:root ataraid + chmod 755 ataraid + } + unit=`suffix $arg ataraid.` + major=114 + minor=`math $unit \* 16` + makedev ataraid/d${unit} b $major $minor $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + minor=`math $minor + 1` + makedev ataraid/d${unit}p$part b $major $minor $disk + done + ;; + ida) + for ctr in 0 1 2 # 3 4 5 6 7 + do + $0 $opts ida.$ctr + done + ;; + ida.[0-7]) + [ -d ida ] || { + mkdir ida + chown root:root ida + chmod 755 ida + } + unit=`suffix $arg ida.` + major=`math 72 + $unit` + minor=0 + for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev ida/c${unit}d${ld} b $major $minor $disk + minor=`math $minor + 1` + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev ida/c${unit}d${ld}p$part b $major $minor $disk + minor=`math $minor + 1` + done + done + ;; + cciss) + for ctr in 0 1 2 # 3 4 5 6 7 + do + $0 $opts cciss.$ctr + done + ;; + cciss.[0-7]) + [ -d cciss ] || { + mkdir cciss + chown root:root cciss + chmod 755 cciss + } + unit=`suffix $arg cciss.` + major=`math 104 + $unit` + minor=0 + for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev cciss/c${unit}d${ld} b $major $minor $disk + minor=`math $minor + 1` + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev cciss/c${unit}d${ld}p$part b $major $minor $disk + minor=`math $minor + 1` + done + done + ;; + rom) + major=`Major rom 31` + for i in 0 1 2 3 4 5 6 7 + do + makedev rom$i b $major $i $disk + makedev rrom$i b $major `math $i +8` $disk + makedev flash$i b $major `math $i +16` $disk + makedev rflash$i b $major `math $i +24` $disk + done + ;; + nb[0-7]) + major=`Major nbd 43` || continue + minor=`suffix $arg nb` + makedev nb$minor b $major $minor $disk + ;; + loop) + for part in 0 1 2 3 4 5 6 7 + do + makedev loop$part b 7 $part $disk + done + ;; + loop[0-9]|loop[1-9][0-9]|loop1[0-9][0-9]|loop2[0-4][0-9]|loop25[0-5]) + minor=`suffix $arg loop` + makedev loop$minor b 7 $minor $disk + ;; + md) + major=`Major md 9` || continue + for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev md$part b $major $part $disk + done + ;; + st[0-7]) + major=`Major st 9` + unit=`suffix $arg st` + makedev st${unit} c $major $unit $tape + makedev nst${unit} c $major `math 128 + $unit` $tape + + makedev st${unit}l c $major `math 32 + $unit` $tape + makedev nst${unit}l c $major `math 160 + $unit` $tape + + makedev st${unit}m c $major `math 64 + $unit` $tape + makedev nst${unit}m c $major `math 192 + $unit` $tape + + makedev st${unit}a c $major `math 96 + $unit` $tape + makedev nst${unit}a c $major `math 224 + $unit` $tape + ;; + qic) + major=`Major tpqic02 12` + makedev ntpqic11 c $major 2 $tape + makedev tpqic11 c $major 3 $tape + makedev ntpqic24 c $major 4 $tape + makedev tpqic24 c $major 5 $tape + makedev ntpqic120 c $major 6 $tape + makedev tpqic120 c $major 7 $tape + makedev ntpqic150 c $major 8 $tape + makedev tpqic150 c $major 9 $tape + makedev rmt8 c $major 6 $tape + makedev rmt16 c $major 8 $tape + makedev tape-d c $major 136 $tape + makedev tape-reset c $major 255 $tape + $0 $opts qft + ;; + ftape) + major=`Major qft 27` || continue + for unit in 0 1 2 3 + do + makedev qft$unit c $major $unit $tape + makedev nqft$unit c $major `math $unit + 4` $tape + makedev zqft$unit c $major `math $unit + 16` $tape + makedev nzqft$unit c $major `math $unit + 20` $tape + makedev rawqft$unit c $major `math $unit + 32` $tape + makedev nrawqft$unit c $major `math $unit + 36` $tape + done + symlink ftape qft0 + symlink nftape nqft0 + ;; + sr|scd|scd-all) + major=`Major sr 11` || continue + for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 + do + makedev scd$unit b $major $unit $cdrom + symlink sr$unit scd$unit + done + ;; + pktcdvd) + major=97 + for unit in 0 1 2 3 + do + makedev pktcdvd$unit b $major $unit $cdrom + done + ;; + cfs0) + makedev cfs0 c 67 0 $coda + ;; + scd[0-9]|scd[0-1][0-9]) + major=`Major sr 11` || continue + unit=`suffix $arg scd` + makedev scd$unit b $major $unit $cdrom + symlink sr$unit scd$unit + ;; + ttyI[0-9]|ttyI[1-5][0-9]|ttyI[6][0-3]) + major=43 + unit=`suffix $arg ttyI` + makedev ttyI$unit c $major $unit $dialout + ;; + ppp) + major=108 + makedev ppp c $major 0 $dip + ;; + ippp[0-9]|ippp[1-5][0-9]|ippp[6][0-3]) + major=45 + unit=`suffix $arg ippp` + minor=`math $unit + 128` + makedev ippp$unit c $major $minor $dialout + ;; + isdn[0-9]|isdn[1-5][0-9]|isdn[6][0-3]) + major=45 + unit=`suffix $arg isdn` + minor=`math $unit + 0` + makedev isdn$unit c $major $minor $dialout + ;; + isdnctrl[0-9]|isdnctrl[1-5][0-9]|isdnctrl[6][0-3]) + major=45 + unit=`suffix $arg isdnctrl` + minor=`math $unit + 64` + makedev isdnctrl$unit c $major $minor $dialout + ;; + isdninfo) + makedev isdninfo c 45 255 $private + ;; + isdn-tty) + major=43 + for unit in 0 1 2 3 4 5 6 7 + do + makedev ttyI$unit c $major $unit $dialout + done + ;; + isdn-ippp) + major=45 + for unit in 0 1 2 3 4 5 6 7 + do + makedev ippp$unit c $major `math $unit + 128` $dialout + done + ;; + isdn-io) + for unit in 0 1 2 3 4 5 6 7 + do + makedev isdn$unit c 45 $unit $dialout + makedev isdnctrl$unit c 45 `math $unit + 64` $dialout + makedev ippp$unit c 45 `math $unit + 128` $dialout + done + makedev isdninfo c 45 255 $dialout + ;; + sonycd) + major=`Major sonycd 15` || continue + makedev $arg b $major 0 $cdrom + ;; + mcd) + major=`Major mcd 23` || continue + makedev $arg b $major 0 $cdrom + ;; + mcdx|mcdx[0-4]) + major=`Major $arg 20` || continue + for unit in 0 1 2 3 4 + do + makedev mcdx$unit b $major $unit $cdrom + done + test -r mcdx || symlink mcdx mcdx0 + ;; + cdu535) + makedev $arg b 24 0 $cdrom + ;; + lmscd) + makedev $arg b 24 0 $cdrom + ;; + sbpcd|sbpcd[123]) + major=`Major $arg 25` || continue + base=`suffix ${arg}0 sbpcd` + for minor in 0 1 2 3 + do + # XXX + unit=$(substr 0123456789abcdef $(( $base * 4 + $minor + 1 )) ) + makedev sbpcd$unit b $major $minor $cdrom + done + [ $arg = sbpcd ] && symlink $arg ${arg}0 + ;; + aztcd) + major=`Major $arg 29` || continue + makedev ${arg}0 b $major 0 $cdrom + ;; + cm206cd) + major=`Major $arg 30` || continue + makedev ${arg}0 b $major 0 $cdrom + ;; + gscd) + major=`Major $arg 16` || continue + makedev ${arg}0 b $major 0 $cdrom + ;; + pcd) + for unit in 0 1 2 3 + do + makedev pcd$unit b 46 $unit $cdrom + done + ;; + bpcd) + makedev $arg b 41 0 $cdrom + ;; + optcd) + makedev $arg b 17 0 $cdrom + ;; + sjcd) + makedev $arg b 18 0 $cdrom + ;; + cfs|coda) + makedev cfs0 c 67 0 $private + ;; + xfs|nnpfs|arla) + makedev xfs0 c 103 0 $private + makedev nnpfs0 c 103 0 $private + ;; + logiscan) + major=`Major logiscan` || continue + makedev $arg c $major 0 $scanner + ;; + toshiba) + major=`Major $arg 10` || continue + makedev $arg c $major 181 root root 0666 + ;; + m105scan) + major=`Major m105` || continue + makedev $arg c $major 0 $scanner + ;; + ac4096) + major=`Major ac4096` || continue + makedev $arg c $major 0 $scanner + ;; + audio) + major=`Major sound 14` + makedev mixer c $major 0 $audio + makedev mixer1 c $major 16 $audio + makedev mixer2 c $major 32 $audio + makedev mixer3 c $major 48 $audio + makedev sequencer c $major 1 $audio + makedev midi00 c $major 2 $audio + makedev midi01 c $major 18 $audio + makedev midi02 c $major 34 $audio + makedev midi03 c $major 50 $audio + makedev dsp c $major 3 $audio + makedev dsp1 c $major 19 $audio + makedev dsp2 c $major 35 $audio + makedev dsp3 c $major 51 $audio + makedev audio c $major 4 $audio + makedev audio1 c $major 20 $audio + makedev audio2 c $major 36 $audio + makedev audio3 c $major 52 $audio + makedev sndstat c $major 6 $audio + makedev audioctl c $major 7 $audio + major=31 + makedev mpu401data c $major 0 $audio + makedev mpu401stat c $major 1 $audio + major=35 + for i in 0 1 2 3 + do + makedev midi$i c $major $i $audio + makedev rmidi$i c $major `math $i + 64` $audio + makedev smpte$i c $major `math $i + 128` $audio + done + ;; + pcaudio) + major=`Major pcsp 13` || continue + makedev pcmixer c $major 0 $audio + makedev pcsp c $major 3 $audio + makedev pcaudio c $major 4 $audio + ;; + video|video4linux|v4l|radio) + # video4linux api includes radio, teletext, etc. + major=`Major video 81` || continue + minor=0 + until [ $minor -gt 63 ] + do + makedev video$minor c $major $minor $video + makedev radio$minor c $major `math $minor + 64` $video + minor=`math $minor + 1` + done + symlink radio radio0 + minor=0 + until [ $minor -gt 31 ] + do + makedev vtx$minor c $major `math $minor + 192` $video + makedev vbi$minor c $major `math $minor + 224` $video + minor=`math $minor + 1` + done + symlink video video0 + symlink vbi vbi0 + major=82 + minor=0 + until [ $minor -gt 1 ] + do + makedev winradio$minor c $major $minor $video + minor=`math $minor + 1` + done + major=83 + makedev vtx c $major 0 $video + makedev vttuner c $major 16 $video + ;; + i2c) + # making it possible to create an arbitrary number of i2c + # devices might be good, but 8 should suffice for now + major=`Major i2c 89` || continue + minor=0 + until [ $minor -gt 7 ] + do + makedev i2c-$minor c $major $minor $private + minor=`math $minor + 1` + done + ;; + tlk) + major=102 + minor=0 + until [ $minor -gt 3 ] # tell me if 3 is wrong... + do + makedev tlk$minor c $major $minor $video + minor=`math $minor + 1` + done + ;; + srnd) + makedev srnd0 c 110 0 $video + makedev srnd1 c 110 1 $video + ;; + fgrab) + makedev mmetfgrab c 40 0 $video + makedev wvisfgrab c 26 0 $video + for i in 0 1 # more? + do + makedev iscc$i c 93 $i $video + makedev isccctl$i c 93 `math $i + 128` $video + done + for i in 0 1 # more? + do + makedev dcxx$i c 94 $i $video + done + ;; + sg|sg-all) + major=`Major sg 21` + for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 + do + makedev sg$unit c $major $unit $scsi + done + ;; + pg) + major=`Major pg 97` + for unit in 0 1 2 3 + do + makedev pg$unit c $major $unit $scsi + done + ;; + fd) + # not really devices, we use the /proc filesystem + symlink fd $procfs/self/fd + symlink stdin fd/0 + symlink stdout fd/1 + symlink stderr fd/2 + ;; + ibcs2) + major=`Major ibcs2 30` || continue + makedev socksys c $major 0 $ibcs2 + symlink nfsd socksys + makedev spx c $major 1 $ibcs2 + symlink X0R null + ;; + netlink) + major=36 + makedev route c $major 0 $private + makedev skip c $major 1 $private + ;; + enskip) + major=64 + makedev enskip c $major 0 $private + ;; + ipfilt*) + major=95 + makedev ipl c $major 0 $private + makedev ipnat c $major 1 $private + makedev ipstate c $major 2 $private + makedev ipauth c $major 3 $private + ;; + qng) + makedev qng c 77 0 $private + ;; + apm) + major=`Major mouse 10` || continue + makedev apm_bios c $major 134 $mouse + ;; + dcf) + major=`Major dcf` || continue + makedev $arg c $major 0 $system + ;; + helloworld) + major=`Major hw` || continue + makedev helloworld c $major 0 $public + ;; + ipsec) + # For the Free S/WAN (http://www.xs4all.nl/~freeswan/) + # implementation of IPSEC + makedev ipsec c 36 10 $ipsec + ;; + comedi) + major=98 + for minor in 0 1 2 3 + do + makedev comedi$minor c $major $minor $public + done + ;; + tilp) + for i in `seq 0 7` + do + makedev tipar$i c 115 $i $printer + makedev tiser$i c 115 `math 8 + $i` $dialout + done + for i in `seq 0 31` + do + makedev tiusb$i c 115 `math 16 + $i` $dialout + done + ;; + dvb) + # check if kernel-version is >= 2.6.8, if yes, create dvb-devices with + # major-number 212, in the other case 250 + + kern_rev1=`uname -r | sed -e 's@^\([^.]*\)\..*@\1@'` + kern_rev2=`uname -r | sed -e 's@^[^.]*\.\([^.]*\)\..*@\1@'` + kern_rev3=`uname -r | sed -e 's@^[^.]*\.[^.]*\.\([^.][0-9]*\).*@\1@'` + + dvb_major=250 + + if [ $kern_rev1 -gt 2 ] || ([ $kern_rev1 -eq 2 ] && [ $kern_rev2 -gt 6 ]) \ + || ([ $kern_rev1 -eq 2 ] && [ $kern_rev2 -eq 6 ] && [ $kern_rev3 -ge 8 ]) + then + dvb_major=212 + fi + + mkdir -p dvb + for i in 0 1 2 3 + do + mkdir -p dvb/adapter$i + makedev dvb/adapter$i/video0 c $dvb_major `math 64 \* $i + 0` $video + makedev dvb/adapter$i/audio0 c $dvb_major `math 64 \* $i + 1` $video + makedev dvb/adapter$i/frontend0 c $dvb_major `math 64 \* $i + 3` $video + makedev dvb/adapter$i/demux0 c $dvb_major `math 64 \* $i + 4` $video + makedev dvb/adapter$i/dvr0 c $dvb_major `math 64 \* $i + 5` $video + makedev dvb/adapter$i/ca0 c $dvb_major `math 64 \* $i + 6` $video + makedev dvb/adapter$i/net0 c $dvb_major `math 64 \* $i + 7` $video + makedev dvb/adapter$i/osd0 c $dvb_major `math 64 \* $i + 8` $video + done + ;; + usb) + mkdir -p usb + major=180 + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev usb/lp$i c $major $i $printer + makedev usb/mouse$i c $major `math $i + 16` $mouse + makedev usb/ez$i c $major `math $i + 32` $system + makedev usb/scanner$i c $major `math $i + 48` $scanner + makedev usb/hiddev$i c $major `math $i + 96` $system + makedev ttyACM$i c 166 $i $dialout + makedev ttyUSB$i c 188 $i $dialout + done + makedev usb/rio500 c $major 64 $audio + makedev usb/usblcd c $major 65 $audio + makedev usb/cpad0 c $major 66 $audio + ;; + bluetooth) + major=216 + for i in 0 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 + do + makedev rfcomm$i c $major $i $dialout + done + makedev vhci c 10 250 $dialout + for i in 0 1 2 3; do + makedev ttyUB$i c 216 $i $dialout + makedev ccub$i c 217 $i $dialout + done + ;; + paride) + major=45 + for unit in a b c d + do + base=`index abcd $unit` + base=`math $base \* 16` + makedev pd$unit b $major $base $disk + for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 + do + makedev pd$unit$part b $major $(( $base + $part )) $disk + done + done + for i in 0 1 2 3 + do + makedev pcd$i b 46 $i $cdrom + makedev pf$i b 47 $i $floppy + done + ;; + update) + devices= + if [ ! -f $procfs/devices ] + then + echo "$0: warning: can't read $procfs/devices" >&2 + else + exec 3<$procfs/devices + while read major device extra <&3 + do + device=`echo $device | sed 's#/.*##'` + case "$major" in + Character|Block|'') + ;; + *) + eval "major_$device=$major" + devices="$devices $device" + ;; + esac + done + exec 3<&- + fi + + if [ ! "$devices" ] + then + echo "$0: don't appear to have any devices" >&2 + continue + fi + if [ "$opt_d" ] + then + echo "$0: can't delete an update" >&2 + continue + fi + create= + delete= + devs="$devices" + if [ -f DEVICES ] + then + exec 3 DEVICES + ;; + *) + echo "$0: don't know how to make device \"$arg\"" >&2 + exit 1 + ;; + esac +done + +exit 0 diff --git a/sys-apps/makedev-gentoo/makedev-gentoo-1.ebuild b/sys-apps/makedev-gentoo/makedev-gentoo-1.ebuild new file mode 100644 index 0000000..7470da0 --- /dev/null +++ b/sys-apps/makedev-gentoo/makedev-gentoo-1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +IUSE="" +DESCRIPTION="MAKEDEV from baselayout-1" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +DEPEND="" +RDEPEND="sys-apps/coreutils" + +src_compile() { :; } + +src_install() { + DESTTREE=/ newsbin "${FILESDIR}"/MAKEDEV MAKEDEV.gentoo +} diff --git a/sys-apps/makedev-gentoo/metadata.xml b/sys-apps/makedev-gentoo/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/sys-apps/makedev-gentoo/metadata.xml @@ -0,0 +1,10 @@ + + + +no-herd + + wschlich@gentoo.org + Wolfram Schlich + Primary maintainer + + diff --git a/sys-apps/memtest86+/Manifest b/sys-apps/memtest86+/Manifest new file mode 100644 index 0000000..e4c1459 --- /dev/null +++ b/sys-apps/memtest86+/Manifest @@ -0,0 +1,5 @@ +AUX memtest86+-1.70-gnu_hash.patch 485 RMD160 355648069f4b3f6234e770bbea30dcef10405376 SHA1 dd0d673b2fdee35b1522574b1499cd943820dca5 SHA256 07bb65affa496910f0c91457c5c21e31a0e523e0c360ebf602b47296748f4bac +AUX memtest86+-2.01-hardcoded_cc.patch 1161 RMD160 16c9dfa8770643170ae00d21c644400bb1ab0d6d SHA1 b0f9c679490eb7da40c6ef77b2944cca1f2211f3 SHA256 7d744366b7aef2a2443e8386cecb1d30e4afeca6f0b7f22b287b8edc76f98dcd +AUX memtest86+-2.01-serial-baud.patch 455 RMD160 94542faf46d9f0a9892cf1beaf8fad6846a9a60d SHA1 190c87478da079ff59e3827660a70f4693daf202 SHA256 57c8ce101b0c3f41d7a6a4755d6ac1def92f7e3c63dfcd20583921b4f764a2c0 +DIST memtest86+-2.01.tar.gz 165984 RMD160 cdd94d9ea1089387bba8bd024c5cb39b741cba9f SHA1 3420652300e397891af8b263318dc08144e8b4a4 SHA256 35ad452f4fd12f07756abccccf1bce70d42596c2c5e9c29247ffc8e0b76bd1ae +EBUILD memtest86+-2.01.ebuild 1769 RMD160 5ef1a503dbd4256672b91ef5cad7c400d5b69ca4 SHA1 2856ce768a346a3e3d6bf35affc887b943e585eb SHA256 42d40cfb681978efe903498a23fb88a2f05502a4ff6c7db4aca46ebc4f5dc98c diff --git a/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch b/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch new file mode 100644 index 0000000..5a9e06d --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch @@ -0,0 +1,11 @@ +diff -Naurp memtest86+-1.70-orig/memtest_shared.lds memtest86+-1.70/memtest_shared.lds +--- memtest86+-1.70-orig/memtest_shared.lds 2007-01-27 13:34:16.000000000 +0100 ++++ memtest86+-1.70/memtest_shared.lds 2007-01-27 13:41:30.000000000 +0100 +@@ -18,6 +18,7 @@ SECTIONS { + .dynsym : { *(.dynsym) } + .dynstr : { *(.dynstr) } + .hash : { *(.hash) } ++ .gnu.hash : { *(.gnu.hash) } + .dynamic : { *(.dynamic) } + + .rel.text : { *(.rel.text .rel.text.*) } diff --git a/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch new file mode 100644 index 0000000..3a92f4d --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch @@ -0,0 +1,29 @@ +diff -u memtest86+-2.01.orig/Makefile memtest86+-2.01/Makefile +--- memtest86+-2.01.orig/Makefile 2008-02-21 16:49:24.000000000 +0100 ++++ memtest86+-2.01/Makefile 2008-03-11 14:52:12.000000000 +0100 +@@ -9,9 +9,10 @@ + FDISK=/dev/fd0 + + AS=as -32 +-CC=gcc + +-CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC ++CFLAGS=-Wall -m32 -march=i486 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++CPPFLAGS=-m32 ++ASFLAGS=-32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o \ +@@ -47,10 +48,10 @@ + memtest_shared.bin -o memtest.bin + + reloc.o: reloc.c +- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c ++ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin diff --git a/sys-apps/memtest86+/files/memtest86+-2.01-serial-baud.patch b/sys-apps/memtest86+/files/memtest86+-2.01-serial-baud.patch new file mode 100644 index 0000000..84f822f --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-2.01-serial-baud.patch @@ -0,0 +1,12 @@ +diff -u memtest86+-2.01.orig/config.h memtest86+-2.01/config.h +--- memtest86+-2.01.orig/config.h 2008-02-21 12:26:05.000000000 +0100 ++++ memtest86+-2.01/config.h 2008-03-11 14:48:04.000000000 +0100 +@@ -19,7 +19,7 @@ + #define SERIAL_TTY 0 + + /* SERIAL_BAUD_RATE - Baud rate for the serial console */ +-#define SERIAL_BAUD_RATE 9600 ++#define SERIAL_BAUD_RATE 115200 + + /* BEEP_MODE - Beep on error. Default off, Change to 1 to enable */ + #define BEEP_MODE 0 diff --git a/sys-apps/memtest86+/memtest86+-2.01.ebuild b/sys-apps/memtest86+/memtest86+-2.01.ebuild new file mode 100644 index 0000000..290223d --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-2.01.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit mount-boot eutils + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="serial" +RESTRICT="test" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-serial-baud.patch + epatch "${FILESDIR}"/${P}-hardcoded_cc.patch + epatch "${FILESDIR}"/${PN}-1.70-gnu_hash.patch + + if use serial ; then + sed -e 's/#define SERIAL_CONSOLE_DEFAULT 0/#define SERIAL_CONSOLE_DEFAULT 1/' -i config.h + fi +} + +src_compile() { + emake || die +} + +src_install() { + insinto /boot/memtest86plus + doins memtest.bin || die + dodoc README README.build-process +} + +pkg_postinst() { + einfo + einfo "memtest.bin has been installed in /boot/memtest86plus/" + einfo "You may wish to update your bootloader configs" + einfo "by adding these lines:" + + # a little magic to make users' life as easy as possible ;) + local fstab=${ROOT}/etc/fstab + local root="(hd0,0)" + local res=$(awk '$2 == "/boot" {print $1}' "${fstab}") + if [[ -z ${res} ]] ; then + res=$(awk '$2 == "/" {print $1}' "${fstab}") + fi + if [[ -n ${res} ]] ; then + # transform /dev/hd* magic into grub naming ... + # /dev/hda1 -> a1 -> 01 + root=$(echo "${res}" | grep -o '[a-z][0-9]' | tr -t a-z 0123456789) + root="(hd${root:0:1},$((${root:1:1}-1)))" + fi + einfo " - For grub:" + einfo " > title=Memtest86Plus" + einfo " > root ${root}" + einfo " > kernel /boot/memtest86plus/memtest.bin" + + einfo " - For lilo:" + einfo " > image = /boot/memtest86plus/memtest.bin" + einfo " > label = Memtest86Plus" + einfo +} diff --git a/sys-block/areca-cli/ChangeLog b/sys-block/areca-cli/ChangeLog new file mode 100644 index 0000000..d737e87 --- /dev/null +++ b/sys-block/areca-cli/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-block/areca-cli +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 21 Apr 2008; Wolfram Schlich + areca-cli-1.72.250_p70306.ebuild, areca-cli-1.80a_p71012_beta.ebuild: + removed unneeded rpm eclass inheritance + + 20 Apr 2008; Wolfram Schlich + +areca-cli-1.72.250_p70306.ebuild, +areca-cli-1.80a_p71012_beta.ebuild: + initial import + diff --git a/sys-block/areca-cli/Manifest b/sys-block/areca-cli/Manifest new file mode 100644 index 0000000..4ac6c37 --- /dev/null +++ b/sys-block/areca-cli/Manifest @@ -0,0 +1,6 @@ +DIST CLIManual.zip 2385625 RMD160 815a3ac6c08f2a9c2dbfc9d4b231b3a3dc752efc SHA1 7e16f194e258f91aeb4339397f7f1acd8b1c73fe SHA256 eacbcffa7ca65b6dad7d267392f7b0c478d31c078453e721c756f5deadfb0f4e +DIST V1.72.250_70306.zip 1073151 RMD160 441cb68156432646fed686dd3a46300545d379ee SHA1 a6ec2f225758c2c47d2f096977de1a6ec2ed07ed SHA256 fe328799875d816df1094ec7373b8cedfab0b6d1817e9fb475cb45dca9ffec03 +DIST V1.80A_71012.zip 1132839 RMD160 2398e18f662c808a81dcc55433e52b7aa63aaa88 SHA1 0f6dfbf9e9d193c3a516210f7ebd43b9176db5e5 SHA256 3b63bf9a78c91970ec1e2ef1e2b4258cb6977e9f3e0f7f3496ff5ffed1075b64 +EBUILD areca-cli-1.72.250_p70306.ebuild 1149 RMD160 c28db827324e40a4fb3347f07d36c9eb67b3c851 SHA1 90483f4954aa63f652a513e0dce832dff55694d6 SHA256 c6a33590498146d31b6c58ccbab7052c2abc1dd9b1721e43f207d96ef1f5c100 +EBUILD areca-cli-1.80a_p71012_beta.ebuild 1149 RMD160 45a0455ac74d76fb4c6ef13f01d061e94a76e76b SHA1 5c8ea3035bbb8e44949ac7647ca930eb30b99e3a SHA256 51f4cbc799fc83f99f5e30806bcea2e546c51288cb46b9707cf3d243d1fd6440 +MISC ChangeLog 433 RMD160 57ec263ff4bbe43bf8b1e2dcf8ee26a10d4350af SHA1 b626db8b9bf76266ec0bf93fa4f6457b202dfc2c SHA256 9a59ef4f1f59c2a135a5e86c90d79040ac32776f9c13afa75ed50ff8ad316263 diff --git a/sys-block/areca-cli/areca-cli-1.72.250_p70306.ebuild b/sys-block/areca-cli/areca-cli-1.72.250_p70306.ebuild new file mode 100644 index 0000000..11cd30e --- /dev/null +++ b/sys-block/areca-cli/areca-cli-1.72.250_p70306.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV=${PV/_p/_}; MY_PV=${MY_PV/a_/A_} +if [[ ${MY_PV/_beta} != ${MY_PV} ]]; then + MY_PV=${MY_PV/_beta} + MY_SRC_URI_PATH="Beta/" +else + MY_SRC_URI_PATH="" +fi +DESCRIPTION="areca RAID Controller Command Line Interface management tool" +HOMEPAGE="http://www.areca.com.tw/" +SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/${MY_SRC_URI_PATH}V${MY_PV}.zip + doc? ( http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/CLIManual.zip )" + +LICENSE="as-is" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="app-arch/unzip" + +RESTRICT="strip mirror test" + +S="${WORKDIR}/V${MY_PV}" + +src_compile() { + echo "Nothing to compile." +} + +src_install() { + exeinto /opt/areca/cli + case ${ARCH} in + amd64) cli=x86_64/cli64;; + x86) cli=i386/cli32;; + *) die "invalid ARCH";; + esac + doexe ${cli} + dosym /opt/areca/cli/${cli##*/} /usr/sbin/areca-cli + useq doc && dodoc "${WORKDIR}"/CLIManual.pdf +} diff --git a/sys-block/areca-cli/areca-cli-1.80a_p71012_beta.ebuild b/sys-block/areca-cli/areca-cli-1.80a_p71012_beta.ebuild new file mode 100644 index 0000000..5e3dea0 --- /dev/null +++ b/sys-block/areca-cli/areca-cli-1.80a_p71012_beta.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV=${PV/_p/_}; MY_PV=${MY_PV/a_/A_} +if [[ ${MY_PV/_beta} != ${MY_PV} ]]; then + MY_PV=${MY_PV/_beta} + MY_SRC_URI_PATH="Beta/" +else + MY_SRC_URI_PATH="" +fi +DESCRIPTION="areca RAID Controller Command Line Interface management tool" +HOMEPAGE="http://www.areca.com.tw/" +SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/${MY_SRC_URI_PATH}V${MY_PV}.zip + doc? ( http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/CLIManual.zip )" + +LICENSE="as-is" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="app-arch/unzip" + +RESTRICT="strip mirror test" + +S="${WORKDIR}/V${MY_PV}" + +src_compile() { + echo "Nothing to compile." +} + +src_install() { + exeinto /opt/areca/cli + case ${ARCH} in + amd64) cli=x86-64/cli64;; + x86) cli=i386/cli32;; + *) die "invalid ARCH";; + esac + doexe ${cli} + dosym /opt/areca/cli/${cli##*/} /usr/sbin/areca-cli + useq doc && dodoc "${WORKDIR}"/CLIManual.pdf +} diff --git a/sys-block/areca-http/ChangeLog b/sys-block/areca-http/ChangeLog new file mode 100644 index 0000000..ba03dec --- /dev/null +++ b/sys-block/areca-http/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sys-block/areca-http +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 22 Apr 2008; Wolfram Schlich + +areca-http-1.81.250_p70306.ebuild, +areca-http-1.82_p70911_beta.ebuild: + initial import + diff --git a/sys-block/areca-http/Manifest b/sys-block/areca-http/Manifest new file mode 100644 index 0000000..82a9f3e --- /dev/null +++ b/sys-block/areca-http/Manifest @@ -0,0 +1,5 @@ +DIST V1.81.250_70306.zip 1157077 RMD160 72e135eace39676e14f5f1c21a7101fa834c1bee SHA1 169a6ba890a9ee6065ce397822408e2587ce7928 SHA256 cc27b6342f0960127d5554197ac35462d3f6976c92e7be76f9278fa6620ae4f1 +DIST v1.82_70911.zip 1177354 RMD160 b63ec1b0f229faa028286755b3d1ffa256a4c32d SHA1 7bfe4934a273a53df2963704b70d7ccb4b0b35de SHA256 04fd312810dacad4789a2abb3f0d971874487943982236e6429d1e33845e8eea +EBUILD areca-http-1.81.250_p70306.ebuild 1006 RMD160 820b7f4dc4c77490024ea0e91d0716aca59443c3 SHA1 467e83403a98c1eaec2428818ec2abd2b7da710f SHA256 0e554a01eba03a7c73e64761ee4e042f47bf5bf816bcbe3c53c3cd62bdb54146 +EBUILD areca-http-1.82_p70911_beta.ebuild 1006 RMD160 bc484d4690e045779f6688820d6200d48c4bb092 SHA1 6827ae0bcbd9825d23151f1deea7123cee89896b SHA256 a05e9576dea58ce9c4fa3cefbf87f34d6d6efab874ab8e1834e25a57a1062f98 +MISC ChangeLog 267 RMD160 66974dd8cc12ceeb930f3dc66b07f0e3a3f1d93e SHA1 7432ac2abd02abc704449322fc268a10b969133f SHA256 b7341afa65a9b075dadb22fc1c385370d25e1cd1a0d237c878d074fcde59376d diff --git a/sys-block/areca-http/areca-http-1.81.250_p70306.ebuild b/sys-block/areca-http/areca-http-1.81.250_p70306.ebuild new file mode 100644 index 0000000..6d40a09 --- /dev/null +++ b/sys-block/areca-http/areca-http-1.81.250_p70306.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV=${PV/_p/_}; MY_PV=${MY_PV/a_/A_} +if [[ ${MY_PV/_beta} != ${MY_PV} ]]; then + MY_PV=${MY_PV/_beta} + MY_SRC_URI_PATH="Beta/" +else + MY_SRC_URI_PATH="" +fi +DESCRIPTION="areca RAID Controller web management daemon" +HOMEPAGE="http://www.areca.com.tw/" +SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/HTTP/${MY_SRC_URI_PATH}V${MY_PV}.zip" + +LICENSE="as-is" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" + +RESTRICT="strip mirror test" + +S="${WORKDIR}/V${MY_PV}" + +src_compile() { + echo "Nothing to compile." +} + +src_install() { + exeinto /opt/areca/http + case ${ARCH} in + amd64) http=x86_64/archttp64;; + x86) http=i386/archttp32;; + *) die "invalid ARCH";; + esac + doexe ${http} + dosym /opt/areca/http/${http##*/} /usr/sbin/areca-http +} diff --git a/sys-block/areca-http/areca-http-1.82_p70911_beta.ebuild b/sys-block/areca-http/areca-http-1.82_p70911_beta.ebuild new file mode 100644 index 0000000..ccc9808 --- /dev/null +++ b/sys-block/areca-http/areca-http-1.82_p70911_beta.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV=${PV/_p/_}; MY_PV=${MY_PV/a_/A_} +if [[ ${MY_PV/_beta} != ${MY_PV} ]]; then + MY_PV=${MY_PV/_beta} + MY_SRC_URI_PATH="Beta/" +else + MY_SRC_URI_PATH="" +fi +DESCRIPTION="areca RAID Controller web management daemon" +HOMEPAGE="http://www.areca.com.tw/" +SRC_URI="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/HTTP/${MY_SRC_URI_PATH}v${MY_PV}.zip" + +LICENSE="as-is" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" + +RESTRICT="strip mirror test" + +S="${WORKDIR}/V${MY_PV}" + +src_compile() { + echo "Nothing to compile." +} + +src_install() { + exeinto /opt/areca/http + case ${ARCH} in + amd64) http=x86_64/archttp64;; + x86) http=i386/archttp32;; + *) die "invalid ARCH";; + esac + doexe ${http} + dosym /opt/areca/http/${http##*/} /usr/sbin/areca-http +} diff --git a/sys-block/hdrecover/ChangeLog b/sys-block/hdrecover/ChangeLog new file mode 100644 index 0000000..63cdd27 --- /dev/null +++ b/sys-block/hdrecover/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sys-block/hdrecover +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 20 Apr 2008; Wolfram Schlich +hdrecover-0.2.ebuild: + initial import + diff --git a/sys-block/hdrecover/Manifest b/sys-block/hdrecover/Manifest new file mode 100644 index 0000000..b76bdc9 --- /dev/null +++ b/sys-block/hdrecover/Manifest @@ -0,0 +1,3 @@ +DIST hdrecover-0.2.tar.gz 79220 RMD160 2884249cfe01e1b4868d7ed2ee173d632b3458a9 SHA1 2f96a3d6beba62275c3f6a854901e1f0c9af9ae3 SHA256 e4d583f10e789a7f1c612cd9c6e46121658ea6a25a8f0ffb77ecd1ea186d57de +EBUILD hdrecover-0.2.ebuild 539 RMD160 3086853745cd1b51029a864ec196a65e673be3ae SHA1 a8cb8ac8dc4d5b1d84c9b4fea964d5978e696d16 SHA256 bf279ea72d43b49cace7e4f13d8e082aece4b42a40b393329b1ba1915ebed679 +MISC ChangeLog 214 RMD160 0746948a3bf94cba7ebde5b41fa57146a7006bb4 SHA1 4038fc458945055a40dd112e9c4523bf1f4d8bb9 SHA256 f40e77e87e38a21a4a0ba9c14ed812246fda5e4e793616f826c303f4cfbbd0d6 diff --git a/sys-block/hdrecover/hdrecover-0.2.ebuild b/sys-block/hdrecover/hdrecover-0.2.ebuild new file mode 100644 index 0000000..225d249 --- /dev/null +++ b/sys-block/hdrecover/hdrecover-0.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +IUSE="" +DESCRIPTION="hdrecover attempts to recover a hard disk that has bad blocks on it" +HOMEPAGE="http://hdrecover.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DEPEND="" + +src_compile() { + econf || die "configure failed" + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc README NEWS +} diff --git a/sys-cluster/drbd-kernel/ChangeLog b/sys-cluster/drbd-kernel/ChangeLog new file mode 100644 index 0000000..0689034 --- /dev/null +++ b/sys-cluster/drbd-kernel/ChangeLog @@ -0,0 +1,28 @@ +# ChangeLog for sys-cluster/drbd-kernel +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 03 Dec 2008; Wolfram Schlich + +files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2, + +drbd-kernel-8.2.7_p20081202.ebuild: + bump to current drbd-8.2.git snapshot + + 13 Nov 2008; Wolfram Schlich + -drbd-kernel-8.0.11.ebuild, -drbd-kernel-8.2.5.ebuild, + -drbd-kernel-8.2.6.ebuild, -drbd-kernel-8.2.7_rc2.ebuild, + +drbd-kernel-8.2.7.ebuild: + version bump, removed old versions + + 10 Nov 2008; Wolfram Schlich + +drbd-kernel-8.2.7_rc2.ebuild: + version bump + + 30 May 2008; Wolfram Schlich + +drbd-kernel-8.2.6.ebuild: + version bump + + 29 Feb 2008; Wolfram Schlich + -drbd-kernel-8.0.10.ebuild, -drbd-kernel-8.2.4.ebuild, + -drbd-kernel-8.2.5_pre20080215.ebuild: + remove old versions and digests + diff --git a/sys-cluster/drbd-kernel/Manifest b/sys-cluster/drbd-kernel/Manifest new file mode 100644 index 0000000..29710ca --- /dev/null +++ b/sys-cluster/drbd-kernel/Manifest @@ -0,0 +1,6 @@ +AUX drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 8008 RMD160 f27c970f18a141b828f3ab8799e932bfe36c1807 SHA1 a524f68686c31c5c7069cadd1ec38899f0beff4c SHA256 6545adcf772deefca66c1f1a68c05ab593d4d2e866cd34e6f4d0bbff9910b0a7 +AUX drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 RMD160 f459b054e5a0ee43bac860a365ce42d19b35f70f SHA1 d1553f440d1c2b152e6166d2d3148e80d9cd5a1c SHA256 594527b03820de4f8fbfbdfdbfeb004242e8a712575fb2854f0f6b99880d9b36 +DIST drbd-8.2.7.tar.gz 356223 RMD160 26386414fe782fe3ddf1a9c9202bbd2d49e722f9 SHA1 3e71cdb2a681d6f47ca63fb5632bb69bafafd685 SHA256 5ff70d80959be859bd687b96b14c531462300e569173fedc28b542b976b5d200 +EBUILD drbd-kernel-8.2.7.ebuild 1263 RMD160 4291f654ec1b2e7626279df6aafe07ce1f7466eb SHA1 d9c97ac4c2a3d07c81287deabef76290daf03ee4 SHA256 abf4013caa0221592ae2acc4805f55d20b43444163aecc69915f6b1c1ab9e249 +EBUILD drbd-kernel-8.2.7_p20081202.ebuild 1388 RMD160 0467848a0f5815619394dd9bad22b4c810d378ed SHA1 dbc4deb6823178562ab7f5084818dde3bde46ef0 SHA256 be01a14ade1c389c7dd57044f7106fa8484ca72b64326f104e1bd6d3ea4b5c1d +MISC ChangeLog 956 RMD160 e8c95ec8f38f374d3f88aea814abf8e2811bc71b SHA1 0b305427d2316b16d8f1794a91a25f2d4a914e01 SHA256 b444121bcb54921537b994b5413bfbe0cba2287b87b20368816b9012960247aa diff --git a/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild new file mode 100644 index 0000000..a6582e5 --- /dev/null +++ b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator linux-mod + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PV="${PV/_/}" +MY_PN="${PN/-kernel/}" +MY_P="${MY_PN}-${MY_PV}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" + +HOMEPAGE="http://www.drbd.org" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${MY_PV}.tar.gz" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if ! kernel_is 2 6; then + die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ." + fi + + MODULE_NAMES="drbd(block:${S}/drbd)" + BUILD_TARGETS="default" + CONFIG_CHECK="CONNECTOR" + CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it." + linux-mod_pkg_setup + BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" +} diff --git a/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild new file mode 100644 index 0000000..1ae173d --- /dev/null +++ b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator linux-mod + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PV="${PV%_p*}"; MY_PV="${MY_PV/_/}"; +MY_PN="${PN/-kernel/}" +MY_P="${MY_PN}-${MY_PV}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" + +HOMEPAGE="http://www.drbd.org" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${MY_PV}.tar.gz" + +IUSE="" + +DEPEND="virtual/linux-sources" +RDEPEND="" +SLOT="0" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if ! kernel_is 2 6; then + die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ." + fi + + MODULE_NAMES="drbd(block:${S}/drbd)" + BUILD_TARGETS="default" + CONFIG_CHECK="CONNECTOR" + CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it." + linux-mod_pkg_setup + BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die + epatch "${FILESDIR}"/${MY_PN}-${MY_PV}-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 || die +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "Please remember to re-emerge drbd when you upgrade your kernel!" + einfo "" +} diff --git a/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 b/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 new file mode 100644 index 0000000..34a2583 Binary files /dev/null and b/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 differ diff --git a/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch new file mode 100644 index 0000000..beb07fb --- /dev/null +++ b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch @@ -0,0 +1,23 @@ +--- drbd-8.0.0/scripts/adjust_drbd_config_h.sh.orig 2007-02-05 01:20:58.000000000 +0100 ++++ drbd-8.0.0/scripts/adjust_drbd_config_h.sh 2007-02-05 01:21:28.000000000 +0100 +@@ -26,19 +26,7 @@ + pushd $KDIR + + KDIR=${KDIR%/} +-if test -z "$O"; then +- ## just in case... +- ## detect if $KDIR points to something which is actually $O ... +- X=$( make help | sed -ne '/ -C .* O=.* help$/p' | tr -s ' ' ) +- if [[ -n $X ]]; then +- KDIR=${X##* -C }; KDIR=${KDIR%% *}; KDIR=$(cd $KDIR && pwd) +- O=${X##* O=}; O=${O%% *}; O=$(cd $KDIR && cd $O && pwd) +- else +- O=$KDIR; +- fi +-else +- O=${O%/} +-fi ++O=$KDIR; + + # some paranoia: check that all files are where we expect them + ls > /dev/null \ diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog new file mode 100644 index 0000000..4dcdda1 --- /dev/null +++ b/sys-cluster/drbd/ChangeLog @@ -0,0 +1,24 @@ +# ChangeLog for sys-cluster/drbd +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 03 Dec 2008; Wolfram Schlich + +files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2, + +drbd-8.2.7_p20081202.ebuild: + bump to current drbd-8.2.git snapshot + + 13 Nov 2008; Wolfram Schlich -drbd-8.0.11.ebuild, + -drbd-8.2.5.ebuild, -drbd-8.2.6.ebuild, -drbd-8.2.7_rc2.ebuild, + +drbd-8.2.7.ebuild: + version bump, removed old versions + + 10 Nov 2008; Wolfram Schlich +drbd-8.2.7_rc2.ebuild: + version bump + + 30 May 2008; Wolfram Schlich +drbd-8.2.6.ebuild: + version bump + + 29 Feb 2008; Wolfram Schlich -drbd-8.0.10.ebuild, + -drbd-8.2.4.ebuild, -drbd-8.2.5_pre20080215.ebuild: + remove old versions and digests + diff --git a/sys-cluster/drbd/Manifest b/sys-cluster/drbd/Manifest new file mode 100644 index 0000000..3d76f94 --- /dev/null +++ b/sys-cluster/drbd/Manifest @@ -0,0 +1,6 @@ +AUX drbd-8.0.rc 3067 RMD160 741017b59b33b435e3f02497a10edbb4addfdc42 SHA1 f7288a4e1d57738018b460f2c0c40890a9b47cd0 SHA256 53bf3a766c654b32d3dd1644ea377a4006f56095bec880f7c4d94ebe976d9b50 +AUX drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 8008 RMD160 f27c970f18a141b828f3ab8799e932bfe36c1807 SHA1 a524f68686c31c5c7069cadd1ec38899f0beff4c SHA256 6545adcf772deefca66c1f1a68c05ab593d4d2e866cd34e6f4d0bbff9910b0a7 +DIST drbd-8.2.7.tar.gz 356223 RMD160 26386414fe782fe3ddf1a9c9202bbd2d49e722f9 SHA1 3e71cdb2a681d6f47ca63fb5632bb69bafafd685 SHA256 5ff70d80959be859bd687b96b14c531462300e569173fedc28b542b976b5d200 +EBUILD drbd-8.2.7.ebuild 1319 RMD160 aadd6333a50470d92a41337cfd24bdf52e9e2fa7 SHA1 1fc8b1eb6e8a98557c374551b318020f81db14bd SHA256 ee111e1fb76dc595fbf9b66b79791f6c3f7af22c33db260d9276ef553200180f +EBUILD drbd-8.2.7_p20081202.ebuild 1483 RMD160 69fee9e0b0f97090214f3ea179c643eeb71f2647 SHA1 3ae22c66debca18f2cde9d8647dfa4f9db214bf8 SHA256 b2a4add0eea64e9efc4b49be4388280bc3c90ce276179b9f2a671c067fd763f9 +MISC ChangeLog 864 RMD160 10f680c2d16d5c6420f2b7bbe08d10376c37e8a5 SHA1 0d24047dd8c40a924a19e3f1711ce77d3caac3f1 SHA256 6db4618841a6b0ee5f79381ef30037a6f332a2876d13ce41cb9791cce69ed7ab diff --git a/sys-cluster/drbd/drbd-8.2.7.ebuild b/sys-cluster/drbd/drbd-8.2.7.ebuild new file mode 100644 index 0000000..caa4d9d --- /dev/null +++ b/sys-cluster/drbd/drbd-8.2.7.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PV="${PV/_/}" +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${MY_PV}.tar.gz" +HOMEPAGE="http://www.drbd.org" + +IUSE="" + +DEPEND="" +RDEPEND="" +PDEPEND="~sys-cluster/drbd-kernel-${PV}" + +SLOT="0" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_compile() { + emake -j1 tools || die "compile problem" +} + +src_install() { + emake PREFIX="${D}" install-tools || die "install problem" + + # gentoo-ish init-script + newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die + + # docs + dodoc README ChangeLog COPYING ROADMAP INSTALL + + # we put drbd.conf into docs + # it doesnt make sense to install a default conf in /etc + # put it to the docs + rm -f "${D}"/etc/drbd.conf + dodoc scripts/drbd.conf || die +} + +pkg_postinst() { + einfo "" + einfo "Please copy and gunzip the configuration file" + einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc" + einfo "and edit it to your needs. Helpful commands:" + einfo "man 5 drbd.conf" + einfo "man 8 drbdsetup" + einfo "man 8 drbdadm" + einfo "man 8 drbddisk" + einfo "man 8 drbdmeta" + einfo "" +} diff --git a/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild b/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild new file mode 100644 index 0000000..ee5d31e --- /dev/null +++ b/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +MY_PV="${PV%_p*}"; MY_PV="${MY_PV/_/}"; +MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})" +DESCRIPTION="mirror/replicate block-devices across a network-connection" +SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${MY_PV}.tar.gz" +HOMEPAGE="http://www.drbd.org" + +IUSE="" + +DEPEND="" +RDEPEND="" +PDEPEND="~sys-cluster/drbd-kernel-${PV}" + +SLOT="0" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-${MY_PV}-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 || die +} + +src_compile() { + emake -j1 tools || die "compile problem" +} + +src_install() { + emake PREFIX="${D}" install-tools || die "install problem" + + # gentoo-ish init-script + newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die + + # docs + dodoc README ChangeLog COPYING ROADMAP INSTALL + + # we put drbd.conf into docs + # it doesnt make sense to install a default conf in /etc + # put it to the docs + rm -f "${D}"/etc/drbd.conf + dodoc scripts/drbd.conf || die +} + +pkg_postinst() { + einfo "" + einfo "Please copy and gunzip the configuration file" + einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc" + einfo "and edit it to your needs. Helpful commands:" + einfo "man 5 drbd.conf" + einfo "man 8 drbdsetup" + einfo "man 8 drbdadm" + einfo "man 8 drbddisk" + einfo "man 8 drbdmeta" + einfo "" +} diff --git a/sys-cluster/drbd/files/drbd-8.0.rc b/sys-cluster/drbd/files/drbd-8.0.rc new file mode 100644 index 0000000..4d4c004 --- /dev/null +++ b/sys-cluster/drbd/files/drbd-8.0.rc @@ -0,0 +1,156 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.5 2007/11/12 00:18:35 xmerlin Exp $ + +opts="${opts} reload" + +depend() { + use logger + need net + before heartbeat + after sshd +} + +DEFAULTFILE="/etc/conf.d/drbd" +DRBDADM="/sbin/drbdadm" +PROC_DRBD="/proc/drbd" +MODPROBE="/sbin/modprobe" +RMMOD="/sbin/rmmod" +UDEV_TIMEOUT=10 +ADD_MOD_PARAM="" + +if [ -f $DEFAULTFILE ]; then + . $DEFAULTFILE +fi + +# Just in case drbdadm want to display any errors in the configuration +# file, or we need to ask the user about registering this installation +# at http://usage.drbd.org, we call drbdadm here without any IO +# redirection. +$DRBDADM sh-nop + +function assure_module_is_loaded() { + [ -e "$PROC_DRBD" ] && return + ebegin "Loading drbd module" + ret=0 + + $MODPROBE -s drbd `$DRBDADM sh-mod-parms` $ADD_MOD_PARAM || ret=20 + eend $ret + return $ret +} + +function adjust_with_progress() { + IFS_O=$IFS + NEWLINE=' +' + IFS=$NEWLINE + local D=0 + local S=0 + local N=0 + + einfon "Setting drbd parameters " + COMMANDS=`$DRBDADM -d adjust all` || { + eend 20 "Error executing drbdadm" + return 20 + } + echo -n "[ " + + for CMD in $COMMANDS; do + if echo $CMD | grep -q disk; then echo -n "d$D "; D=$(( D+1 )); + elif echo $CMD | grep -q syncer; then echo -n "s$S "; S=$(( S+1 )); + elif echo $CMD | grep -q net; then echo -n "n$N "; N=$(( N+1 )); + else echo echo -n ".. "; + fi + IFS=$IFS_O + $CMD || { + echo + eend 20 "cmd $CMD failed!" + return 20 + } + IFS=$NEWLINE + done + echo "]" + eend 0 + + IFS=$IFS_O +} + +start() { + einfo "Starting DRBD resources:" + eindent + assure_module_is_loaded || return $? + adjust_with_progress || return $? + + # make sure udev has time to create the device files + ebegin "Waiting for udev device creation ..." + for RESOURCE in `$DRBDADM sh-resources`; do + for DEVICE in `$DRBDADM sh-dev $RESOURCE`; do + UDEV_TIMEOUT_LOCAL=$UDEV_TIMEOUT + while [ ! -e $DEVICE ] && [ $UDEV_TIMEOUT_LOCAL -gt 0 ] ; do + sleep 1 + UDEV_TIMEOUT_LOCAL=$(( $UDEV_TIMEOUT_LOCAL-1 )) + done + done + done + eend 0 + + einfon "Waiting for connection " + $DRBDADM wait-con-int + ret=$? + echo + + sleep 5 + + einfon "Become primary if configured " + $DRBDADM sh-b-pri all + echo + + eend $ret + return $ret +} + +stop() { + ebegin "Stopping all DRBD resources" + + # Check for mounted drbd devices + if ! grep -q '^/dev/drbd' /proc/mounts &>/dev/null; then + if [ -e ${PROC_DRBD} ]; then + ${DRBDADM} down all + sleep 3 + ${RMMOD} drbd + fi + ret=$? + eend $ret + return $ret + else + einfo "drbd devices mounted, please umount them before trying to stop drbd!" + eend 1 + return 1 + fi +} + +status() { + # NEEDS to be heartbeat friendly... + # so: put some "OK" in the output. + + if [ -e $PROC_DRBD ]; then + ret=0 + ebegin "drbd driver loaded OK; device status:" + eend $ret + cat $PROC_DRBD + else + ebegin "drbd not loaded" + ret=3 + eend $ret + fi + return $ret +} + +reload() { + ebegin "Reloading DRBD" + ${DRBDADM} adjust all + ret=$? + eend $ret + return $ret +} diff --git a/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 b/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 new file mode 100644 index 0000000..34a2583 Binary files /dev/null and b/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 differ diff --git a/sys-cluster/drbdlinks/ChangeLog b/sys-cluster/drbdlinks/ChangeLog new file mode 100644 index 0000000..509bfc8 --- /dev/null +++ b/sys-cluster/drbdlinks/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-cluster/drbdlinks +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 07 May 2009; Wolfram Schlich -drbdlinks-1.11.ebuild, + +drbdlinks-1.15.ebuild: + version bump, removed old version + + 08 Sep 2008; Wolfram Schlich +drbdlinks-1.12.ebuild: + version bump + diff --git a/sys-cluster/drbdlinks/Manifest b/sys-cluster/drbdlinks/Manifest new file mode 100644 index 0000000..f95a16b --- /dev/null +++ b/sys-cluster/drbdlinks/Manifest @@ -0,0 +1,6 @@ +AUX drbdlinks-init 756 RMD160 cc113485aea8b4f72e7344af2d76a11848929b43 SHA1 0ae0cbd8461dd67ce91c891c7d4ac746f04cafe9 SHA256 78401d2761b7cba0343dd886d7cab6ad82bfbab781aea49a3e5be7a3ee59f59e +DIST drbdlinks-1.12.tar.gz 15337 RMD160 c1e8ab62edf42fe587de19e0f18b335eaeaf4c62 SHA1 c93a467e8733c591b2b80de89fcd8c6f9612845b SHA256 7cab5fb03588b91be8150d0646b910ef4b5228912abf89c9d811f3e4b521f30d +DIST drbdlinks-1.15.tar.gz 15681 RMD160 01b0d8bc9b6448285a0e5ff87130c8d33cf83cef SHA1 01f6ea75a3979bf66a5cbd76df41b9546cc9ea57 SHA256 b47195a94c748b065a5611d8c59a3c61e349cabd3b99e78b332312c2cd6d93a8 +EBUILD drbdlinks-1.12.ebuild 852 RMD160 df157d919337234efec57c07be56b0c5fdff9d1e SHA1 188ce82dbf496c2d87dcfab82e2a72f7af31f58a SHA256 84cb1885e77a74c32ed42f8ab28ff18ff33631f7513560fc95902be920e9e2cb +EBUILD drbdlinks-1.15.ebuild 852 RMD160 8c3fa1f87a93ed8b073f13e6174d057ab4ccb09e SHA1 f12acd87ea5c90601ec4d1de2b29d425e0cd704f SHA256 f61f868fdc3cc4cc71ba92e292b3ed37cb2d0e64dbd40e098fd4cbb17bd944c0 +MISC ChangeLog 355 RMD160 a67d1958dfc75992db4e83b393e12e9bfa75ce92 SHA1 1697db1a35f625b2954b4c9274615f99a883278a SHA256 9adf35e944a8b7fa110bc70674e2496c21123f54ed35883f30658fe276996239 diff --git a/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild b/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild new file mode 100644 index 0000000..a3fac2e --- /dev/null +++ b/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A python script to manage symlinks in a Linux-HA cluster environment using DRBD" +HOMEPAGE="http://www.tummy.com/Community/software/drbdlinks" +SRC_URI="ftp://ftp.tummy.com/pub/tummy/drbdlinks/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="heartbeat" + +DEPEND="dev-lang/python + heartbeat? ( sys-cluster/heartbeat )" + +src_install () { + dosbin drbdlinks + + insinto /etc + doins drbdlinks.conf + + newinitd "${FILESDIR}"/drbdlinks-init drbdlinks + + doman drbdlinks.8 + dodoc LICENSE README WHATSNEW + + if useq heartbeat; then + dodir /etc/ha.d/resource.d + dosym /usr/sbin/drbdlinks /etc/ha.d/resource.d/drbdlinks + fi +} + +pkg_postinst() { + einfo + einfo "Please modify /etc/drbdlinks.conf as needed." + einfo +} diff --git a/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild b/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild new file mode 100644 index 0000000..12a7e19 --- /dev/null +++ b/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A python script to manage symlinks in a Linux-HA cluster environment using DRBD" +HOMEPAGE="http://www.tummy.com/Community/software/drbdlinks" +SRC_URI="ftp://ftp.tummy.com/pub/tummy/drbdlinks/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="heartbeat" + +DEPEND="dev-lang/python + heartbeat? ( sys-cluster/heartbeat )" + +src_install () { + dosbin drbdlinks + + insinto /etc + doins drbdlinks.conf + + newinitd "${FILESDIR}"/drbdlinks-init drbdlinks + + doman drbdlinks.8 + dodoc LICENSE README WHATSNEW + + if useq heartbeat; then + dodir /etc/ha.d/resource.d + dosym /usr/sbin/drbdlinks /etc/ha.d/resource.d/drbdlinks + fi +} + +pkg_postinst() { + einfo + einfo "Please modify /etc/drbdlinks.conf as needed." + einfo +} diff --git a/sys-cluster/drbdlinks/files/drbdlinks-init b/sys-cluster/drbdlinks/files/drbdlinks-init new file mode 100644 index 0000000..dddad8d --- /dev/null +++ b/sys-cluster/drbdlinks/files/drbdlinks-init @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header:$ + +# +# TODO: +# - make this script LSB compliant for heartbeats LSB resource agent +# + +depend() { + need localmount + use drbd +} + +checkconfig() { + if [ ! -e /etc/drbdlinks.conf ] ; then + eerror "You need to create /etc/drbdlinks.conf first." + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Creating drbd symlinks" + /usr/sbin/drbdlinks start + eend $? "Failed to create drbd links" +} + +stop() { + checkconfig || return 1 + ebegin "Cleaning up drbd symlinks" + /usr/sbin/drbdlinks stop + eend $? "Failed to clean up drbd links" +} + +status() { + ebegin "Checking for drbd symlinks" + /usr/sbin/drbdlinks status + eend $? +} diff --git a/sys-cluster/heartbeat-scripts/ChangeLog b/sys-cluster/heartbeat-scripts/ChangeLog new file mode 100644 index 0000000..29a62cf --- /dev/null +++ b/sys-cluster/heartbeat-scripts/ChangeLog @@ -0,0 +1,24 @@ +# ChangeLog for sys-cluster/heartbeat-scripts +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 17 Jul 2008; Wolfram Schlich + -heartbeat-scripts-3.ebuild, +heartbeat-scripts-4.ebuild: + version bump + + 17 Jul 2008; Wolfram Schlich + -heartbeat-scripts-2.ebuild, +heartbeat-scripts-3.ebuild: + version bump + + 17 Jul 2008; Wolfram Schlich + -heartbeat-scripts-1-r1.ebuild, +heartbeat-scripts-2.ebuild: + version bump + + 16 Jul 2008; Wolfram Schlich + -heartbeat-scripts-1.ebuild, +heartbeat-scripts-1-r1.ebuild: + fixup + + 16 Jul 2008; Wolfram Schlich + +heartbeat-scripts-1.ebuild: + initial import + diff --git a/sys-cluster/heartbeat-scripts/Manifest b/sys-cluster/heartbeat-scripts/Manifest new file mode 100644 index 0000000..b2dae01 --- /dev/null +++ b/sys-cluster/heartbeat-scripts/Manifest @@ -0,0 +1,3 @@ +DIST heartbeat-scripts-4.tar.bz2 19617 RMD160 9113bc28c8de91a1351dc91ac2d2428f908375b7 SHA1 7eff1bd3a2410625917a7a3d5fa75e88bd7c18d6 SHA256 3781d81b799d964c08ce80e5e733fc90ae46d379a1e21830d327ac07de279c95 +EBUILD heartbeat-scripts-4.ebuild 885 RMD160 9c79fa4c48c685d1851e41bef12d30bbc1214c9d SHA1 e6cdc85de49d0b5eae544673e1aa2254abd742f8 SHA256 e41e077dd65d5a538389b3e7166f62c5e190e9e1c385ddb5be4ba297ac89cd70 +MISC ChangeLog 747 RMD160 07135ccb2aa2ff14b8ce1c691bac6a7cd5534f2b SHA1 a77a69740b924c19715b284359ade3c6cb057131 SHA256 f12cc0850cab060820f3c3bad52b306e874ad5055935ecb0dcf9f861af6fd5c9 diff --git a/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild b/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild new file mode 100644 index 0000000..fa4b5d5 --- /dev/null +++ b/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# +# Created by Wolfram Schlich +# Feedback is greatly appreciated! +# + +inherit multilib + +IUSE="examples" +DESCRIPTION="Heartbeat scripts (OCF Resource Agents, STONITH plugins etc.)" +HOMEPAGE="http://dev.gentoo.org/~wschlich/" +SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${P}.tar.bz2" +RESTRICT="mirror" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DEPEND="sys-cluster/heartbeat" + +src_compile() { + : NOP +} + +src_install() { + exeinto /usr/$(get_libdir)/ocf/resource.d/custom + doexe ${S}/ocf-ra/* + + exeinto /usr/$(get_libdir)/stonith/plugins/external/custom + doexe ${S}/stonith/* + + if use examples; then + local docdir=/usr/share/doc/${PF}/${_E_DOCDESTTREE_} + insinto ${docdir} + doins -r ${S}/examples + ecompressdir ${docdir} + fi +} diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog new file mode 100644 index 0000000..0510941 --- /dev/null +++ b/sys-cluster/heartbeat/ChangeLog @@ -0,0 +1,87 @@ +# ChangeLog for sys-cluster/heartbeat +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 09 Sep 2008; Wolfram Schlich + heartbeat-2.1.3-r5.ebuild, heartbeat-2.1.4.ebuild, + +heartbeat-2.99.0_beta.ebuild: + *DEPEND fixed, ebuild cleanups, version bump + + 18 Aug 2008; Wolfram Schlich + +heartbeat-2.1.4.ebuild: + version bump + + 14 Aug 2008; Wolfram Schlich + -files/heartbeat.init-r1, +files/heartbeat.init-r2, + -heartbeat-2.1.3-r4.ebuild, +heartbeat-2.1.3-r5.ebuild: + modify init script to NOT start heartbeat with increased priority (-10) + anymore because all started resources also were started with that priority + + 23 Jul 2008; Wolfram Schlich + +files/heartbeat.init-r1, -files/heartbeat-init, + -heartbeat-2.1.3-r3.ebuild, +heartbeat-2.1.3-r4.ebuild: + modify init script to be POSIX compliant (useful for baselayout-2/openrc) + and to start heartbeat with increased priority (-10) + + 03 Jul 2008; Wolfram Schlich + -files/drbd-peer-outdater.sh, -heartbeat-2.1.3-r1.ebuild, + -heartbeat-2.1.3-r2.ebuild, -heartbeat-2.1.3_p15-r10.ebuild: + removed old versions + + 27 Mar 2008; Wolfram Schlich + +files/heartbeat-2.1.3-leapyear-rewrite.patch, + +files/heartbeat-2.1.3-lrmadmin-cts.patch, heartbeat-2.1.3-r3.ebuild: + added revised leapyear patch, added lrmadmin patch to make the CTS happy, + remove drbd-peer-outdater wrapper and corresponding warning + + 26 Mar 2008; Wolfram Schlich + +files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch, + +heartbeat-2.1.3-r3.ebuild: + incorporate critical dopd patch from + http://hg.linux-ha.org/dev/rev/47f60bebe7b2 + + 04 Mar 2008; Wolfram Schlich + heartbeat-2.1.3-r1.ebuild: + added missing autotools eclass inheritance + + 04 Mar 2008; Wolfram Schlich + -heartbeat-2.1.3.ebuild, -heartbeat-2.1.3_p15-r8.ebuild, + +heartbeat-2.1.3_p15-r10.ebuild: + version bump, removed old versions + + 29 Feb 2008; Wolfram Schlich + +files/heartbeat-2.1.3-leapyear.patch, heartbeat-2.1.3.ebuild, + heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild, + heartbeat-2.1.3_p15-r8.ebuild: + add leap year patch from + http://developerbugs.linux-foundation.org/show_bug.cgi?id=1849 (do NOT + install this on 29th of february\!) + + 28 Feb 2008; Wolfram Schlich + +files/drbd-peer-outdater.sh, heartbeat-2.1.3.ebuild, + heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild, + heartbeat-2.1.3_p15-r8.ebuild: + provide a wrapper script for drbd-peer-outdater + + 28 Feb 2008; Wolfram Schlich + -heartbeat-2.1.2.ebuild: + remove old version + + 28 Feb 2008; Wolfram Schlich + -heartbeat-2.1.3_p15-r1.ebuild: + remove old version + + 28 Feb 2008; Wolfram Schlich + -files/heartbeat-2.0.8-crm-leaks.patch, + -files/heartbeat-2.0.8-delay.patch, -heartbeat-2.0.8-r2.ebuild: + remove old version + + 28 Feb 2008; Wolfram Schlich + +heartbeat-2.1.3_p15-r8.ebuild: + version bump + + 28 Feb 2008; Wolfram Schlich heartbeat-2.1.3.ebuild, + heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild, + heartbeat-2.1.3_p15-r1.ebuild: + added python + pyxml deps for ciblint + crm_sh + diff --git a/sys-cluster/heartbeat/Manifest b/sys-cluster/heartbeat/Manifest new file mode 100644 index 0000000..ce6aa14 --- /dev/null +++ b/sys-cluster/heartbeat/Manifest @@ -0,0 +1,14 @@ +AUX heartbeat-2.1.3-dopd-47f60bebe7b2.patch 4349 RMD160 67cffb5d20f18c67ede9d31cf54f9a4490688f89 SHA1 48fbde8fd5768c110f41287f3dabf12f07700109 SHA256 91db17608a16534e6093979a0a4a699ebf6c85e06da40faafd031646ba41211c +AUX heartbeat-2.1.3-leapyear-rewrite.patch 1914 RMD160 06a01ba33fdc741428686c6260123ca90b46c7e1 SHA1 9b152a6d839f73de8dc08216298e2e7672a6333c SHA256 16694ff6b46fa2d6b9fc5493d32c0cd74086bb03c84c69873f58fd72f70b2144 +AUX heartbeat-2.1.3-leapyear.patch 434 RMD160 9c6346a5fa31ffcb7a59a836f99825d9958961a8 SHA1 e983d014aed4eaf400311a8f255c6dcdbd33cca6 SHA256 95128a654714c28a1184255a82e66ce06c83a33d75d1a700e12e611544a0da1d +AUX heartbeat-2.1.3-lrm-op_status.patch 439 RMD160 2bba0b59c98442e9ef2638703ea2c7cf72a1ad94 SHA1 3b7ba193230e20929658ace332f7a5de37e2a420 SHA256 98a97ecb4c61953b4b7edf15662d4a64a344ad9f6a435e51fc0e43695c383183 +AUX heartbeat-2.1.3-lrmadmin-cts.patch 451 RMD160 dd2a8e565d1b206aa87e8507a0d2409affbfbf79 SHA1 468adb7d1d3fac121ee694985ea160a8a6bc5211 SHA256 5a535e8a9e20999a125a954f2db3e52d38bb83870bf5b6e9411b345b937d0643 +AUX heartbeat-2.1.3-nocrm-dopd.patch 306 RMD160 0809d1a47be005febc5135f9951e131df2e58b6c SHA1 54f84d32e0ed4f8375c1a255ef74aebd103226ed SHA256 c41035a0dfcfa97dce756de7dcd321baa5474f59220688ce93a6dbaa346e13e9 +AUX heartbeat.init-r2 2806 RMD160 44e9c63f4a9b5b865068de3458bbc81498fde1c5 SHA1 4473d7a55f4ff9a8f48cd58bc8806ad84524ca6b SHA256 b39e7f2e0909c161d06df7c6466ef12c543cc1bf9af172997eefc1f63b78d2d0 +DIST STABLE-2.1.4.tar.bz2 1914005 RMD160 08b952c3c58edb64606299db1677c5ba73c5d8c9 SHA1 f5b9beb9c2af71e53cc8aaf69699377f9e3404bb SHA256 00483fcbaf7bdb43fd59f547c387167aac4c3fffffb09e219cff9f17fa43ba6a +DIST beta-2.99.0.tar.bz2 1105297 RMD160 3fb643b99d340ca03e174ed7db05141dba329d92 SHA1 cd29f160f738a7453719fe16b38a21ac7777065e SHA256 38462b486347726216454eabf11ec293f19b1486e4307e44542c9939f3efb900 +DIST heartbeat-2.1.3.tar.gz 3679620 RMD160 1eed127aa84e686131be890549cee5749e5443eb SHA1 97577ac6e96670cc3920fce1f1cfcda8d49d310b SHA256 15443b9cbad55be58d76270da0fbbeb625d64eafba8c5963750573b4f9a12e24 +EBUILD heartbeat-2.1.3-r5.ebuild 6985 RMD160 b18612a2feb0e18ed9ad206bbe4cd3834a803283 SHA1 4c9aafdc79a01e058314c70c4205a86ffeb37412 SHA256 4c86c9487ba4729f54720afd4c6895121c4bbe204f4e607b7f08ddf8a6143fd1 +EBUILD heartbeat-2.1.4.ebuild 5927 RMD160 70dbc383f92da482b47049774b18f51d050e8b34 SHA1 19d04e0356f10c29f63c333390c7f7062e0cc7f8 SHA256 5532b3cb7a2424b753aa9bb831fb0c04b099b3f42d46cadc550ed1a81fcb8fde +EBUILD heartbeat-2.99.0_beta.ebuild 5400 RMD160 733f9cce1a54d7be082a2a34d30b7d781212303e SHA1 6a8ef4094fb39062b9028fe38ac856a0cec37387 SHA256 94e35052785e0e9dbba40714c6b1686394cf55f894231d54875f1bbef5f10e73 +MISC ChangeLog 3369 RMD160 6fd81e6caf4cb5479d32a9f0db1af4e500037971 SHA1 eca60dea7a7f2315fa21fae92db592a10e372123 SHA256 78cbe5e0e3acc1bab3cba0084d319216694b81047ebb8b3b2a801c91ac382aab diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch new file mode 100644 index 0000000..87f5d45 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch @@ -0,0 +1,110 @@ + +# HG changeset patch +# User Rasto Levrinc +# Date 1206539836 -3600 +# Node ID 47f60bebe7b25abd88ea7b5488e66dfe187416ae +# Parent 17c0cf487322287d0689a036c32f21b900ce5a80 +dopd: fix basic failover; fix hb message corruption by fprintf(stderr) + +check_drbd_peer() used to return FALSE for "node name not in node list", +so drbd-peer-outdater returned "invalid nodename". +Then the semantic changed, and check_drbd_peer learned about "dead" peers +and returned FALSE for them as well. Which made basic failover impossible :( + +The return code was now changed to "peer unreachable" for a dead peer. +And even for nodes which really are not in the host list (and thus could be +classified as invalide), because, after all, thats what they are. +unreachable. + +Node name comparison needs to be case insensitive; fixed. + +During testing with 15 concurrent drbd resources several dopd crashes have been +observed, which after some debugging turned out to be simply a wrong assumption +about the global availability of stderr: some fprintf(stderr, "debug message") +had accidentally used the heartbeat communication channel file descriptor, +which seriously confused the comm layer. +All those fprintfs have now been changed to use cl_log. + +--- a/contrib/drbd-outdate-peer/dopd.c Mon Mar 24 16:14:12 2008 +0100 ++++ b/contrib/drbd-outdate-peer/dopd.c Wed Mar 26 14:57:16 2008 +0100 +@@ -202,14 +202,17 @@ msg_outdate_rc(struct ha_msg *msg_in, vo + } + + /* check_drbd_peer() +- * walk the nodes and return TRUE if peer is not this node and it exists. ++ * walk the nodes and return ++ * FALSE if peer is not found, not a "normal" node, or "dead" ++ * (no point in trying to reach those nodes). ++ * TRUE if peer is found to be alive and "normal". + */ + gboolean + check_drbd_peer(const char *drbd_peer) + { + const char *node; + gboolean found = FALSE; +- if (!strcmp(drbd_peer, node_name)) { ++ if (!strcasecmp(drbd_peer, node_name)) { + cl_log(LOG_WARNING, "drbd peer node %s is me!\n", drbd_peer); + return FALSE; + } +@@ -306,9 +309,9 @@ outdater_callback(IPC_Channel *client, g + } else + pthread_mutex_unlock(&conn_mutex); + } else { +- /* wrong peer was specified, +- send return code 20 to the client */ +- send_to_client(curr_client, "20"); ++ /* peer "dead" or not in node list. ++ * return "peer could not be reached" */ ++ send_to_client(curr_client, "5"); + } + + ha_msg_del(msg); +--- a/contrib/drbd-outdate-peer/drbd-peer-outdater.c Mon Mar 24 16:14:12 2008 +0100 ++++ b/contrib/drbd-outdate-peer/drbd-peer-outdater.c Wed Mar 26 14:57:16 2008 +0100 +@@ -76,7 +76,7 @@ outdate_callback(IPC_Channel * server, g + + msg = msgfromIPC_noauth(server); + if (!msg) { +- fprintf(stderr, "no message from server or other " ++ cl_log(LOG_WARNING, "no message from server or other " + "instance is running\n"); + if (client->mainloop != NULL && + g_main_is_running(client->mainloop)) +@@ -92,7 +92,7 @@ outdate_callback(IPC_Channel * server, g + errno = 0; + rc = strtol(rc_string, &ep, 10); + if (errno != 0 || *ep != EOS) { +- fprintf(stderr, "unknown message: %s from server", rc_string); ++ cl_log(LOG_WARNING, "unknown message: %s from server", rc_string); + client->rc = 20; /* "officially undefined", unspecified error */ + ha_msg_del(msg); + if (client->mainloop != NULL && +@@ -124,7 +124,7 @@ outdater_timeout_dispatch(gpointer user_ + outdater_timeout_dispatch(gpointer user_data) + { + dop_client_t *client = (dop_client_t *)user_data; +- fprintf(stderr, "error: could not connect to dopd after %i seconds" ++ cl_log(LOG_WARNING, "error: could not connect to dopd after %i seconds" + ": timeout reached\n", client->timeout); + if (client->mainloop != NULL && g_main_is_running(client->mainloop)) + g_main_quit(client->mainloop); +@@ -255,7 +255,7 @@ main(int argc, char ** argv) + (gpointer)new_client, &ipc_server); + + if (ipc_server == NULL) { +- fprintf(stderr, "Could not connect to "T_OUTDATER" channel\n"); ++ cl_log(LOG_WARNING, "Could not connect to "T_OUTDATER" channel\n"); + dop_exit(new_client); /* unreachable */ + } + +@@ -267,7 +267,7 @@ main(int argc, char ** argv) + ha_msg_add(update, F_OUTDATER_RES, drbd_resource); + + if (msg2ipcchan(update, ipc_server) != HA_OK) { +- fprintf(stderr, "Could not send message\n"); ++ cl_log(LOG_WARNING, "Could not send message\n"); + dop_exit(new_client); + } + + diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch new file mode 100644 index 0000000..97bb590 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch @@ -0,0 +1,60 @@ +diff -r c70d0fa6579c lib/crm/common/iso8601.c +--- a/lib/crm/common/iso8601.c Mon Mar 03 14:11:11 2008 +0800 ++++ b/lib/crm/common/iso8601.c Fri Feb 29 12:35:56 2008 +0100 +@@ -649,13 +649,14 @@ convert_from_ordinal(ha_time_t *a_date) + + gboolean ordinal_to_gregorian(ha_time_t *a_date) + { ++ /* Day of the year this month ends on */ ++ int m_end = 0; ++ + CRM_CHECK(a_date->has->years, return FALSE); + CRM_CHECK(a_date->has->yeardays, return FALSE); + + CRM_CHECK(a_date->yeardays > 0, return FALSE); + +- a_date->days = a_date->yeardays; +- a_date->months = 11; + if(is_leap_year(a_date->years) && a_date->yeardays > 366) { + crm_err("Year %.4d only has 366 days (supplied %.3d)", + a_date->years, a_date->yeardays); +@@ -667,27 +668,21 @@ gboolean ordinal_to_gregorian(ha_time_t + a_date->yeardays = 365; + } + +- while(a_date->months > 0 +- && a_date->yeardays <= month2days[a_date->months]) { +- crm_debug_6("month %d: %d vs. %d", ++ a_date->days = a_date->yeardays; ++ a_date->months = 0; ++ do { ++ a_date->months++; ++ m_end += days_per_month(a_date->months, a_date->years); ++ a_date->days -= days_per_month(a_date->months-1, a_date->years); ++ ++ crm_debug_6("month %d: %d vs. %d - current day: %d", + a_date->months, a_date->yeardays, +- month2days[a_date->months]); +- (a_date->months)--; +- } ++ m_end, a_date->days); ++ } while (a_date->months < 12 && m_end < a_date->yeardays); + +- a_date->days -= month2days[a_date->months]; +- (a_date->months)++; +- + CRM_CHECK(a_date->months > 0, return FALSE); +- +- if(is_leap_year(a_date->years) && a_date->months > 2) { +- (a_date->days)--; +- } +- if(a_date->days == 0) { +- /* annoying underflow */ +- a_date->days = days_per_month(a_date->months, a_date->years); +- (a_date->months)--; +- } ++ CRM_CHECK(a_date->days <= days_per_month(a_date->months, a_date->years), ++ return FALSE); + + a_date->has->days = TRUE; + a_date->has->months = TRUE; diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch new file mode 100644 index 0000000..aaea0ae --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch @@ -0,0 +1,13 @@ +diff -r 4a3eac571f44 lib/crm/common/iso8601.c +--- a/lib/crm/common/iso8601.c Fri Dec 21 08:25:17 2007 -0700 ++++ b/lib/crm/common/iso8601.c Fri Feb 29 15:01:10 2008 +0100 +@@ -677,8 +677,8 @@ gboolean ordinal_to_gregorian(ha_time_t + } + if(a_date->days == 0) { + /* annoying underflow */ ++ (a_date->months)--; + a_date->days = days_per_month(a_date->months, a_date->years); +- (a_date->months)--; + } + + a_date->has->days = TRUE; diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch new file mode 100644 index 0000000..1c7fb14 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch @@ -0,0 +1,14 @@ +diff -r 98aeb5f25c95 lib/lrm/clientlib.c +--- a/lib/lrm/clientlib.c Fri Feb 15 17:53:27 2008 +0100 ++++ b/lib/lrm/clientlib.c Fri Feb 15 17:53:56 2008 +0100 +@@ -1190,10 +1190,6 @@ msg_to_op(struct ha_msg* msg) + else { + op->output = NULL; + } +- /* check the rc to revise the op_status */ +- if (0 != op->rc) { +- op->op_status = LRM_OP_ERROR; +- } + } else if(op->op_status == LRM_OP_PENDING) { + op->rc = EXECRA_STATUS_UNKNOWN; + diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch new file mode 100644 index 0000000..7fa5435 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch @@ -0,0 +1,12 @@ +diff -r 54723736ab18 lrm/admin/lrmadmin.c +--- a/lrm/admin/lrmadmin.c Wed Mar 26 16:17:00 2008 +0100 ++++ b/lrm/admin/lrmadmin.c Fri Mar 21 01:58:20 2008 +0100 +@@ -607,7 +607,7 @@ lrm_op_done_callback(lrm_op_t* op) + printf("return code: %d\n", op->rc); + printf("output data: \n%s\n", (op->output ? op->output : "[null]")); + printf("---------------------------------------\n\n"); +- ret_value = op->op_status; ++ ret_value = op->rc; + } + + static int diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch new file mode 100644 index 0000000..82b3222 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch @@ -0,0 +1,10 @@ +--- configure.in.orig 2008-02-15 01:13:20.218146974 +0100 ++++ configure.in 2008-02-15 01:16:24.813180157 +0100 +@@ -2516,7 +2516,6 @@ + fi + dnl None of the following items build without the CRM available + enable_mgmt=no +- enable_dopd=no + enable_cim_provider=no + fi + AC_SUBST(CRM_DIR) diff --git a/sys-cluster/heartbeat/files/heartbeat.init-r2 b/sys-cluster/heartbeat/files/heartbeat.init-r2 new file mode 100644 index 0000000..45b0deb --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat.init-r2 @@ -0,0 +1,133 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +opts="${opts} reload" + +HA_DIR='/etc/ha.d' + +depend() { + use logger + need net +} + +checkconfig() { + # check for base directory + if ! [ -d "${HA_DIR}" ]; then + eerror "HA directory '${HA_DIR}' does not exist" + return 1 + fi + # check for shellfuncs + local HA_SHELLFUNCS="${HA_DIR}/shellfuncs" + if ! [ -e "${HA_SHELLFUNCS}" ]; then + eerror "HA shellfuncs file '${HA_SHELLFUNCS}' does not exist" + return 1 + elif ! . "${HA_SHELLFUNCS}"; then + eerror "Failed to source HA shell functions '${HA_SHELLFUNCS}'" + return 1 + fi + # check for ha.cf + local HA_CF="${HA_DIR}/ha.cf" + if ! [ -e "${HA_CF}" ]; then + eerror "HA config file '${HA_CF}' does not exist" + return 1 + fi + # check for haresources if not using the CRM + if ! checkbool "$(ha_parameter crm)"; then + local HA_RESOURCES="${HA_DIR}/haresources" + if ! [ -e "${HA_RESOURCES}" ]; then + eerror "HA resources file '${HA_RESOURCES}' does not exist" + return 1 + fi + fi + # check for authkeys + local HA_AUTHKEYS="${HA_DIR}/authkeys" + if ! [ -e "${HA_AUTHKEYS}" ]; then + eerror "HA authkeys file '${HA_AUTHKEYS}' does not exist" + return 1 + fi +} + +# Check for boolean values +checkbool() { + case $(echo "${1}" | tr '[:upper:]' '[:lower:]') in + y|yes|enable|on|true|1) return 0;; + *) return 1;; + esac +} + +# Run startstop script if it exists +run_startstop() { + if [ -x ${HA_DIR}/resource.d/startstop ]; then + ${HA_DIR}/resource.d/startstop "${@}" + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + + # start the log subsystem + checkbool "$(ha_parameter use_logd)" && { + /usr/lib/heartbeat/ha_logd -s &>/dev/null || \ + /usr/lib/heartbeat/ha_logd -d -c /etc/ha.d/ha_logd.cf + } + + run_startstop pre-start + + checkbool "$(ha_parameter crm)" || \ + /usr/lib/heartbeat/ResourceManager verifyallidle + + # run heartbeat + /usr/lib/heartbeat/heartbeat &>/dev/null + ret=$? + + run_startstop post-start + + eend ${ret} +} + +stop() { + checkconfig || return 1 + ebegin "Stopping heartbeat" + + run_startstop pre-stop + + /usr/lib/heartbeat/heartbeat -k &>/dev/null + ret=$? + + run_startstop post-stop ${ret} + + # stop log subsystem + checkbool "$(ha_parameter use_logd)" && { + /usr/lib/heartbeat/ha_logd -s &>/dev/null && \ + /usr/lib/heartbeat/ha_logd -k &>/dev/null + } + + eend ${ret} +} + +status() { + checkconfig || return 1 + ebegin "Checking for ${SVCNAME}" + /usr/lib/heartbeat/heartbeat -s + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${SVCNAME}" + /usr/lib/heartbeat/heartbeat -r &>/dev/null + eend $? +} + +restart() { + checkconfig || return 1 + let sleeptime=$(ha_parameter deadtime)+10 + svc_stop + ebegin "Waiting ${sleeptime}s to allow resource takeover to complete" + sleep ${sleeptime} + eend 0 + svc_start +} diff --git a/sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild b/sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild new file mode 100644 index 0000000..961eb3c --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild @@ -0,0 +1,232 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools eutils flag-o-matic + +DESCRIPTION="Heartbeat High-Availability Cluster Manager" +HOMEPAGE="http://www.linux-ha.org" +SRC_URI="http://www.linux-ha.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crm doc ipmi ldirectord snmp" + +RDEPEND=" + =dev-libs/glib-2* + dev-libs/libxml2 + net-libs/libnet + >=dev-lang/perl-5.8.8 + >=dev-lang/python-2.4 + >=dev-python/pyxml-0.8 + net-misc/iputils + virtual/ssh + net-libs/gnutls + ldirectord? ( + sys-cluster/ipvsadm + dev-perl/Net-DNS + dev-perl/libwww-perl + dev-perl/perl-ldap + virtual/perl-libnet + dev-perl/Crypt-SSLeay + dev-perl/HTML-Parser + dev-perl/perl-ldap + dev-perl/Mail-IMAPClient + dev-perl/Mail-POP3Client + dev-perl/MailTools + ) + snmp? ( net-analyzer/net-snmp ) + net-misc/telnet-bsd + ipmi? ( + >=sys-libs/openipmi-2 + ) +" +DEPEND="${RDEPEND} + dev-lang/swig + dev-util/pkgconfig +" + +# let the user override the user and group defaults +# WARNING! ATTENTION! if you plan to use DRBD for cluster storage, +# please note that /sbin/drbdmeta and /sbin/drbdsetup need to +# be SUID root and executable by ${HA_GROUP_NAME}! +# otherwise, Heartbeat will not be able to handle DRBD correctly. +test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65' +test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient' +test -z "${HA_USER_ID}" && HA_USER_ID='65' +test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster' +test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat' + +pkg_setup() { + # check for heartbeat/HA group + if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then + # check for an existing group name with another gid + local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1) + if [[ -n "${existing_group_name}" ]] && \ + [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then + eerror + eerror "an existing group with gid '${HA_GROUP_ID}' and a" + eerror "name other than '${HA_GROUP_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system group name problem" + fi + # create the new group + enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID} + else + # check for an existing gid with another group name + local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3) + if [[ -n "${existing_group_id}" ]] && \ + [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then + eerror + eerror "an existing group with the name '${HA_GROUP_NAME}' and a" + eerror "gid other than '${HA_GROUP_ID}' has been found" + eerror "on your system. either remove the group or change" + eerror "the name to another one." + eerror + die "system group id problem" + fi + fi + + # check for heartbeat/HA user + if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then + # check for an existing user name with another uid + local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1) + if [[ -n "${existing_user_name}" ]] && \ + [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then + eerror + eerror "an existing user with uid '${HA_USER_ID}' and a" + eerror "name other than '${HA_USER_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system user name problem" + fi + # create the new user + enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME} + else + # check for an existing uid with another user name + local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3) + if [[ -n "${existing_user_id}" ]] && \ + [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then + eerror + eerror "an existing user with the name '${HA_USER_NAME}' and a" + eerror "uid other than '${HA_USER_ID}' has been found" + eerror "on your system. either remove the user or change" + eerror "the name to another one." + eerror + die "system user id problem" + fi + fi + + # check for USE flag constraints + if ! use crm && use snmp; then + die "USE=snmp requires USE=crm (disable USE=snmp or enable USE=crm)" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + use crm || epatch "${FILESDIR}"/${P}-nocrm-dopd.patch + + # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1833#c6 + # http://hg.linux-ha.org/dev/rev/54723736ab18 + epatch "${FILESDIR}"/${P}-lrm-op_status.patch + # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1833#c11 + epatch "${FILESDIR}"/${P}-lrmadmin-cts.patch + + # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1849#c6 + epatch "${FILESDIR}"/${P}-leapyear-rewrite.patch + + # http://hg.linux-ha.org/dev/rev/47f60bebe7b2 + epatch "${FILESDIR}"/${P}-dopd-47f60bebe7b2.patch + + eautoreconf +} + +src_compile() { + # FIXME + if use ipmi; then + eerror "Sorry, integrated IPMI STONITH support is broken in 2.1.3." + die "Please disable the ipmi USE flag and try again." + fi + econf \ + --localstatedir=/var \ + --with-group-name=${HA_GROUP_NAME} \ + --with-group-id=${HA_GROUP_ID} \ + --with-ccmuser-name=${HA_USER_NAME} \ + --with-ccmuser-id=${HA_USER_ID} \ + --disable-rpath \ + --disable-fatal-warnings \ + $(use_enable snmp) \ + $(use_enable snmp snmp-subagent) \ + $(use_enable ipmi ipmilan) \ + --enable-checkpointd \ + --enable-quorumd \ + --enable-dopd \ + $(use_enable crm) \ + --enable-lrm \ + --disable-mgmt \ + || die "configure failed" + emake -j 1 || die "make failed" +} + +src_install() { + # FIXME: convert to emake? + make DESTDIR="${D}" install || die "make install failed" + + # heartbeat modules need these dirs + # FIXME: is this (not) needed? + #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat + + keepdir \ + /etc/ha.d/conf \ + /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \ + /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \ + /var/run/heartbeat/ccm + + if use crm; then + keepdir \ + /var/lib/heartbeat/crm \ + /var/lib/heartbeat/pengine \ + /var/run/heartbeat/crm + else + rm "${D}"/usr/lib/heartbeat/haresources2cib.py + fi + + dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord + + if ! useq ldirectord; then + rm \ + "${D}"/etc/init.d/ldirectord + "${D}"/etc/logrotate.d/ldirectord \ + "${D}"/etc/ha.d/resource.d/ldirectord \ + "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \ + "${D}"/usr/share/man/man8/ldirectord.8 \ + "${D}"/usr/sbin/ldirectord \ + "${D}"/usr/sbin/supervise-ldirectord-config + fi + + newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat + + dodoc \ + README \ + doc/*.{cf,txt} \ + doc/{haresources,authkeys,AUTHORS,COPYING} \ + ldirectord/ldirectord.cf +} + +pkg_postinst() { + ewarn + ewarn "Notice for DRBD users:" + ewarn + ewarn "DRBD Outdate Peer Daemon (dopd) was broken as of Heartbeat 2.1.3." + ewarn "This ebuild includes a patch from the DRBD developers which should" + ewarn "fix the corresponding bugs. If you were previously using the" + ewarn "provided wrapper script, please switch back to the real" + ewarn "drbd-peer-outdater path in /etc/drbd.conf." + ewarn +} diff --git a/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild b/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild new file mode 100644 index 0000000..ee3577d --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools eutils flag-o-matic + +DESCRIPTION="Heartbeat High-Availability Cluster Manager" +HOMEPAGE="http://www.linux-ha.org" +SRC_URI="http://hg.linux-ha.org/lha-2.1/archive/STABLE-2.1.4.tar.bz2" +S="${WORKDIR}/Heartbeat-STABLE-2-1-STABLE-2.1.4" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crm doc ipmi ldirectord snmp" + +RDEPEND=" + =dev-libs/glib-2* + dev-libs/libxml2 + net-libs/libnet + >=dev-lang/perl-5.8.8 + >=dev-lang/python-2.4 + >=dev-python/pyxml-0.8 + net-misc/iputils + virtual/ssh + net-libs/gnutls + ldirectord? ( + sys-cluster/ipvsadm + dev-perl/Net-DNS + dev-perl/libwww-perl + dev-perl/perl-ldap + virtual/perl-libnet + dev-perl/Crypt-SSLeay + dev-perl/HTML-Parser + dev-perl/perl-ldap + dev-perl/Mail-IMAPClient + dev-perl/Mail-POP3Client + dev-perl/MailTools + ) + snmp? ( net-analyzer/net-snmp ) + net-misc/telnet-bsd + ipmi? ( + >=sys-libs/openipmi-2 + ) +" +DEPEND="${RDEPEND} + dev-lang/swig + dev-util/pkgconfig +" + +# let the user override the user and group defaults +# WARNING! ATTENTION! if you plan to use DRBD for cluster storage, +# please note that /sbin/drbdmeta and /sbin/drbdsetup need to +# be SUID root and executable by ${HA_GROUP_NAME}! +# otherwise, Heartbeat will not be able to handle DRBD correctly. +test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65' +test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient' +test -z "${HA_USER_ID}" && HA_USER_ID='65' +test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster' +test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat' + +pkg_setup() { + # check for heartbeat/HA group + if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then + # check for an existing group name with another gid + local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1) + if [[ -n "${existing_group_name}" ]] && \ + [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then + eerror + eerror "an existing group with gid '${HA_GROUP_ID}' and a" + eerror "name other than '${HA_GROUP_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system group name problem" + fi + # create the new group + enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID} + else + # check for an existing gid with another group name + local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3) + if [[ -n "${existing_group_id}" ]] && \ + [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then + eerror + eerror "an existing group with the name '${HA_GROUP_NAME}' and a" + eerror "gid other than '${HA_GROUP_ID}' has been found" + eerror "on your system. either remove the group or change" + eerror "the name to another one." + eerror + die "system group id problem" + fi + fi + + # check for heartbeat/HA user + if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then + # check for an existing user name with another uid + local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1) + if [[ -n "${existing_user_name}" ]] && \ + [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then + eerror + eerror "an existing user with uid '${HA_USER_ID}' and a" + eerror "name other than '${HA_USER_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system user name problem" + fi + # create the new user + enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME} + else + # check for an existing uid with another user name + local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3) + if [[ -n "${existing_user_id}" ]] && \ + [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then + eerror + eerror "an existing user with the name '${HA_USER_NAME}' and a" + eerror "uid other than '${HA_USER_ID}' has been found" + eerror "on your system. either remove the user or change" + eerror "the name to another one." + eerror + die "system user id problem" + fi + fi + + # check for USE flag constraints + if ! use crm && use snmp; then + die "USE=snmp requires USE=crm (disable USE=snmp or enable USE=crm)" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + --with-group-name=${HA_GROUP_NAME} \ + --with-group-id=${HA_GROUP_ID} \ + --with-ccmuser-name=${HA_USER_NAME} \ + --with-ccmuser-id=${HA_USER_ID} \ + --disable-rpath \ + --disable-fatal-warnings \ + $(use_enable snmp) \ + $(use_enable snmp snmp-subagent) \ + $(use_enable ipmi ipmilan) \ + --enable-checkpointd \ + --enable-quorumd \ + --enable-dopd \ + $(use_enable crm) \ + --enable-lrm \ + --disable-mgmt \ + || die "configure failed" + emake -j 1 || die "make failed" +} + +src_install() { + # FIXME: convert to emake? + make DESTDIR="${D}" install || die "make install failed" + + # heartbeat modules need these dirs + # FIXME: is this (not) needed? + #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat + + keepdir \ + /etc/ha.d/conf \ + /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \ + /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \ + /var/run/heartbeat/ccm + + if use crm; then + keepdir \ + /var/lib/heartbeat/crm \ + /var/lib/heartbeat/pengine \ + /var/run/heartbeat/crm + else + rm "${D}"/usr/lib/heartbeat/haresources2cib.py + fi + + dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord + + if ! useq ldirectord; then + rm \ + "${D}"/etc/init.d/ldirectord \ + "${D}"/etc/logrotate.d/ldirectord \ + "${D}"/etc/ha.d/resource.d/ldirectord \ + "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \ + "${D}"/usr/share/man/man8/ldirectord.8 \ + "${D}"/usr/sbin/ldirectord \ + "${D}"/usr/sbin/supervise-ldirectord-config + fi + + newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat + + dodoc \ + README \ + doc/*.{cf,txt} \ + doc/{haresources,authkeys,AUTHORS,COPYING} \ + ldirectord/ldirectord.cf +} diff --git a/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild b/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild new file mode 100644 index 0000000..d81a3b4 --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools eutils flag-o-matic + +DESCRIPTION="Heartbeat High-Availability Cluster Manager" +HOMEPAGE="http://www.linux-ha.org" +SRC_URI="http://hg.linux-ha.org/dev/archive/beta-2.99.0.tar.bz2" +S="${WORKDIR}/Linux-HA-Dev-beta-2.99.0" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="doc ldirectord" + +RDEPEND=" + =dev-libs/glib-2* + dev-libs/libxml2 + net-libs/libnet + >=dev-lang/perl-5.8.8 + >=dev-lang/python-2.4 + >=dev-python/pyxml-0.8 + net-misc/iputils + virtual/ssh + net-libs/gnutls + ldirectord? ( + sys-cluster/ipvsadm + dev-perl/Net-DNS + dev-perl/libwww-perl + dev-perl/perl-ldap + virtual/perl-libnet + dev-perl/Crypt-SSLeay + dev-perl/HTML-Parser + dev-perl/perl-ldap + dev-perl/Mail-IMAPClient + dev-perl/Mail-POP3Client + dev-perl/MailTools + ) + net-misc/telnet-bsd +" +DEPEND="${RDEPEND} + dev-lang/swig + dev-util/pkgconfig +" + +# let the user override the user and group defaults +# WARNING! ATTENTION! if you plan to use DRBD for cluster storage, +# please note that /sbin/drbdmeta and /sbin/drbdsetup need to +# be SUID root and executable by ${HA_GROUP_NAME}! +# otherwise, Heartbeat will not be able to handle DRBD correctly. +test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65' +test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient' +test -z "${HA_USER_ID}" && HA_USER_ID='65' +test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster' +test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat' + +pkg_setup() { + # check for heartbeat/HA group + if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then + # check for an existing group name with another gid + local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1) + if [[ -n "${existing_group_name}" ]] && \ + [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then + eerror + eerror "an existing group with gid '${HA_GROUP_ID}' and a" + eerror "name other than '${HA_GROUP_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system group name problem" + fi + # create the new group + enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID} + else + # check for an existing gid with another group name + local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3) + if [[ -n "${existing_group_id}" ]] && \ + [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then + eerror + eerror "an existing group with the name '${HA_GROUP_NAME}' and a" + eerror "gid other than '${HA_GROUP_ID}' has been found" + eerror "on your system. either remove the group or change" + eerror "the name to another one." + eerror + die "system group id problem" + fi + fi + + # check for heartbeat/HA user + if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then + # check for an existing user name with another uid + local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1) + if [[ -n "${existing_user_name}" ]] && \ + [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then + eerror + eerror "an existing user with uid '${HA_USER_ID}' and a" + eerror "name other than '${HA_USER_NAME}' has been found" + eerror "on your system. either remove the user or change" + eerror "the uid to another one." + eerror + die "system user name problem" + fi + # create the new user + enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME} + else + # check for an existing uid with another user name + local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3) + if [[ -n "${existing_user_id}" ]] && \ + [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then + eerror + eerror "an existing user with the name '${HA_USER_NAME}' and a" + eerror "uid other than '${HA_USER_ID}' has been found" + eerror "on your system. either remove the user or change" + eerror "the name to another one." + eerror + die "system user id problem" + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + --with-group-name=${HA_GROUP_NAME} \ + --with-group-id=${HA_GROUP_ID} \ + --with-ccmuser-name=${HA_USER_NAME} \ + --with-ccmuser-id=${HA_USER_ID} \ + --disable-rpath \ + --disable-fatal-warnings \ + --disable-snmp \ + --disable-ipmilan \ + --disable-quorumd \ + --enable-dopd \ + --enable-lrm \ + || die "configure failed" + emake -j 1 || die "make failed" +} + +src_install() { + # FIXME: convert to emake? + make DESTDIR="${D}" install || die "make install failed" + + # heartbeat modules need these dirs + # FIXME: is this (not) needed? + #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat + + keepdir \ + /etc/ha.d/conf \ + /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \ + /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \ + /var/run/heartbeat/ccm + + dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord + + if ! useq ldirectord; then + rm \ + "${D}"/etc/init.d/ldirectord \ + "${D}"/etc/logrotate.d/ldirectord \ + "${D}"/etc/ha.d/resource.d/ldirectord \ + "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \ + "${D}"/usr/share/man/man8/ldirectord.8 \ + "${D}"/usr/sbin/ldirectord \ + "${D}"/usr/sbin/supervise-ldirectord-config + fi + + newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat + + dodoc \ + README \ + doc/*.{cf,txt} \ + doc/{haresources,authkeys,AUTHORS,COPYING} \ + ldirectord/ldirectord.cf +} diff --git a/sys-cluster/pacemaker/ChangeLog b/sys-cluster/pacemaker/ChangeLog new file mode 100644 index 0000000..f74dfda --- /dev/null +++ b/sys-cluster/pacemaker/ChangeLog @@ -0,0 +1,30 @@ +# ChangeLog for sys-cluster/pacemaker +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 20 Jun 2008; Wolfram Schlich + -files/pacemaker-0.6.2-colocation-constraint.patch, + -pacemaker-0.6.2.ebuild, -pacemaker-0.6.2_p11-r7.ebuild, + -pacemaker-0.6.3.ebuild, +pacemaker-0.6.5.ebuild: + removed old versions + + 20 Jun 2008; Wolfram Schlich + +pacemaker-0.6.5.ebuild: + version bump + + 26 May 2008; Wolfram Schlich + +pacemaker-0.6.4.ebuild: + version bump + + 24 Apr 2008; Wolfram Schlich + +pacemaker-0.6.3.ebuild: + version bump + + 04 Mar 2008; Wolfram Schlich + -pacemaker-0.6.2_p11-r5.ebuild, +pacemaker-0.6.2_p11-r7.ebuild: + version bump, remove old version + + 28 Feb 2008; Wolfram Schlich + -pacemaker-0.6.2_p11-r1.ebuild, +pacemaker-0.6.2_p11-r5.ebuild: + version bump, remove old version + diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest new file mode 100644 index 0000000..09b1e1d --- /dev/null +++ b/sys-cluster/pacemaker/Manifest @@ -0,0 +1,5 @@ +DIST Pacemaker-0.6.4.tar.bz2 897395 RMD160 dab0ca8cb1d73cf0761332190861d308e4311acf SHA1 883efcab891b7920a1c5667664ed47b313228d85 SHA256 6dade57f5d6a7c4065dccfa48e80beff571cd72046dd71a1b5fa7cf8a3c778fa +DIST Pacemaker-0.6.5.tar.bz2 900633 RMD160 a6f3fb8d37e783afa830250684c65025a41d1df5 SHA1 e311eba3ebe429d035e403d603d0c05ae65d1911 SHA256 54d4e0d0943b75eebfba7aa52f9515c05a9840acefd0b6ea89403761d88b8ab5 +EBUILD pacemaker-0.6.4.ebuild 1722 RMD160 9a3282574957c9885f37a5ae8dd6db0e47714afc SHA1 9a0ff864bb227de34d10257baa875a04720ed0d2 SHA256 99793a6e9e6487b81fc0e8ce0680bc5c5024851e8da685881fa15b31d8b450e4 +EBUILD pacemaker-0.6.5.ebuild 1722 RMD160 9a3282574957c9885f37a5ae8dd6db0e47714afc SHA1 9a0ff864bb227de34d10257baa875a04720ed0d2 SHA256 99793a6e9e6487b81fc0e8ce0680bc5c5024851e8da685881fa15b31d8b450e4 +MISC ChangeLog 962 RMD160 0b62431bf14a397b0b9a5c6a5f2b1b7efbd0cf39 SHA1 02b66df4ba2ce8dbf101582a1442b592267366f4 SHA256 17850002fc110bb6fa3cef9963a6d70b08d43283f46276f572d85566536d28df diff --git a/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild b/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild new file mode 100644 index 0000000..4794117 --- /dev/null +++ b/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools flag-o-matic versionator + +MY_PV_MAJ=$(get_version_component_range 1) +MY_PV_MIN=$(get_version_component_range 2) + +DESCRIPTION="Pacemaker (formerly known as Heartbeat CRM)" +HOMEPAGE="http://www.clusterlabs.org/" +SRC_URI="http://hg.clusterlabs.org/${PN}/stable-${MY_PV_MAJ}.${MY_PV_MIN}/archive/Pacemaker-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="heartbeat openais snmp" + +DEPEND=" + heartbeat? ( + >=sys-cluster/heartbeat-2.1.3-r2 + ) + openais? ( sys-cluster/openais ) + snmp? ( net-analyzer/net-snmp ) +" + +S="${WORKDIR}"/Pacemaker-${MY_PV_MAJ}-${MY_PV_MIN}-Pacemaker-${PV} + +pkg_setup() { + # check for USE flag constraints + if use openais && use heartbeat; then + die "use either USE=openais or USE=heartbeat, but not both" + elif ! use openais && ! use heartbeat; then + die "use exactly one of USE=openais and USE=heartbeat" + elif use heartbeat && has_version sys-cluster/heartbeat; then + if built_with_use sys-cluster/heartbeat crm; then + die "rebuild heartbeat with USE=-crm" + fi + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + eautoreconf +} + +src_compile() { + append-ldflags $(bindnow-flags) + econf \ + --localstatedir=/var \ + $(use_with openais ais-support) \ + $(use_with heartbeat heartbeat-support) \ + $(use_enable snmp) \ + $(use_enable snmp snmp-subagent) \ + || die "configure failed" + emake -j 1 || die "make failed" +} + +src_install() { + # FIXME: convert to emake? + make DESTDIR=${D} install || die "make install failed" + if use heartbeat; then + keepdir \ + /var/lib/heartbeat/crm \ + /var/lib/heartbeat/pengine \ + /var/run/heartbeat/crm + fi +} diff --git a/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild b/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild new file mode 100644 index 0000000..4794117 --- /dev/null +++ b/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools flag-o-matic versionator + +MY_PV_MAJ=$(get_version_component_range 1) +MY_PV_MIN=$(get_version_component_range 2) + +DESCRIPTION="Pacemaker (formerly known as Heartbeat CRM)" +HOMEPAGE="http://www.clusterlabs.org/" +SRC_URI="http://hg.clusterlabs.org/${PN}/stable-${MY_PV_MAJ}.${MY_PV_MIN}/archive/Pacemaker-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="heartbeat openais snmp" + +DEPEND=" + heartbeat? ( + >=sys-cluster/heartbeat-2.1.3-r2 + ) + openais? ( sys-cluster/openais ) + snmp? ( net-analyzer/net-snmp ) +" + +S="${WORKDIR}"/Pacemaker-${MY_PV_MAJ}-${MY_PV_MIN}-Pacemaker-${PV} + +pkg_setup() { + # check for USE flag constraints + if use openais && use heartbeat; then + die "use either USE=openais or USE=heartbeat, but not both" + elif ! use openais && ! use heartbeat; then + die "use exactly one of USE=openais and USE=heartbeat" + elif use heartbeat && has_version sys-cluster/heartbeat; then + if built_with_use sys-cluster/heartbeat crm; then + die "rebuild heartbeat with USE=-crm" + fi + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + eautoreconf +} + +src_compile() { + append-ldflags $(bindnow-flags) + econf \ + --localstatedir=/var \ + $(use_with openais ais-support) \ + $(use_with heartbeat heartbeat-support) \ + $(use_enable snmp) \ + $(use_enable snmp snmp-subagent) \ + || die "configure failed" + emake -j 1 || die "make failed" +} + +src_install() { + # FIXME: convert to emake? + make DESTDIR=${D} install || die "make install failed" + if use heartbeat; then + keepdir \ + /var/lib/heartbeat/crm \ + /var/lib/heartbeat/pengine \ + /var/run/heartbeat/crm + fi +} diff --git a/sys-kernel/hardened-sources/Manifest b/sys-kernel/hardened-sources/Manifest new file mode 100644 index 0000000..72fb60f --- /dev/null +++ b/sys-kernel/hardened-sources/Manifest @@ -0,0 +1,4 @@ +DIST genpatches-2.6.22-10.base.tar.bz2 77447 RMD160 40735607dbe4143948ad7f6cd71e9d0d539b7402 SHA1 7e4fc9f10e6b53f0bace1ae3da8d9956d43658a9 SHA256 f23b09550b71ec3f43f2a307c486230f573df8c118a6558a4465ce6a1c6a4e97 +DIST hardened-patches-2.6.22-6.extras.tar.bz2 220866 RMD160 adabb700b9b2c8761865a6b3a9b695e496e0c05e SHA1 e2d08f539accf6506554fec927aba533d14380c5 SHA256 879def82a3c011341325ff93df225271e21bbaf237ecfb52a4433a6a8da828ef +DIST linux-2.6.22.tar.bz2 45119878 RMD160 c4b2ca5ee8e71c0f8f1c95f3c9c5f261f2785912 SHA1 39401f195a618f397312d6d84ff9aebe28d99381 SHA256 73c10604c53f1a6ee65ef805293d23903696f8cef864f42d7de9506f0d2ba4c7 +EBUILD hardened-sources-2.6.22-r8.ebuild 873 RMD160 f15b59b74d46581c6428dba45d48d4c56fab21e2 SHA1 aebd9c95ae8d6f3c57e61fccccb1a01065fa2321 SHA256 64de684d3facb90f0601fd093ba63b8ae8d2edb9d1f330c4a399ce64155abb37 diff --git a/sys-kernel/hardened-sources/files/digest-hardened-sources-2.6.22-r8 b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.6.22-r8 new file mode 100644 index 0000000..10434b7 --- /dev/null +++ b/sys-kernel/hardened-sources/files/digest-hardened-sources-2.6.22-r8 @@ -0,0 +1,9 @@ +MD5 d84d74515bd8f9e8b9a148265f73cb0c genpatches-2.6.22-10.base.tar.bz2 77447 +RMD160 40735607dbe4143948ad7f6cd71e9d0d539b7402 genpatches-2.6.22-10.base.tar.bz2 77447 +SHA256 f23b09550b71ec3f43f2a307c486230f573df8c118a6558a4465ce6a1c6a4e97 genpatches-2.6.22-10.base.tar.bz2 77447 +MD5 b74b20629fa7de1144ba84113d700a1b hardened-patches-2.6.22-6.extras.tar.bz2 220866 +RMD160 adabb700b9b2c8761865a6b3a9b695e496e0c05e hardened-patches-2.6.22-6.extras.tar.bz2 220866 +SHA256 879def82a3c011341325ff93df225271e21bbaf237ecfb52a4433a6a8da828ef hardened-patches-2.6.22-6.extras.tar.bz2 220866 +MD5 2e230d005c002fb3d38a3ca07c0200d0 linux-2.6.22.tar.bz2 45119878 +RMD160 c4b2ca5ee8e71c0f8f1c95f3c9c5f261f2785912 linux-2.6.22.tar.bz2 45119878 +SHA256 73c10604c53f1a6ee65ef805293d23903696f8cef864f42d7de9506f0d2ba4c7 linux-2.6.22.tar.bz2 45119878 diff --git a/sys-kernel/hardened-sources/hardened-sources-2.6.22-r8.ebuild b/sys-kernel/hardened-sources/hardened-sources-2.6.22-r8.ebuild new file mode 100644 index 0000000..10f095c --- /dev/null +++ b/sys-kernel/hardened-sources/hardened-sources-2.6.22-r8.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +RESTRICT='mirror' +ETYPE="sources" +K_GENPATCHES_VER="10" + +inherit kernel-2 +detect_version + +HGPV=${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-6 +HGPV_URI="http://dev.gentoo.org/~wschlich/src/sys-kernel/hardened-sources/hardened-patches-${HGPV}.extras.tar.bz2" +GENPATCHES_URI="http://dev.gentoo.org/~wschlich/src/sys-kernel/hardened-sources/genpatches-${OKV}-${K_GENPATCHES_VER}.base.tar.bz2" +UNIPATCH_LIST="${DISTDIR}/hardened-patches-${HGPV}.extras.tar.bz2" +UNIPATCH_LIST_GENPATCHES="${DISTDIR}/genpatches-${OKV}-${K_GENPATCHES_VER}.base.tar.bz2" + +DESCRIPTION="Hardened kernel sources ${OKV}" +HOMEPAGE="http://www.gentoo.org/proj/en/hardened/" +SRC_URI="${KERNEL_URI} ${HGPV_URI} ${GENPATCHES_URI} ${ARCH_URI}" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86" -- cgit v1.2.3-65-gdbad