summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/watchfolder
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/watchfolder')
-rw-r--r--app-admin/watchfolder/Manifest1
-rw-r--r--app-admin/watchfolder/files/0.3.3-64bit.patch11
-rw-r--r--app-admin/watchfolder/files/0.3.3-fortify-sources.patch11
-rw-r--r--app-admin/watchfolder/metadata.xml10
-rw-r--r--app-admin/watchfolder/watchfolder-0.3.3.ebuild44
5 files changed, 77 insertions, 0 deletions
diff --git a/app-admin/watchfolder/Manifest b/app-admin/watchfolder/Manifest
new file mode 100644
index 000000000000..20f7b05ad6d1
--- /dev/null
+++ b/app-admin/watchfolder/Manifest
@@ -0,0 +1 @@
+DIST watchfolder-0.3.3.tar.gz 86741 SHA256 fa853937d27eeae5acc492f1ade53298ae40cfc0094539dd36a9fdb87dda1846 SHA512 162a3535748d280d06db8b05ddc4c87b578ff4be08aeb7a08858c28fd4612f46c4b8ed866513283edcd6ad24207c94a02e562200ae102d1897b4b28be6717dc6 WHIRLPOOL 9f0cd5b84336530fbbd6e6c0227eb2b8f438716692aa9bec46636623bd69779daa6e851315aeaf186a70b54061a3330c283164ead833f19c6b2f50ef3a9ef60d
diff --git a/app-admin/watchfolder/files/0.3.3-64bit.patch b/app-admin/watchfolder/files/0.3.3-64bit.patch
new file mode 100644
index 000000000000..ea78be4fe295
--- /dev/null
+++ b/app-admin/watchfolder/files/0.3.3-64bit.patch
@@ -0,0 +1,11 @@
+--- watchd-0.3.3/watchd.c.orig 2006-02-23 12:33:32.000000000 -0500
++++ watchd-0.3.3/watchd.c 2006-02-23 12:45:30.000000000 -0500
+@@ -176,7 +176,7 @@
+ // free(p2tmp);
+
+ p2tmp=strchr(p2,0xa); // Not very nice,
+- p2[(int)p2tmp-(int)p2]=0x00; // but in fact: It works ;)
++ *(p2+(p2tmp-p2))=0x00; // but in fact: It works ;)
+
+ while (p2[0]==' ') {p2++;} // Again, quick and dirty..
+ while (p1[strlen(p1)-1]==' ') {p1[strlen(p1)-1]=0;} // Need to say anything?;)
diff --git a/app-admin/watchfolder/files/0.3.3-fortify-sources.patch b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch
new file mode 100644
index 000000000000..c9e47038612f
--- /dev/null
+++ b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch
@@ -0,0 +1,11 @@
+--- watchd.c 2009-02-27 23:46:42.000000000 +0000
++++ watchd.c 2009-02-27 23:50:22.000000000 +0000
+@@ -671,7 +671,7 @@
+ {
+ if (folder->flags&FL_LOG_FILE)
+ {
+- log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND );
++ log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND, S_IRUSR | S_IWUSR );
+ if (log>0)
+ {
+ lseek(fd, SEEK_SET, 0); // Rewind temp log file..
diff --git a/app-admin/watchfolder/metadata.xml b/app-admin/watchfolder/metadata.xml
new file mode 100644
index 000000000000..67a0ac76914d
--- /dev/null
+++ b/app-admin/watchfolder/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="freshmeat">watchd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-admin/watchfolder/watchfolder-0.3.3.ebuild b/app-admin/watchfolder/watchfolder-0.3.3.ebuild
new file mode 100644
index 000000000000..04ad295f0ac6
--- /dev/null
+++ b/app-admin/watchfolder/watchfolder-0.3.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Watches directories and processes files, similar to the watchfolder option of Acrobat Distiller"
+HOMEPAGE="http://freshmeat.net/projects/watchd/"
+SRC_URI="http://dstunrea.sdf-eu.org/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86"
+IUSE=""
+DEPEND=""
+
+S="${WORKDIR}/${P/folder/d}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # patch to remove warnings on 64 bit systems
+ epatch "${FILESDIR}"/${PV}-64bit.patch || die
+ # and a gcc 4.3.3 / fortify_sources fix
+ epatch "${FILESDIR}"/${PV}-fortify-sources.patch || die
+
+ sed -i \
+ -e '/-c -o/s:OPT:CFLAGS:' \
+ -e 's:(\(LD\)\?OPT):(LDFLAGS) $(CFLAGS):' \
+ -e 's:gcc:$(CC):' \
+ Makefile || die "sed Makefile failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin watchd || die "dobin failed"
+ insinto /etc
+ doins watchd.conf
+ dodoc README doc/*
+}