diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/aimsniff |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/aimsniff')
-rw-r--r-- | net-analyzer/aimsniff/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/aimsniff/aimsniff-0.9d.ebuild | 109 | ||||
-rw-r--r-- | net-analyzer/aimsniff/files/aimsniff.rc | 18 | ||||
-rw-r--r-- | net-analyzer/aimsniff/metadata.xml | 15 |
4 files changed, 149 insertions, 0 deletions
diff --git a/net-analyzer/aimsniff/Manifest b/net-analyzer/aimsniff/Manifest new file mode 100644 index 000000000000..2d0de0519369 --- /dev/null +++ b/net-analyzer/aimsniff/Manifest @@ -0,0 +1,7 @@ +AUX aimsniff.rc 315 SHA256 15bf0d041da578ee737f555ba3c2eb869290267dff13d1a2aaad6793d7657bad SHA512 2a096e76c8e877ea0216fee7c3e63b35b253d3faa586546a29ebb4f68b0c07ce00ac4859fb3ad49318db994c047e020747dc37b56afdc1f56681b308f7c22a52 WHIRLPOOL 5749814206d85eb6f71bc68d7c9990e3bd6ef54e8676595682f617b0fbaa7497617e7a16eef2fcf6332562b7cda6e66e73475c4caa18bdc5727847733bbbcd08 +DIST aimsniff-0.9d.tar.gz 24044 SHA256 11ce4cd3e1dcdabee0319dbb8a52c176debfbcd59c0c0c913078bb4b85619ac1 SHA512 eba8d1ff21c6c841f5e1b344769c38bf00936613c975dd60e0c3922e67805733c2e949006be36a83d75fc6c9c77de510a6914d184c6159e46b9d35cc4f12efa6 WHIRLPOOL 40a882204e0da03843a6a461b036dfb6a84f29fbee22f83c4d962ba0ca838b71499b51f8736ff99eadad7a0ecd30405c7df743081d258b0f4a7141bb20ef69cd +DIST was-0.1.2b.tar.gz 73651 SHA256 0d1af84e7ed529cf0f8a63f4c72e8656ceccf0316cc42dcc9d856cbf8091635b SHA512 afbe8554c16df8305e781cf2dde3af1e7b25345dc1f5defc7723654479cc91d8f6fe9ddc3850fd487f77b241d40274edb2b7328ab011df93996264f14b98e6cd WHIRLPOOL cabbdbb0131ff633472b18226ed424c5d905f0dfbb92a36ccdd08cdba024ba94b88e4b497e10d9d6c4ebd000efa832a0a66ecd105e50a894ed48591633d80d16 +EBUILD aimsniff-0.9d.ebuild 2820 SHA256 b087a7c3a3fcb99ee0be0a93678571bad20d8fca56ce0e1c055a2e383b7d325d SHA512 b702cfc8b55717ab744db639101b014ddf5a4459cf79861aacb5376ac022c66b7268fde97d8f5338236a0dfeaa57aa02bafec8c9d0c9b54b37d11abcc7f7e7ee WHIRLPOOL cdd6ea766b874d5c139110499d4c21f447707745bb4657bc829659ae02c86c8200d267787c9b34790ccfbb1c9f692ab0332ddc0ed709863109ee60ceef6cece9 +MISC ChangeLog 2692 SHA256 1ddeb85cf7e419d7d085885f4bf2b99d9df6ec59a9415379704c0d8cee18b286 SHA512 9139c084ece8ee8188bf104f04483f6463868f994f8d0c36c9d0100d04c09a1ddf5cdfe415d7eee1df1ff638aaa621eaff340136cb91556a6ba3bd0df8c2fe1f WHIRLPOOL 1ece59b8ab2065d73ff96abc36f6d8d3f8467f3798f280668f003fe700e76df87baaaee410f15c0b51bc0ed86aa0b2601b1c362728647f167452273174a1fc38 +MISC ChangeLog-2015 5001 SHA256 b02063d5bc0ebd6a8e10eced1d9ae68144ac21948781b8a7559d2a611db0c808 SHA512 d58cc0c46fefbd09ecad3df81a9b55efa9e721a1451b0fcdcbe6a85e54e0591c2f50c2873cfadbd8b53a97b805ce1c6ab35d342eeb00c0f4e526eb8d2618070f WHIRLPOOL f71d35a0318ee43b07f6adbe0d22340593bf04a45bfe5b70f5f680905d097f37fb897f844e61fde444448cd1ec08c959d3b28538de425136221e7431bf338417 +MISC metadata.xml 562 SHA256 12b987453f8e246c906e87621ebed55947789a3eef6d1909f5148dfb73911c41 SHA512 57f79d4bdc238b26c61f64910c918f1ddba52db97dd05d3fe29043f01fdda9d80511c051adcf308592b70003af8b07e29547978aabc1ec8b615ed5cf39619147 WHIRLPOOL c814c89e2ac0a95a6f644a3533f3fb83351be3587e6b3dd20e8873519e120a3c4f2179cb7e3c9cf9c6cf49dcd43c0d213372606ac98d39a255bb4e113bad9c5b diff --git a/net-analyzer/aimsniff/aimsniff-0.9d.ebuild b/net-analyzer/aimsniff/aimsniff-0.9d.ebuild new file mode 100644 index 000000000000..e08fa33d31c5 --- /dev/null +++ b/net-analyzer/aimsniff/aimsniff-0.9d.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils webapp eutils depend.apache + +WAS_VER="0.1.2b" + +DESCRIPTION="Utility for monitoring and archiving AOL Instant Messenger messages across a network" +HOMEPAGE="https://sourceforge.net/projects/aimsniff/" +SRC_URI=" + mirror://sourceforge/${PN}/${P}.tar.gz + http? ( mirror://sourceforge/${PN}/was-${WAS_VER}.tar.gz ) +" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ppc x86" +#SLOT empty due to webapp +IUSE="samba mysql http" + +RDEPEND=" + dev-lang/perl[gdbm] + dev-perl/Net-Pcap + dev-perl/NetPacket + dev-perl/Unicode-String + dev-perl/Proc-Daemon + dev-perl/Proc-Simple + dev-perl/DBI + dev-perl/Unix-Syslog + mysql? ( virtual/mysql dev-perl/DBD-mysql ) + samba? ( net-fs/samba ) +" + +want_apache2 http + +pkg_setup() { + depend.apache_pkg_setup http + + use http && webapp_pkg_setup +} + +src_install() { + use http && webapp_src_preinst + + newsbin aimSniff.pl aimsniff + insinto /etc/${PN} + doins aimsniff.config + insinto /usr/share/doc/${PF} + doins table.struct + dodoc README ChangeLog + + if use http; then + cp ../was-${WAS_VER}/docs/README README.WAS + dodoc README.WAS + + rm -rf ../was-${WAS_VER}/docs + mv ../was-${WAS_VER}/ "${D}"${MY_HTDOCSDIR}/was + + webapp_serverowned ${MY_HTDOCSDIR}/was + + # This file needs to be serverowned as the server won't be able to write to it if it were + # webapp_configfile'ed. + webapp_serverowned ${MY_HTDOCSDIR}/was/.config.php + + webapp_src_install + fi + + newinitd "${FILESDIR}"/aimsniff.rc aimsniff +} + +pkg_postinst() { + if use mysql + then + echo + elog "To create and enable the mysql database, please run: " + elog "emerge --config =${PF}" + + if use http; then + echo "To create and enable the mysql database, please run: + emerge --config =${PF}" > apache-postinst + webapp_postinst_txt en apache-postinst + fi + fi + + if use http; then + elog + elog "Go to http://${HOSTNAME}/was/admin.php to configure WAS." + + echo "Go to http://${HOSTNAME}/was/admin.php to configure WAS." > was-postinst + webapp_postinst_txt en was-postinst + fi +} + +pkg_config() { + echo + einfo "Creating mysql database aimsniff using /usr/share/doc/${PF}/table.struct:" + echo -n "Please enter your mysql root password: " + read mysql_root + /usr/bin/mysqladmin -p$mysql_root -u root create aimsniff + /usr/bin/mysql -p$mysql_root -u root aimsniff < /usr/share/doc/${PF}/table.struct + echo -n "Please enter your username that you want to connect to the database with: " + read user + echo -n "Please enter the password that you want to use for your database: " + read password + einfo "Granting permisions on database using 'GRANT ALL ON aimsniff.* TO $user IDENTIFIED BY '$password';'" + echo "GRANT ALL ON aimsniff.* TO $user@localhost IDENTIFIED BY '$password';" | /usr/bin/mysql -p$mysql_root -u root aimsniff + echo +} diff --git a/net-analyzer/aimsniff/files/aimsniff.rc b/net-analyzer/aimsniff/files/aimsniff.rc new file mode 100644 index 000000000000..276a21e730be --- /dev/null +++ b/net-analyzer/aimsniff/files/aimsniff.rc @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +start() { + ebegin "Starting asniff" + start-stop-daemon -o --quiet --start --exec /usr/sbin/aimsniff -- \ + -C=/etc/aimsniff/aimsniff.config + eend $? +} + +stop() { + ebegin "Stopping asniff" + start-stop-daemon -o --stop -p /var/run/aimsniff_parent.pid -s QUIT + eend $? +} diff --git a/net-analyzer/aimsniff/metadata.xml b/net-analyzer/aimsniff/metadata.xml new file mode 100644 index 000000000000..5a524c1fda91 --- /dev/null +++ b/net-analyzer/aimsniff/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <longdescription>aimsniff is a utility used for retrieving and storing AIM messages across a network.</longdescription> + <use> + <flag name="http">Install the WAS (Web AIM Sniff) frontend</flag> + </use> + <upstream> + <remote-id type="sourceforge">aimsniff</remote-id> + </upstream> +</pkgmetadata> |