diff options
author | Alexys Jacob <ultrabug@gentoo.org> | 2011-08-03 07:45:11 +0000 |
---|---|---|
committer | Alexys Jacob <ultrabug@gentoo.org> | 2011-08-03 07:45:11 +0000 |
commit | c85a109bf9bd3a2e2d8047a5d4763bcf6b132dbb (patch) | |
tree | ec92ce1adf25ed017b91c588edf34d5e201e02f8 /app-admin/rsyslog | |
parent | Updated enigmail version to 1.2.1 (diff) | |
download | historical-c85a109bf9bd3a2e2d8047a5d4763bcf6b132dbb.tar.gz historical-c85a109bf9bd3a2e2d8047a5d4763bcf6b132dbb.tar.bz2 historical-c85a109bf9bd3a2e2d8047a5d4763bcf6b132dbb.zip |
Version bump
Package-Manager: portage-2.1.10.9/cvs/Linux x86_64
Diffstat (limited to 'app-admin/rsyslog')
-rw-r--r-- | app-admin/rsyslog/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/rsyslog/Manifest | 10 | ||||
-rw-r--r-- | app-admin/rsyslog/rsyslog-5.8.3.ebuild | 227 |
3 files changed, 239 insertions, 5 deletions
diff --git a/app-admin/rsyslog/ChangeLog b/app-admin/rsyslog/ChangeLog index d3a5b8dd0e7e..b41f51462f7f 100644 --- a/app-admin/rsyslog/ChangeLog +++ b/app-admin/rsyslog/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/rsyslog # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/ChangeLog,v 1.51 2011/05/23 08:01:54 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/ChangeLog,v 1.52 2011/08/03 07:45:11 ultrabug Exp $ + +*rsyslog-5.8.3 (03 Aug 2011) + + 03 Aug 2011; Ultrabug <ultrabug@gentoo.org> +rsyslog-5.8.3.ebuild: + Version bump. *rsyslog-5.8.1 (23 May 2011) diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest index 77f8bb6deaab..fbdaedbe07af 100644 --- a/app-admin/rsyslog/Manifest +++ b/app-admin/rsyslog/Manifest @@ -7,14 +7,16 @@ AUX 5-stable/rsyslog.initd 798 RMD160 691fa40e5f7aadad2ff0d3795a7dd6f544b523eb S AUX 5-stable/rsyslog.logrotate 440 RMD160 b2599c94c718af02a641e762960b9796952411bb SHA1 228dba04c683d778bccd86f6bcd80650b9c774b4 SHA256 f0effc19bd1f1bfa367d65d6516c73509cb34545157b9e91cf6e437685dd3fe5 DIST rsyslog-5.6.5.tar.gz 2260991 RMD160 a954e783151f2854b1ea4fe9f1cc768e9222c027 SHA1 959c74f4b7a9ed1126b96b117053cd903915ad38 SHA256 4aa1036e9ec468aa7ab38095969d363941c815dd1ba6fabcd593d16baef1b859 DIST rsyslog-5.8.1.tar.gz 2359568 RMD160 0eb2b74fbc5062c5243dc1ee1088d448a1738e93 SHA1 2eb75be252b11b00bf2509cc5e26bf89801708c5 SHA256 08a0876b5c4463f6b508ed24d7e0b60444c001507ff92ef1cfbfcea4698e2c9c +DIST rsyslog-5.8.3.tar.gz 2371617 RMD160 3dfa4c86cb18cdae271cb6fa3790931caea92cb4 SHA1 5f48e244050592a3e609c36e19a268c48552b632 SHA256 6d8853ea08f24b184c4d0f7faef1729612ed2217cfa4fd1b089103ae75f05606 EBUILD rsyslog-5.6.5.ebuild 6297 RMD160 6b8cb731c360fb7b04166700b712686c848f40d9 SHA1 95c09b2b462a63a5f4d3ecd97eaf7b5f616fad27 SHA256 c9a96f5380adc7a13cc223e835021a80cbc201add8eb8a8751dcb68006fc5021 EBUILD rsyslog-5.8.1.ebuild 6451 RMD160 d34099c9472468d082724e387db68f4b47a6ec57 SHA1 8dde8b48f4def4280a37b3f7f8fa8265a9c222b5 SHA256 8b43fe780e4ed0dc1370d17d5fa3567f724e9da4e3bb7269f9dfe77db77a0c80 -MISC ChangeLog 10279 RMD160 c71e970afd132ac1cfd0f5d091811463bd369e05 SHA1 0b9258f6d9d2129ebc8c79f0371f2c694aa715a1 SHA256 a611a41de8f4bb55a11289a0ae2bad6a6ca88cd15e2dd974577aa2b6820fe922 +EBUILD rsyslog-5.8.3.ebuild 6451 RMD160 1ce1252069420ec75d4560750d096ad89c2fb79c SHA1 8acb44cfeafeac03db6218d8a05930f015cce422 SHA256 dec2d8de601d101e6de0ffc870dca7ece17472afc2fc48bcd5ae772e58482446 +MISC ChangeLog 10395 RMD160 e672c0c6ba04f2cc1f179246d609a63ec3980503 SHA1 d456881e81960bc9adac4ad5cd193a8139161c54 SHA256 561ed2d0d1fdcaec8b41cfb44136f4c87408da0fe775e8808f1db9eb92b00394 MISC metadata.xml 677 RMD160 02eb7182593e766a62cfbad77295d36ebecbc728 SHA1 1f9ed7a28d21a7fef0df3a354709775756d169d2 SHA256 0f2b6a04926147b5436f5b303cde33b0fd291ca4d1a56b9bcf4f8c0dc9f890fc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iF4EAREIAAYFAk3aFHwACgkQKiQSS7ZY+hMyqgD/SH5Svttg0r5Tnyn5UbK2ncTu -D51m0jmDjahT5QOSv78BAI8weTBu4AjW/+95NFGog7d6R7uFC4ETq+JGjZ6QsoPx -=ED1E +iF4EAREIAAYFAk44/JAACgkQKiQSS7ZY+hOi5QEAzwC61Z6Y+s5Xqwrit37MSttI +4WVgrnB5wmcgThdhHfoA/Rx3J1k15xAzZeTFtgTIOtL+tHc75aB4t0eLbsIJ5FnR +=SafX -----END PGP SIGNATURE----- diff --git a/app-admin/rsyslog/rsyslog-5.8.3.ebuild b/app-admin/rsyslog/rsyslog-5.8.3.ebuild new file mode 100644 index 000000000000..b6768332ee94 --- /dev/null +++ b/app-admin/rsyslog/rsyslog-5.8.3.ebuild @@ -0,0 +1,227 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/rsyslog-5.8.3.ebuild,v 1.1 2011/08/03 07:45:11 ultrabug Exp $ + +EAPI=4 + +inherit autotools-utils systemd + +DESCRIPTION="An enhanced multi-threaded syslogd with database support and more." +HOMEPAGE="http://www.rsyslog.com/" +SRC_URI="http://www.rsyslog.com/files/download/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3" +KEYWORDS="~amd64 ~arm ~hppa ~sparc ~x86" +SLOT="0" +IUSE="dbi debug doc extras gnutls kerberos mysql oracle postgres relp snmp static-libs zlib" + +DEPEND="dbi? ( dev-db/libdbi ) + extras? ( net-libs/libnet ) + gnutls? ( net-libs/gnutls ) + kerberos? ( virtual/krb5 ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql-base ) + oracle? ( dev-db/oracle-instantclient-basic ) + relp? ( >=dev-libs/librelp-0.1.3 ) + snmp? ( net-analyzer/net-snmp ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +BRANCH="5-stable" + +# need access to certain device nodes +RESTRICT="test" + +# Maitainer note : open a bug to upstream +# showing that building in a separate dir fails +AUTOTOOLS_IN_SOURCE_BUILD=1 + +DOCS=(AUTHORS ChangeLog doc/rsyslog-example.conf) + +src_configure() { + # Maintainer notes: + # * rfc3195 needs a library and development of that library + # is suspended, so we disable it + # * About the java GUI: + # The maintainer says there is no real installation support + # for the java GUI, so we disable it for now. + local myeconfargs=( + --disable-gui + --disable-rfc3195 + --enable-largefile + --enable-unlimited-select + --enable-imdiag + --enable-imfile + --enable-impstats + --enable-imtemplate + --enable-imptcp + --enable-mail + --enable-omprog + --enable-omstdout + --enable-omtemplate + --enable-omdbalerting + --enable-omuxsock + --enable-pmlastmsg + --enable-pmrfc3164sd + --enable-pmcisconames + --enable-pmaixforwardedfrom + --enable-pmsnare + $(use_enable extras omudpspoof) + $(use_enable zlib) + $(use_enable mysql) + $(use_enable dbi libdbi) + $(use_enable postgres pgsql) + $(use_enable oracle oracle) + $(use_enable gnutls) + $(use_enable kerberos gssapi-krb5) + $(use_enable relp) + $(use_enable snmp) + $(use_enable snmp mmsnmptrapd) + $(use_enable debug) + $(use_enable debug rtinst) + $(use_enable debug diagtools) + $(use_enable debug memcheck) + $(use_enable debug valgrind) + ) + + systemd_to_myeconfargs + autotools-utils_src_configure +} + +src_install() { + use doc && HTML_DOCS=(doc/) + autotools-utils_src_install + + insinto /etc + newins "${FILESDIR}/${BRANCH}/${PN}-gentoo.conf" ${PN}.conf + newconfd "${FILESDIR}/${BRANCH}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${BRANCH}/${PN}.initd" ${PN} + keepdir /var/spool/${PN} + keepdir /etc/ssl/${PN} + keepdir /etc/${PN}.d + + if use mysql; then + insinto /usr/share/doc/${PF}/scripts/mysql + doins plugins/ommysql/{createDB.sql,contrib/delete_mysql} + fi + + if use postgres; then + insinto /usr/share/doc/${PF}/scripts/pgsql + doins plugins/ompgsql/createDB.sql + fi + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN} +} + +pkg_postinst() { + if use mysql || use postgres; then + echo + elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:" + elog " /usr/share/doc/${PF}/scripts" + fi + + if use gnutls; then + echo + elog "To create a default CA and certificates for your server and clients, run:" + elog " emerge --config =${PF}" + elog "on your logging server. You can run it several times," + elog "once for each logging client. The client certificates will be signed" + elog "using the CA certificate generated during the first run." + fi +} + +pkg_config() { + if ! use gnutls ; then + einfo "There is nothing to configure for rsyslog unless you" + einfo "used USE=gnutls to build it." + return 0 + fi + + # Make sure the certificates directory exists + CERTDIR="${ROOT}/etc/ssl/${PN}" + if [ ! -d "${CERTDIR}" ]; then + mkdir "${CERTDIR}" || die + fi + einfo "Your certificates will be stored in ${CERTDIR}" + + # Create a default CA if needed + if [ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]; then + einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + cat > "${T}/${PF}.$$" <<_EOF + cn = Portage automated CA + ca + cert_signing_key + expiration_days = 3650 +_EOF + + certtool --generate-self-signed \ + --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --outfile "${CERTDIR}/${PN}_ca.cert.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" + + # Create the server certificate + echo + einfon "Please type the Common Name of the SERVER you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for server ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<_EOF + cn = ${CN} + tls_www_server + dns_name = ${CN} + expiration_days = 3650 +_EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + else + einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation." + fi + + # Create a client certificate + echo + einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: " + read -r CN + + einfo "Creating private key and certificate for client ${CN}..." + certtool --generate-privkey \ + --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" + + cat > "${T}/${PF}.$$" <<_EOF + cn = ${CN} + tls_www_client + dns_name = ${CN} + expiration_days = 3650 +_EOF + + certtool --generate-certificate \ + --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ + --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ + --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ + --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ + --template "${T}/${PF}.$$" &>/dev/null + chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" + + rm -f "${T}/${PF}.$$" + + echo + einfo "Here is the documentation on how to encrypt your log traffic:" + einfo " http://www.rsyslog.com/doc/rsyslog_tls.html" +} |