summaryrefslogtreecommitdiff
path: root/app-admin/fam
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/fam')
-rw-r--r--app-admin/fam/Manifest9
-rw-r--r--app-admin/fam/fam-2.7.0-r7.ebuild54
-rw-r--r--app-admin/fam/files/fam-2.7.0-out-of-tree.patch13
-rw-r--r--app-admin/fam/files/fam-2.7.0-sysmacros.patch15
-rw-r--r--app-admin/fam/files/famd26
-rw-r--r--app-admin/fam/metadata.xml8
6 files changed, 125 insertions, 0 deletions
diff --git a/app-admin/fam/Manifest b/app-admin/fam/Manifest
new file mode 100644
index 000000000000..c6bac5a0cabd
--- /dev/null
+++ b/app-admin/fam/Manifest
@@ -0,0 +1,9 @@
+AUX fam-2.7.0-out-of-tree.patch 262 SHA256 279adff902b870134182955c9fa50f64491d4321d398c201f703397920929912 SHA512 20e92a60b67167aa29e699dd61731e5564a22243cbc0634903421545f6918033bce9849de2d3f665ecf3fd24406dd9fef98c98e3d49759b632293c773c4ac813 WHIRLPOOL 2c48dba0cb3b4b0dfb7bf66d3d40aeb694bb2231dcbf5abf6b545cd1307eb918c25ba2ce0f82cd116a9d7a3c0ae329e083227cbc8fec611aa34688850cdcfb88
+AUX fam-2.7.0-sysmacros.patch 343 SHA256 c4956026df068e445bd3aff21d132a16b2e56db455003edd6f39798f5c485d71 SHA512 474ab9d24175d6b3a58d05bc463a53979dfafbd67cf92f892cbf0e9f9330cc8e4b5a34aff261c052fd1080c09c936c0195432404d608b669a824b455d243f3c3 WHIRLPOOL a186d6978c16bb15cd4a8e8fbc8bc270106d6a9d333011a1dda9e6c39f8d6b12c1f2dfbb8affc01416554ec4347a74f55e2dfdea1266264fbe56c561fe720d24
+AUX famd 393 SHA256 d8c2e1b56d6ade86a8f792d10fbd8128549998f495a507c3549f8e47bd49cf18 SHA512 ddad96e311a678c5907086b69a6478c5c6e735ff2614846585a2b26476a5049ab90f984d82eba5ba3f0175c3675d478e2abdf4ef2bf98c457a9e1304324979e1 WHIRLPOOL 91176476471e8c29270d4c5a6397c8ebb0a9ec9497606096849a71df0aeda30eac5dabbac3fe4e1c4e40c6895389ccb05bdf14024aec8d9dfc87d23bc5a370c6
+DIST fam-2.7.0.tar.gz 301974 SHA256 1e0aa136693a3e9f4b43ebd71e7bd934cea31817a4a6cba2edc7aac353b8a93f SHA512 62b6222ee925eb2af1e258097c9bb676191690f38f8504ae16b1883a1019e0ac6dc7116ac2c4c596a956b3b3cfc3ce3ee7b613c319654681afb13e3ad3f284e2 WHIRLPOOL de90043aaaa6fd792975c13589564f85feb735738b9476b57e80d26a224fcb6f3a858ae383417e5ea48c2fa28b1a7e9c33d729caff5bb417bfbfa840ec228e47
+DIST fam_2.7.0-17.diff.gz 28056 SHA256 2362384d1fbde5dcbccf70f617aedbcae44d3f826a5b9df1331b070da1e0d5c2 SHA512 76b14e1d17713eb86d52cb804d34012e5369b5f4e8bcbdc73a063d2ad9219e0c4a261cef9e144ee07744a953a2e893bdf2ceeefcf21edc7a2ac5e70a51a8e209 WHIRLPOOL 59ed522ccfc8825051d1b281ced215c8b045dc0021bf0f28755aeb1f580ebb6eddb09934128aed51e91ea3d0ac24bfd976f0733ac90b7ef0e377fa982996efbd
+EBUILD fam-2.7.0-r7.ebuild 1477 SHA256 3f4ce4ed3175f2ec7c8e9412b580034cbf093ae8714988b4da58db5805e5417c SHA512 e3ab8591d5bb3cced1c603e1379195f7f0826a019e1cee7902239116d625db383023d9ee3581f0258477f88ea191f353425f817771303e5916dca1234d2a1ac8 WHIRLPOOL ea23f513d156e0c89d7489ef078c0b93d1b1f030fc810ec12dea11c6b60f496674148e2715452a6247e22e1475cabc3c1fc9153b8351fb089fd931671cd37920
+MISC ChangeLog 2880 SHA256 028ea950bccb8d862803b66a8254f5b78a140a6d33a7e2e20dfe4b15a0295306 SHA512 1c30ec8ded9e9d1fb43b3103673de502b0008e1c3d36d8436eadb0b86946a4dec7a8491ee4b093b626f68f960be24db252cafe0feb0e8d3fba5fedc207a5d099 WHIRLPOOL f82aa9f935612785d7f4434a48f6b74331ab91a348bb4eaa949eb3a3cbd947d3a3caa0cf98481e62dd04795c20a26c2b1cccbd37e264c88f2a34f362a1bcbb0f
+MISC ChangeLog-2015 14701 SHA256 d51b5701d243f9e1f127e75024d434c10cc9a4afb86514c1f7eed49beb2eea16 SHA512 5d08e686ed1ceb61162643991b66e375f538d69b919662abe85fae842d67c257fcab85c560328593bc3135356b0c1f64c55652fb47542db82659d3ae3d45edfa WHIRLPOOL efbb550a4559909d2087accdf34d59412a1b783fac2460a49b17632e26a774de2e630feaa9e2667a7205187ff9ffd546d4eab94065e161f9323e20c151c95426
+MISC metadata.xml 244 SHA256 a65bfec176330796e1eeb3bb589b78ff60a123b947537decd4705ea71ca4e906 SHA512 1da71f4fae0251c97a8fcfa1e13b0a3f8b95a856fa919ebd30bf4f2f1b8fa900841db09ebc2a0ae9fe0d91f786ac40b63290382668412fcb05bca15b0746f1db WHIRLPOOL 1164de6a99d8931ca3ae60cbb397be80b802eb473943ef777dbe8473d8d665a5f93d8b99175709bf09d8af856b3ea7aaf7c95a87aad37e48b85c06e618431a1f
diff --git a/app-admin/fam/fam-2.7.0-r7.ebuild b/app-admin/fam/fam-2.7.0-r7.ebuild
new file mode 100644
index 000000000000..9aea258bf7a3
--- /dev/null
+++ b/app-admin/fam/fam-2.7.0-r7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools multilib-minimal
+
+DEBIAN_PATCH="17"
+DESCRIPTION="FAM, the File Alteration Monitor"
+HOMEPAGE="http://oss.sgi.com/projects/fam/"
+SRC_URI="ftp://oss.sgi.com/projects/fam/download/stable/${P}.tar.gz
+ mirror://debian/pool/main/f/${PN}/${P/-/_}-${DEBIAN_PATCH}.diff.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="static-libs"
+
+DEPEND="|| ( net-nds/rpcbind >=net-nds/portmap-5b-r6 )
+ !app-admin/gamin"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS ChangeLog INSTALL NEWS TODO README )
+
+src_prepare() {
+ epatch "${WORKDIR}/${P/-/_}-${DEBIAN_PATCH}.diff"
+ edos2unix "${S}"/${P}/debian/patches/10_debianbug375967.patch
+ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"/${P}/debian/patches
+ sed -i configure.ac -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die
+
+ epatch "${FILESDIR}"/${P}-out-of-tree.patch
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #580702
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf $(use_enable static-libs static)
+
+ # These are thrown away later
+ if ! multilib_is_native_abi ; then
+ sed -i -e 's/src conf man//' Makefile || die
+ fi
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ einstalldocs
+
+ sed -i "${D}"/etc/fam.conf \
+ -e "s:local_only = false:local_only = true:g" \
+ || die "sed fam.conf"
+
+ doinitd "${FILESDIR}/famd"
+}
diff --git a/app-admin/fam/files/fam-2.7.0-out-of-tree.patch b/app-admin/fam/files/fam-2.7.0-out-of-tree.patch
new file mode 100644
index 000000000000..51fdadf38fe6
--- /dev/null
+++ b/app-admin/fam/files/fam-2.7.0-out-of-tree.patch
@@ -0,0 +1,13 @@
+fix out of tree builds
+
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -7,7 +7,7 @@
+ Client.h \
+ fam.c++
+
+-libfam_la_LDFLAGS = -export-symbols fam.sym
++libfam_la_LDFLAGS = -export-symbols $(srcdir)/fam.sym
+ libfam_la_LIBADD = -lstdc++
+
+ EXTRA_DIST = fam.sym
diff --git a/app-admin/fam/files/fam-2.7.0-sysmacros.patch b/app-admin/fam/files/fam-2.7.0-sysmacros.patch
new file mode 100644
index 000000000000..ac42dca3bea6
--- /dev/null
+++ b/app-admin/fam/files/fam-2.7.0-sysmacros.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/580702
+
+fix build with newer glibc where sys/sysmacros.h isn't implicitly included
+by sys/types.h
+
+--- a/src/DNotify.c++
++++ b/src/DNotify.c++
+@@ -32,6 +32,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <libgen.h>
diff --git a/app-admin/fam/files/famd b/app-admin/fam/files/famd
new file mode 100644
index 000000000000..da3d745b244a
--- /dev/null
+++ b/app-admin/fam/files/famd
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+
+ need portmap
+
+}
+
+start() {
+
+ ebegin "Starting famd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/famd \
+ -- -T 0 -c /etc/fam.conf
+ eend $?
+
+}
+
+stop() {
+
+ ebegin "Stopping famd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/famd
+ eend $?
+
+}
diff --git a/app-admin/fam/metadata.xml b/app-admin/fam/metadata.xml
new file mode 100644
index 000000000000..f8bd6f3f34f9
--- /dev/null
+++ b/app-admin/fam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jer@gentoo.org</email>
+ <name>Jeroen Roovers</name>
+ </maintainer>
+</pkgmetadata>