diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2011-11-11 16:45:30 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2011-11-11 16:45:30 +0000 |
commit | 05000edffba45f308938aed50da4abcd065d17fe (patch) | |
tree | c249c3532637cb94d9853ca4a80b7e7a909afd1e /app-admin | |
parent | Version bump (diff) | |
download | historical-05000edffba45f308938aed50da4abcd065d17fe.tar.gz historical-05000edffba45f308938aed50da4abcd065d17fe.tar.bz2 historical-05000edffba45f308938aed50da4abcd065d17fe.zip |
Added logsurfer user. Fixed init.d issue, bug #387397.
Package-Manager: portage-2.1.10.29/cvs/Linux x86_64
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/logsurfer+/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/logsurfer+/Manifest | 30 | ||||
-rw-r--r-- | app-admin/logsurfer+/files/logsurfer-1.8.initd | 51 | ||||
-rw-r--r-- | app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild | 40 |
4 files changed, 114 insertions, 15 deletions
diff --git a/app-admin/logsurfer+/ChangeLog b/app-admin/logsurfer+/ChangeLog index 7bb120ac39b0..7619b6890471 100644 --- a/app-admin/logsurfer+/ChangeLog +++ b/app-admin/logsurfer+/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/logsurfer+ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logsurfer+/ChangeLog,v 1.4 2011/10/22 12:09:04 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/logsurfer+/ChangeLog,v 1.5 2011/11/11 16:45:30 matsuu Exp $ + +*logsurfer+-1.8-r1 (11 Nov 2011) + + 11 Nov 2011; MATSUU Takuto <matsuu@gentoo.org> +logsurfer+-1.8-r1.ebuild, + +files/logsurfer-1.8.initd: + Added logsurfer user. Fixed init.d issue, bug #387397. *logsurfer+-1.8 (22 Oct 2011) diff --git a/app-admin/logsurfer+/Manifest b/app-admin/logsurfer+/Manifest index 2579661ad99d..d7305a7a9aaf 100644 --- a/app-admin/logsurfer+/Manifest +++ b/app-admin/logsurfer+/Manifest @@ -1,28 +1,30 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX logsurfer-1.8.initd 1169 RMD160 699c45df49dde7a9c504c9d14259d8f01e59213c SHA1 03c9cee5d27075586a265714788526f5d8701a52 SHA256 518b5dbab35d53c5b0b2ca2084b58513ad7dcc40ca2c82272f9e4e9c66028feb AUX logsurfer.confd 106 RMD160 cc432b204fadabd7f74f68000f4b50a26dbfa091 SHA1 39b7ad5a0f9f063ebc7b157985f42dda3d2803e4 SHA256 28dca27c656d36f0f007c1acf08b822d0ff8584ea5aad8e158bc6c63c162b321 AUX logsurfer.initd 702 RMD160 613caf6e943e172d5877e17801f2ff06292a88e4 SHA1 882c33f0b968a9827d451f4904ceb4a646139afe SHA256 6eb04296b520b9aa79acc04be28494a5eba7c5b9d1e3999fc80f2dd251f04fbd DIST logsurfer+-1.7.tar.gz 198289 RMD160 ad68651d5b87e0bba76871cd5f30ed94d861513b SHA1 9fe9b2356c34fe691a8b0c66514d8cbe3c3b33fa SHA256 b0cce7311f6413a1a903a2d4925051ee68a882a7eb093f41f1b7d7bd7bd442a0 DIST logsurfer-1.8.tar.gz 197433 RMD160 1e3d10d018ce5ee7ee941601b6abbca8efd2ed3b SHA1 8fb732b16f0a0725492d73dd099662eeff0b9362 SHA256 e0a6becc1d105acff35baa4b1dd51db3f6664156000ad23bf803193a8361ce50 EBUILD logsurfer+-1.7.ebuild 874 RMD160 210dce029f745ec6817be18925d173b637ccb360 SHA1 7ead65235108f7ad0b140062a2b3bb0488df5a1a SHA256 16a1fcd7a814b2b836599b8e714f45655678d5b56b79e56eb0a62a2c817dfcb8 +EBUILD logsurfer+-1.8-r1.ebuild 935 RMD160 416bc5aec3b185bf205d8eb6faeb3954d7df7d70 SHA1 9c9c760448da4ee4eca1b13b01f577645b024537 SHA256 5b288ea1ff4859aa9646111ddcdaefdbc5e848e5bfd42a5997cebd1a5a965930 EBUILD logsurfer+-1.8.ebuild 867 RMD160 533d69185b4e84c0626a5c00a1be33a05b28ff19 SHA1 8dbe048870a146fc73903271547da0b1670aca84 SHA256 0394d86f707210d28ae4fc586579369e5447c03ed944b442ea9206f22ebc1430 -MISC ChangeLog 717 RMD160 80da26efbbe82ab8be3272e43332fb24a267e256 SHA1 5624353951b62488d6771624d943b68f3e616f34 SHA256 5ff9241b28db7c62d1df1c03d3e31d3956d1eeb69b1f4db1ee27c93d5e25a9d8 +MISC ChangeLog 915 RMD160 91bc93871470b958554646a94eb58983a19e324b SHA1 99a612d1c4950e8ffbfe61c98968449f3e1fe9c6 SHA256 81dc1f1f1e2dfa89fbfc14ebee4b42a8361d2ff149ab84bf56c2d3417354621b MISC metadata.xml 274 RMD160 948e54ca19441d1cf51e0634feef7a18baa0d461 SHA1 73abce797237a4cb89217c4576885810f62534f5 SHA256 8c63c906aa83e9ff29226d0e4aac018ae96bf8975a21a8691fac329a31e5407a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iQIcBAEBAgAGBQJOorKYAAoJECaGw+YFKA1pBEUQAIJNmaXhvfnaKpR0tZeIoYhn -aub6sJ33kIjpfg3GjBjVs7FYhSFc9pN0DkZauZIqC5KMFCoht6xKr03gYUmgui0H -PiK51aFDVaeuHi/V5c5v2Kw7MFN9+4DjilLYqWkmLSXULIVjkraLZ5ZLZFj3MVHA -0lKLZgHzRjfbuNGteOZPYv0MgpPYCbYXlPNlUgwzlJXYL5HeJKmf+OJe5YKtgbIg -HkxTfd9uzVG2q6vs7AHmknKGO2az3jqskj4hU68k4LlSBITc3bcgTccY+EUAN7DV -6jLnkjzsrGn5GDXNlIwLq+Dsg/Sy42xiI4vSWljrsNer/Mbf1E5YEcJJIeD8Mw6R -b0FwF9ph0+7QI3/SSAKAHRV7GZ1bSvirmw3n5dkNOMIliQJ6WnW+AAzRzsSg54Cc -RNy0rDYYtqbEg4ox9llVPbSAhvX0uR42ZqRRVwcmWSEdJiViEQQLHWoBSY+IKdZO -2X6fzwa5Vx6idjrLHDA4q2X+JVoc/E5nos6s5ZFrhfSwIsGN89iT4mIxpFsupvue -KrjewuLDzXv1s/lDUVtUv5Sf001826EVSLW7w+d89yXbvIdk1dZWGFppXSfjegoK -Pa48zKlRKUGlv71ZuCDG+eOD2ofvliKFgifrB3fclNw+CDj/BnoB9jAumfiSdz1C -i2trMljSgfhQm1iQw7Ag -=1Z4R +iQIcBAEBAgAGBQJOvVE0AAoJECaGw+YFKA1pOcUP/2/HUxK/FZj+JptptSd452RC +jxUOkuWXEr6Ayd9nujVSOH0HgQQbrb1TgiFGipdYSahi1Elrlx5yxdMTUId53bUj +A+SWnc4Tl6J4neZpwy8w72iOElO58PUjwaDMVhR5Cz9kVShKQT4NUJJnhPS+kcbJ +uACZlFlUC1vndv7OMTvJlpU735NfiSdIYGmvtHthxpfDGWrNDJnLizEA89f7CWwx +5AeHmScSG5J6u5ikHm02p3JbSGgcCO4mKgUNbIPcZyJyIZW8oOVASPl/A6NeZgP7 +OHHKyZ3ZMt5V+uzB/BQoSiqPED9Zvmuq/zzObbT8b36PgQBBXZRlj1JdK9gIeUkq +aHJULlF7A8OzK35g6nnp+FjatUtgTTBK2dbI0+Q8NhEBd+RdADi2hUq6JiaQbtET +GVqx+Q+35JrZ/Shuh6FNQLzJlQam1Fju6R35AErmljsP+pM7nW0IyZcYxWeTjdsj +6TY3IoeogfLXFf2Ho4MhcjEgoaIarS/bcxnNanBpfYcM/Hlrq41HEdsKqUWQHiSX +jDQ/uqxB4DClP27vNUC1YLrP3inSxgyiAurlRYWBRcxWqBmBzN3LpElL4OGiPSP4 +j23DUrnkWcYpU6ayuvNRhaSLkg5cUAq9GbOuRvJRdKECD3vn9oVz6pyF1pMFVdIy ++c2+WmyPp2NWb1TmCeC5 +=HYC4 -----END PGP SIGNATURE----- diff --git a/app-admin/logsurfer+/files/logsurfer-1.8.initd b/app-admin/logsurfer+/files/logsurfer-1.8.initd new file mode 100644 index 000000000000..3c8ed3b0c7ab --- /dev/null +++ b/app-admin/logsurfer+/files/logsurfer-1.8.initd @@ -0,0 +1,51 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/logsurfer+/files/logsurfer-1.8.initd,v 1.1 2011/11/11 16:45:30 matsuu Exp $ + +pidfile="/var/run/logsurfer.pid" +command="/usr/bin/logsurfer" +command_args="-D -p ${pidfile} ${LOGSURFER_OPTS}" +extra_started_commands="reload dump" + +conffile="/etc/logsurfer.conf" + +depend() { + use logger +} + +checkconfig() { + if [ ! -f /etc/logsurfer.conf ] ; then + eerror "Please create /etc/logsurfer.conf" + return 1 + fi + return 0 +} + +start_pre() { + checkconfig || return $? + + checkpath --file --owner logsurfer --mode 0644 "${pidfile}" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon \ + --start \ + --user logsurfer \ + --exec ${command} \ + -- ${command_args} + eend $? "Failed to start ${SVCNAME}" +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to reload ${SVCNAME}" +} + +dump() { + ebegin "Dumping ${SVCNAME} internal state" + start-stop-daemon --signal USR1 --pidfile "${pidfile}" + eend $? "Failed to dump ${SVCNAME} internal state" +} diff --git a/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild b/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild new file mode 100644 index 000000000000..8876e8711c6b --- /dev/null +++ b/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/logsurfer+/logsurfer+-1.8-r1.ebuild,v 1.1 2011/11/11 16:45:30 matsuu Exp $ + +EAPI="4" +inherit toolchain-funcs user + +MY_P="logsurfer-${PV}" +DESCRIPTION="Real Time Log Monitoring and Alerting" +HOMEPAGE="http://www.crypt.gen.nz/logsurfer/" +SRC_URI="http://kerryt.orcon.net.nz/${MY_P}.tar.gz + http://www.crypt.gen.nz/logsurfer/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf --with-etcdir=/etc +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin src/logsurfer + doman man/logsurfer.1 man/logsurfer.conf.4 + + newinitd "${FILESDIR}"/logsurfer-1.8.initd logsurfer + newconfd "${FILESDIR}"/logsurfer.confd logsurfer + dodoc ChangeLog README TODO +} + +pkg_postinst() { + enewuser logsurfer -1 -1 -1 daemon +} |