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 /net-misc/smbc
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 'net-misc/smbc')
-rw-r--r--net-misc/smbc/Manifest1
-rw-r--r--net-misc/smbc/files/smbc-1.2.2-cflags.patch13
-rw-r--r--net-misc/smbc/files/smbc-1.2.2-size_t.patch16
-rw-r--r--net-misc/smbc/metadata.xml11
-rw-r--r--net-misc/smbc/smbc-1.2.2-r2.ebuild41
5 files changed, 82 insertions, 0 deletions
diff --git a/net-misc/smbc/Manifest b/net-misc/smbc/Manifest
new file mode 100644
index 000000000000..16b285859a79
--- /dev/null
+++ b/net-misc/smbc/Manifest
@@ -0,0 +1 @@
+DIST smbc-1.2.2.tgz 977908 SHA256 1059216f727bb3284eaee3daea5f868e1158b0db63f29ad4a392501c5e3f3f25 SHA512 4625ba6bb6b3ffe818826d4af4da0fcb2e516e1ed62ee15ace4cf04d5176d238c5107d349f595809048bafc38d571448e1f1f170ed061dfc8f698836b52e2b84 WHIRLPOOL a2ee73214a68ae02f5abcf842701ba88b4d80c0d8d67b12bd9d6f412b3ba6e345b83a82b7ebd0343411b6a17439bb65a3582621e4c3f5f20740897a0578cfaf6
diff --git a/net-misc/smbc/files/smbc-1.2.2-cflags.patch b/net-misc/smbc/files/smbc-1.2.2-cflags.patch
new file mode 100644
index 000000000000..0b7baf59c75a
--- /dev/null
+++ b/net-misc/smbc/files/smbc-1.2.2-cflags.patch
@@ -0,0 +1,13 @@
+Do not define CFLAGS
+
+--- a/src/Makefile.am 2005-06-29 14:14:02.000000000 +0200
++++ b/src/Makefile.am 2009-04-28 18:18:26.000000000 +0200
+@@ -18,7 +18,7 @@
+ smb-ext.c smb-ext.h
+
+ smbc_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall
+-CFLAGS = -O3
++#CFLAGS = -O3
+
+ if GDB
+ smbc_CFLAGS += -ggdb -g
diff --git a/net-misc/smbc/files/smbc-1.2.2-size_t.patch b/net-misc/smbc/files/smbc-1.2.2-size_t.patch
new file mode 100644
index 000000000000..cafaf4a1b713
--- /dev/null
+++ b/net-misc/smbc/files/smbc-1.2.2-size_t.patch
@@ -0,0 +1,16 @@
+Patch to enable running on amd64 (borrowed from http://bugs.debian.org/366580)
+
+--- a/src/convert.c
++++ b/src/convert.c
+@@ -98,8 +98,9 @@
+
+ char *inbuf = (char*) src;
+ char *outbuf = param->dst;
+- int inbytesleft = src_len - 1;
+- int outbytesleft = param->dst_len - 1;
++ /* iconv requires size_t and not int ! */
++ size_t inbytesleft = src_len - 1;
++ size_t outbytesleft = param->dst_len - 1;
+ bzero(param->dst, param->dst_len);
+ // Need some error handling here
+ iconv(param->cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
diff --git a/net-misc/smbc/metadata.xml b/net-misc/smbc/metadata.xml
new file mode 100644
index 000000000000..b5da052d4760
--- /dev/null
+++ b/net-misc/smbc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>samba</herd>
+ <longdescription>
+Samba Commander is a text mode SMB network commander. In SMBC, you can browse the local network or you can use the search function to find the files. You can also download/upload files and directories or create them both locally and remotely. SMBC has a resume function and supports UTF-8 characters.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">smbc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/smbc/smbc-1.2.2-r2.ebuild b/net-misc/smbc/smbc-1.2.2-r2.ebuild
new file mode 100644
index 000000000000..daf8f0fb9ba1
--- /dev/null
+++ b/net-misc/smbc/smbc-1.2.2-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit autotools eutils
+
+DESCRIPTION="A text mode (ncurses) SMB network commander. Features: resume and UTF-8"
+HOMEPAGE="http://sourceforge.net/projects/smbc/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=" ~ppc ~x86"
+IUSE="nls debug"
+
+DEPEND="net-fs/samba
+ sys-libs/ncurses
+ dev-libs/popt
+ nls? ( sys-devel/gettext )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ epatch "${FILESDIR}"/${P}-size_t.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with debug) \
+ || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ mkdir -p "${D}/usr/share/doc"
+ mv -v "${D}/usr/share/"{${PN},doc/${PF}}
+}