summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2004-03-24 15:32:04 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2004-03-24 15:32:04 +0000
commit2ecd98a947abb86590f041e845e3e4ccebcc18fd (patch)
tree441d48e244cc5787446097be9f9e80fe5b784201 /net-misc
parentgnome 2.6 final (diff)
downloadhistorical-2ecd98a947abb86590f041e845e3e4ccebcc18fd.tar.gz
historical-2ecd98a947abb86590f041e845e3e4ccebcc18fd.tar.bz2
historical-2ecd98a947abb86590f041e845e3e4ccebcc18fd.zip
Version bumped. Added pkg_postinst and pkg_config.
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/scponly/ChangeLog11
-rw-r--r--net-misc/scponly/Manifest5
-rw-r--r--net-misc/scponly/files/digest-scponly-3.111
-rw-r--r--net-misc/scponly/metadata.xml7
-rw-r--r--net-misc/scponly/scponly-3.11.ebuild106
5 files changed, 127 insertions, 3 deletions
diff --git a/net-misc/scponly/ChangeLog b/net-misc/scponly/ChangeLog
index cd1ba4f45188..7cf2717ee889 100644
--- a/net-misc/scponly/ChangeLog
+++ b/net-misc/scponly/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/scponly
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.3 2003/10/17 20:01:01 bazik Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.4 2004/03/24 15:32:04 matsuu Exp $
+
+*scponly-3.11 (25 Mar 2004)
+
+ 25 Mar 2004; <matsuu@gentoo.org> scponly-3.11.ebuild:
+ Version bumped.
+ Added --enable-rsync-compat and --enable-chrooted-binary to configure options.
+ Added pkg_postinst and pkg_config.
17 Oct 2003; Sven Blumenstein <bazik@gentoo.org> scponly-3.8.ebuild:
Added ~sparc keyword (bug #31195)
diff --git a/net-misc/scponly/Manifest b/net-misc/scponly/Manifest
index e86549043cd2..c3b1ccf1380e 100644
--- a/net-misc/scponly/Manifest
+++ b/net-misc/scponly/Manifest
@@ -1,5 +1,8 @@
+MD5 611acd5e9a688a804291a9bfb480f86b ChangeLog 862
MD5 fbcaa99d9e2e13b52ad4aa474d7fc89f scponly-3.7.ebuild 938
MD5 884d54e76e05d1a4c9e970d594c936df scponly-3.8.ebuild 942
-MD5 44657f148d42bae2f004667fd6c74a67 ChangeLog 639
+MD5 459071a9aa726062cb838bb15b90a215 scponly-3.11.ebuild 3122
+MD5 e10a0da4fac2882942ffa8360ccdd921 metadata.xml 201
MD5 7f3245890a81d9e6c8e271517fa8b3ad files/digest-scponly-3.7 59
MD5 f0dc17e8e5f9acc8a7173578e9a8b560 files/digest-scponly-3.8 59
+MD5 e4d07123d938d81c26fa0f70de4b6a8d files/digest-scponly-3.11 60
diff --git a/net-misc/scponly/files/digest-scponly-3.11 b/net-misc/scponly/files/digest-scponly-3.11
new file mode 100644
index 000000000000..113a28e00a9b
--- /dev/null
+++ b/net-misc/scponly/files/digest-scponly-3.11
@@ -0,0 +1 @@
+MD5 cdbbc570c2bf3cad33ecf66d0af41372 scponly-3.11.tgz 83767
diff --git a/net-misc/scponly/metadata.xml b/net-misc/scponly/metadata.xml
new file mode 100644
index 000000000000..b493e619a6d4
--- /dev/null
+++ b/net-misc/scponly/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>matsuu@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/scponly/scponly-3.11.ebuild b/net-misc/scponly/scponly-3.11.ebuild
new file mode 100644
index 000000000000..f59b32744554
--- /dev/null
+++ b/net-misc/scponly/scponly-3.11.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-3.11.ebuild,v 1.1 2004/03/24 15:32:04 matsuu Exp $
+
+DESCRIPTION="A tiny psuedoshell which only permits scp and sftp"
+SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
+HOMEPAGE="http://www.sublimation.org/scponly/"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~sparc"
+IUSE=""
+
+DEPEND="virtual/glibc
+ net-misc/openssh"
+
+src_compile() {
+ PATH="${PATH}:/usr/lib/misc" ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --enable-rsync-compat \
+ --enable-chrooted-binary \
+ || die "./configure failed"
+
+ emake || die
+}
+
+src_install() {
+ make prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ CONFDIR=${D}/etc/scponly \
+ install || die
+
+ dodoc AUTHOR CHANGELOG CONTRIB README TODO
+}
+
+pkg_postinst() {
+ einfo "Execute the following command"
+ einfo "ebuild /var/db/pkg/net-misc/${PF}/${PF}.ebuild config"
+ einfo "to setup the initial database environment."
+}
+
+pkg_config() {
+ # pkg_config is based on ${S}/setup_chroot.sh.
+
+ local myuser="scponly"
+ local myhome="/home/${myuser}"
+
+ einfo "Updating /etc/shells"
+ { grep -v "^/usr/bin/scponly$" /etc/shells;
+ echo "/usr/bin/scponly"
+ } > ${T}/shells
+ mv -f ${T}/shells /etc/shells
+
+ BINARIES="/usr/lib/misc/sftp-server /bin/ls /usr/bin/scp /bin/rm /bin/ln /bin/mv /bin/chmod /bin/chown /bin/chgrp /bin/mkdir /bin/rmdir /bin/pwd /bin/groups /usr/bin/ld /bin/echo /usr/bin/rsync"
+ LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | /bin/cut -f2 -d\> | /bin/cut -f1 -d\( | /bin/grep "^ " | /bin/sort -u`
+ LDSO_LIST="/lib/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /lib/ld-linux.so.2 /usr/libexec/ld-elf.so.1"
+ for lib in $LDSO_LIST; do
+ if [ -f $lib ]; then
+ LIB_LIST="$LIB_LIST $lib"
+ fi
+ done
+ /bin/ls /lib/libnss_compat* > /dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ LIB_LIST="$LIB_LIST /lib/libnss_compat*"
+ fi
+
+ ldconfig
+ LIB_LIST="$LIB_LIST /etc/ld.so.cache /etc/ld.so.conf"
+
+ enewgroup ${myuser}
+ enewuser ${myuser} -1 /usr/sbin/scponlyc ${myhome} ${myuser}
+ if [ ! -d ${myhome} ]; then
+ /bin/install -c -d ${myhome}
+ /bin/chmod 755 ${myhome}
+ fi
+ if [ ! -d ${myhome} ]; then
+ /bin/install -c -d ${myhome}/etc
+ /bin/chown 0:0 ${myhome}/etc
+ /bin/chmod 755 ${myhome}/etc
+ fi
+ for bin in $BINARIES; do
+ /bin/install -c -d ${myhome}/`/bin/dirname $bin`
+ /bin/install -c $bin ${myhome}/$bin
+ done
+ for lib in $LIB_LIST; do
+ /bin/install -c -d ${myhome}/`/bin/dirname $lib`
+ /bin/install -c $lib ${myhome}/$lib
+ done
+
+ /bin/chown 0:0 ${myhome}
+ if [ -d ${myhome}/.ssh ]; then
+ /bin/chown 0:0 ${myhome}/.ssh
+ fi
+
+ if [ ! -d ${myhome}/incoming ]; then
+ einfo "creating ${myhome}/incoming directory for uploading files"
+ /bin/install -c -o ${myuser} -d ${myhome}/incoming
+ fi
+ /bin/chown $myuser:$myuser ${myhome}/incoming
+
+ einfo ""
+ einfo "if you experience a warning with winscp regarding groups, please install"
+ einfo "the provided hacked out fake groups program into your chroot, like so:"
+ einfo "cp groups ${myhome}/bin/groups"
+}