diff options
Diffstat (limited to 'net-nntp/sn')
-rw-r--r-- | net-nntp/sn/Manifest | 7 | ||||
-rw-r--r-- | net-nntp/sn/files/sn-0.3.8-parallel-make.patch | 56 | ||||
-rw-r--r-- | net-nntp/sn/files/sn-0.3.8-qa.patch | 21 | ||||
-rw-r--r-- | net-nntp/sn/metadata.xml | 5 | ||||
-rw-r--r-- | net-nntp/sn/sn-0.3.8.ebuild | 47 |
5 files changed, 136 insertions, 0 deletions
diff --git a/net-nntp/sn/Manifest b/net-nntp/sn/Manifest new file mode 100644 index 000000000000..c375cfc3eaa4 --- /dev/null +++ b/net-nntp/sn/Manifest @@ -0,0 +1,7 @@ +AUX sn-0.3.8-parallel-make.patch 1809 SHA256 140962c36198fbd46bfd54282f1332851341d4ee2b57cef450377f9b67fb4bca SHA512 18ae60734faaa75711ef942ad0199eb78ee35a7c8d730d01f0324b84d2cd5089d2e318391592d4c064a78536581259032e201e042e5da3c7b9c39e2fba95e252 WHIRLPOOL eb93fc36590bfa1f26911103a1570eacda3dde4338e4c407b9130bacb0d467de2046337eb7469e85cbfea619e8697b00d4743bf26e11dd46ba6f881f0846d20a +AUX sn-0.3.8-qa.patch 325 SHA256 67d9931cdbaac729ea4c8f70e01484f7ec0dcf198c36b64ee3a5ff00af2ed97b SHA512 c5ca83fc9ff12ffe5eb09db6a4993fa277c35a8c0a88ac8c9d5563cc66b886c34bd6d4694371956546f0b5fcee2bf4fd7992e223e03fcaa4d9e940c9ad58fecf WHIRLPOOL 3f7f8a663f8a54c4ba50a2ccff77fda154c929ffddd699ddef2208d8f7c2e3bcabd4710880f562a53b798fcfcbe8712541f6720349b11854458b2fc2392d841f +DIST sn-0.3.8.tar.bz2 97751 SHA256 8ce7c77d587814993ca27d5bbf2bb8b2ad13111995b6113dc917484596dbddf0 SHA512 1b2270b03a58d2454ca59434d450e164d3c6ea6953f62d02dc5cef02cd8dbb53de0ce8c1bebe7b8a2dd4c087d898025bc4ab61ef3648df9d6a7e0dd92a544b14 WHIRLPOOL 507d0e33422eca51bd10c14f78862b423a9a45a2a3009d94e6c55433bb116979e93d49681f60e70208a48c5b6ec28ddce6e5646b0163a8aacaa6078032478500 +EBUILD sn-0.3.8.ebuild 1121 SHA256 22735fd051efec25db4c68fbb572bd640e1e316898abd31ce3c9145dc5326f36 SHA512 3789dbf414e7f35894d620fb0f4001863cdb724a23ce0beaf6c93820dba6eeed416c27efc09af01de9f506165ff68b353af0c4d05a32c8dd086ed061c3b8c448 WHIRLPOOL de69ac344284bbe2456797abd58806dbd1bb6b5bd3dd2f1eb5b56b782a7a2856a9c311aa2550ff1389a35951024ce18556df3758a64d1dd90e403d8627b1ed13 +MISC ChangeLog 2506 SHA256 e09a9e29ab30e9ea1cffd51fc87b40709840ac4772e08cf291acedfac75c675f SHA512 69b8a4eed91de4dbbe1fdbd594416f5ea8ae48393dc306512ea4f2ac4be016bae172c61ff1023fdcaa8dff17313e7884a90d3e3cb58f8ce2b3779b7f4d37802d WHIRLPOOL 64b030657ba22829fa9f8c492b25b46f347e48fa1e1b13322d806d02c4fccb4d1bef13f60fe0f0cd08b30b8921449a8634eb46bac8412747d671a2ac12ca71e3 +MISC ChangeLog-2015 2143 SHA256 046095740bd255fc82e9cf3abcfb1b6c45804aadd046915bcbe5136466d94df2 SHA512 2b15448c916aae3177eacfa17d1a9e76b9a99a17448683e8ffd9fafaee65e67b5f59eec699bc49b1f98a8b8aea9c99d378cb3c714a417c217a103e8e4b80618c WHIRLPOOL 6ad20d22b5b916b658e6c11ba9636cbf75e2ef3621e0c6a5e4bc3cf7383bddbc80a147fea2bcc4bbd701645947051a19ca927d6a227fccd62fdc84784b68dc0f +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-nntp/sn/files/sn-0.3.8-parallel-make.patch b/net-nntp/sn/files/sn-0.3.8-parallel-make.patch new file mode 100644 index 000000000000..d94e21897781 --- /dev/null +++ b/net-nntp/sn/files/sn-0.3.8-parallel-make.patch @@ -0,0 +1,56 @@ +--- sn-0.3.8/Makefile.orig ++++ sn-0.3.8/Makefile +@@ -94,39 +94,39 @@ + ar rc $@ $^ + ranlib $@ + +-snsplit: snsplit.o sn.a ++snsplit: snsplit.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snscan: snscan.o sn.a ++snscan: snscan.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) + sncat: snscan + ln -s snscan sncat + sncancel: snscan + ln -s snscan sncancel +-snprimedb: snprimedb.o sn.a ++snprimedb: snprimedb.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sndumpdb: sndumpdb.o sn.a ++sndumpdb: sndumpdb.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snntpd: snntpd.o post.o commands.o list.o sn.a ++snntpd: snntpd.o post.o commands.o list.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) +-snsend: snsend.o sn.a ++snsend: snsend.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) $(ZLIB) + snstore: snsend + ln -s snsend snstore +-snfetch: snfetch.o sn.a ++snfetch: snfetch.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snexpire: snexpire.o sn.a ++snexpire: snexpire.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snmail: snmail.o sn.a ++snmail: snmail.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snget: snget.o get.o sn.a ++snget: snget.o get.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sngetd: sngetd.o get.o sn.a ++sngetd: sngetd.o get.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snnewgroup: snnewgroup.o sn.a ++snnewgroup: snnewgroup.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-sndelgroup: sndelgroup.o sn.a ++sndelgroup: sndelgroup.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) +-snlockf: snlockf.o ++snlockf: snlockf.o sn.a lib/libstuff.a + $(LD) `cat cc-flags` $^ -o $@ $(LIBS) + + %: %.in sed-cmd diff --git a/net-nntp/sn/files/sn-0.3.8-qa.patch b/net-nntp/sn/files/sn-0.3.8-qa.patch new file mode 100644 index 000000000000..52a25ebcd83e --- /dev/null +++ b/net-nntp/sn/files/sn-0.3.8-qa.patch @@ -0,0 +1,21 @@ +--- lib/readln.c ++++ lib/readln.c +@@ -9,6 +9,7 @@ + * Get a single line from an fd. + */ + ++#include <string.h> + #include <stdlib.h> + #include <unistd.h> + #include <sys/types.h> + +--- lib/cmdopen.c ++++ lib/cmdopen.c +@@ -6,6 +6,7 @@ + */ + + #include <unistd.h> ++#include <stdlib.h> + #include <fcntl.h> + #include <sys/wait.h> + diff --git a/net-nntp/sn/metadata.xml b/net-nntp/sn/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-nntp/sn/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-nntp/sn/sn-0.3.8.ebuild b/net-nntp/sn/sn-0.3.8.ebuild new file mode 100644 index 000000000000..06dc8b363e47 --- /dev/null +++ b/net-nntp/sn/sn-0.3.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit toolchain-funcs eutils + +DESCRIPTION="Hassle-free Usenet news system for small sites" +SRC_URI="http://infa.abo.fi/~patrik/sn/files/${P}.tar.bz2" +HOMEPAGE="http://infa.abo.fi/~patrik/sn/" + +KEYWORDS="~amd64 x86 ~ppc" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_prepare() { + epatch "${FILESDIR}"/${P}-qa.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + + sed -i -e 's/-g -Wall -pedantic -O/-Wall -pedantic/' Makefile || die +} + +src_compile() { + emake cc-flags + echo ${CFLAGS} >>cc-flags + + emake CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \ + SNROOT=/var/spool/news \ + BINDIR=/usr/sbin \ + MANDIR=/usr/share/man +} + +src_install() { + dodir /var/spool/news /usr/sbin /usr/share/man/man8 + mknod -m 600 "${D}"/var/spool/news/.fifo p + emake install \ + SNROOT="${D}"/var/spool/news \ + BINDIR="${D}"/usr/sbin \ + MANDIR="${D}"/usr/share/man + dodoc CHANGES FAQ INSTALL* INTERNALS README* THANKS TODO + fowners news:news /var/spool/news{,/.fifo} +} |