summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2008-01-23 13:34:42 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2008-01-23 13:34:42 +0000
commit6c2af4a518897380b7013679ccbe485f1627a7c4 (patch)
tree7e79ef5613481f9f29e9d31b59edcb6642872995 /net-misc/scponly
parentremoving some virtuals, see changelog (diff)
downloadhistorical-6c2af4a518897380b7013679ccbe485f1627a7c4.tar.gz
historical-6c2af4a518897380b7013679ccbe485f1627a7c4.tar.bz2
historical-6c2af4a518897380b7013679ccbe485f1627a7c4.zip
Removed old versions.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'net-misc/scponly')
-rw-r--r--net-misc/scponly/ChangeLog8
-rw-r--r--net-misc/scponly/Manifest50
-rw-r--r--net-misc/scponly/files/SECURITY63
-rw-r--r--net-misc/scponly/files/digest-scponly-4.33
-rw-r--r--net-misc/scponly/files/digest-scponly-4.6-r13
-rw-r--r--net-misc/scponly/files/digest-scponly-4.6-r23
-rw-r--r--net-misc/scponly/files/digest-scponly-4.6-r33
-rw-r--r--net-misc/scponly/files/scponly-4.3-getopt.patch27
-rw-r--r--net-misc/scponly/files/scponly-4.6-helper.patch97
-rw-r--r--net-misc/scponly/scponly-4.3.ebuild47
-rw-r--r--net-misc/scponly/scponly-4.6-r1.ebuild147
-rw-r--r--net-misc/scponly/scponly-4.6-r2.ebuild147
-rw-r--r--net-misc/scponly/scponly-4.6-r3.ebuild161
13 files changed, 11 insertions, 748 deletions
diff --git a/net-misc/scponly/ChangeLog b/net-misc/scponly/ChangeLog
index 9596b596f0ec..733bbe9bf848 100644
--- a/net-misc/scponly/ChangeLog
+++ b/net-misc/scponly/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/scponly
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.36 2008/01/22 10:18:21 welp Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.37 2008/01/23 13:34:41 matsuu Exp $
+
+ 23 Jan 2008; MATSUU Takuto <matsuu@gentoo.org>
+ -files/scponly-4.3-getopt.patch, -files/scponly-4.6-helper.patch,
+ -files/SECURITY, -scponly-4.3.ebuild, -scponly-4.6-r1.ebuild,
+ -scponly-4.6-r2.ebuild, -scponly-4.6-r3.ebuild:
+ Removed old versions.
22 Jan 2008; Peter Weller <welp@gentoo.org> scponly-4.8.ebuild:
Stable on amd64; bug 201726
diff --git a/net-misc/scponly/Manifest b/net-misc/scponly/Manifest
index c9fbe1ad6e8d..fa38ca63acb2 100644
--- a/net-misc/scponly/Manifest
+++ b/net-misc/scponly/Manifest
@@ -1,58 +1,16 @@
-AUX SECURITY 2778 RMD160 18b9574c6be23bf61393399af72340af03362146 SHA1 273d990e6559d7f7859616746794134e4df053f3 SHA256 6f9ddec95e684fae5c3bdb8bb0e5a72bfeaedb8d400f0a3aee61fdb7f6d64456
-MD5 648d43000da0a7f2fb4dd994d1c3d92c files/SECURITY 2778
-RMD160 18b9574c6be23bf61393399af72340af03362146 files/SECURITY 2778
-SHA256 6f9ddec95e684fae5c3bdb8bb0e5a72bfeaedb8d400f0a3aee61fdb7f6d64456 files/SECURITY 2778
-AUX scponly-4.3-getopt.patch 616 RMD160 18320020a662291ad3530a3c3bae1d9931e0f225 SHA1 95298edb73afafa0dcda07c170dd3d502c775707 SHA256 fbd37908b2d45d11e7556d750ebee7fddb624789e2276a72f386ac1d062af9b4
-MD5 c6b771b0da5de88d90f4715e2fe69e85 files/scponly-4.3-getopt.patch 616
-RMD160 18320020a662291ad3530a3c3bae1d9931e0f225 files/scponly-4.3-getopt.patch 616
-SHA256 fbd37908b2d45d11e7556d750ebee7fddb624789e2276a72f386ac1d062af9b4 files/scponly-4.3-getopt.patch 616
-AUX scponly-4.6-helper.patch 1755 RMD160 be58a67119450b3515934aa04214465a3dbb6d8e SHA1 a1c4e658e77a687d4e724c90c054dc59b0e3a8d1 SHA256 3f834abb3693e7f423f4d5277dd697b7b9a2c4cfab6e1aace60edcb7ea381543
-MD5 a9a47d32abfe8737a35cfee497fb0c30 files/scponly-4.6-helper.patch 1755
-RMD160 be58a67119450b3515934aa04214465a3dbb6d8e files/scponly-4.6-helper.patch 1755
-SHA256 3f834abb3693e7f423f4d5277dd697b7b9a2c4cfab6e1aace60edcb7ea381543 files/scponly-4.6-helper.patch 1755
-DIST scponly-4.3.tgz 94889 RMD160 780baf0a2be4b3042d721953c109c06ff0d9d1a2 SHA1 1aa08715d49c76ca0e78685b027e977acdd563c8 SHA256 e707315e4f90ccc3f882e6b21617dc4543bab77edbe40546fe230119609b6143
-DIST scponly-4.6.tgz 96578 RMD160 c30d4b02314b53dce54d2f3f8e531c18792c7f60 SHA1 d967ba69262c7675b9a0255884cf86c601d0d619 SHA256 dfa5a334d66150289a391aea4dc00d1b039c644fd1c628bdeddaa7b0710e01a7
DIST scponly-4.8.tgz 101687 RMD160 de6b58fcb8108d42a1576c69003e9136b9417869 SHA1 154de34901ce22fd9d406f6e02cddc440c435afc SHA256 1693dd678355749c5d9e48ecdd4628dbfe71d82955afde950ee8d88b5adc01cf
-EBUILD scponly-4.3.ebuild 1144 RMD160 4f54225693d8f6e7f58edf934413371d65dc8475 SHA1 7e261efa20d631471c8f8ab4518161f29931c7ab SHA256 a604cb706def445e5c03600846140b5cf93f4ace67731be03dd04dad7d8c0688
-MD5 a1d8f11af1bc69f35f41b8ab1f088c71 scponly-4.3.ebuild 1144
-RMD160 4f54225693d8f6e7f58edf934413371d65dc8475 scponly-4.3.ebuild 1144
-SHA256 a604cb706def445e5c03600846140b5cf93f4ace67731be03dd04dad7d8c0688 scponly-4.3.ebuild 1144
-EBUILD scponly-4.6-r1.ebuild 4164 RMD160 36c088bc958f9f34ec6f9ed1e1abd9c2b20dcfbb SHA1 4aa145225eb6ed3ec695ff29f4e4eac6615f1bbf SHA256 50a0fb0ec55dd82fca9895a115954d4a2478c6dbccf72804115ab20973251352
-MD5 aa5bb13b4847f4e0031a5246186a9588 scponly-4.6-r1.ebuild 4164
-RMD160 36c088bc958f9f34ec6f9ed1e1abd9c2b20dcfbb scponly-4.6-r1.ebuild 4164
-SHA256 50a0fb0ec55dd82fca9895a115954d4a2478c6dbccf72804115ab20973251352 scponly-4.6-r1.ebuild 4164
-EBUILD scponly-4.6-r2.ebuild 4022 RMD160 7077a218e40494d68e65bed1075818182fede147 SHA1 d4ce9821158c26ee926b2d07d275248719bad454 SHA256 23bdfcd5557e256c08294026b23d9a6091326f7cea18a4fa01ea7f422b2318d3
-MD5 d0b5b22758315ceb05d1dd381aed243b scponly-4.6-r2.ebuild 4022
-RMD160 7077a218e40494d68e65bed1075818182fede147 scponly-4.6-r2.ebuild 4022
-SHA256 23bdfcd5557e256c08294026b23d9a6091326f7cea18a4fa01ea7f422b2318d3 scponly-4.6-r2.ebuild 4022
-EBUILD scponly-4.6-r3.ebuild 4388 RMD160 fc1ffdd432d888bb1e61e0d5bf43065e81adf6b2 SHA1 ed82c25205891d8d74609388c1455accd6e47242 SHA256 cadf20398a10976e37a79e384095dffe9e1c74892f21aa1ebdd65d234acaec20
-MD5 321278f54dc1b884d359a9f754ac57a4 scponly-4.6-r3.ebuild 4388
-RMD160 fc1ffdd432d888bb1e61e0d5bf43065e81adf6b2 scponly-4.6-r3.ebuild 4388
-SHA256 cadf20398a10976e37a79e384095dffe9e1c74892f21aa1ebdd65d234acaec20 scponly-4.6-r3.ebuild 4388
EBUILD scponly-4.8.ebuild 4283 RMD160 2e555f2bf02554ccf2c6005476c90e637690e3be SHA1 a73ad3c22ba463951c3827f5b1a515fd3e621a13 SHA256 ea3d3d88d8079353a846129de71679bcdf7021f2f91593a0ee95d218a9c11a90
MD5 e5c00df7224daee74569fbe3d66ed32a scponly-4.8.ebuild 4283
RMD160 2e555f2bf02554ccf2c6005476c90e637690e3be scponly-4.8.ebuild 4283
SHA256 ea3d3d88d8079353a846129de71679bcdf7021f2f91593a0ee95d218a9c11a90 scponly-4.8.ebuild 4283
-MISC ChangeLog 5093 RMD160 4dd9185e180c6b4455c4cc0a898dbd6a2ee03e10 SHA1 d1386c508fd2a10b3bea7723bae7a861fcd18032 SHA256 bee101cd979af04c7345ff5c709573f378d43afc7cb851e9f5f113d9d8ba6a0f
-MD5 80991cb5f6883789483c0034a536da50 ChangeLog 5093
-RMD160 4dd9185e180c6b4455c4cc0a898dbd6a2ee03e10 ChangeLog 5093
-SHA256 bee101cd979af04c7345ff5c709573f378d43afc7cb851e9f5f113d9d8ba6a0f ChangeLog 5093
+MISC ChangeLog 5351 RMD160 5218e2bc23cb420a79f21f5b449d67aea43ed3fd SHA1 514f74aabde1ff343b4cdeee7e022954a2d08544 SHA256 346270b495edf12ccf642e09545a1d200b21f4c910a567cd333ce25ce14af711
+MD5 b81798aa405fbb0eaeb772ed06d10d57 ChangeLog 5351
+RMD160 5218e2bc23cb420a79f21f5b449d67aea43ed3fd ChangeLog 5351
+SHA256 346270b495edf12ccf642e09545a1d200b21f4c910a567cd333ce25ce14af711 ChangeLog 5351
MISC metadata.xml 222 RMD160 23efe87c16ebc9fbeb91e894ab372cc3bb66bc49 SHA1 a5d1e2317ae207bbd664aebe986687948fdd984a SHA256 38ef3457fd14e6872985f0e100fde79d0b8a9dbc4fc39ceef780c8c5abc5f337
MD5 ae35aecf3e681586ace5f8c15866aed7 metadata.xml 222
RMD160 23efe87c16ebc9fbeb91e894ab372cc3bb66bc49 metadata.xml 222
SHA256 38ef3457fd14e6872985f0e100fde79d0b8a9dbc4fc39ceef780c8c5abc5f337 metadata.xml 222
-MD5 542847c08658e55b695b0c8902de2d24 files/digest-scponly-4.3 223
-RMD160 04e9099215eee778131256381ad26296a4b0fe68 files/digest-scponly-4.3 223
-SHA256 b5099a4618d86784c9a290396a52f5dfd484d32de6b45d5fe70065f758f4901a files/digest-scponly-4.3 223
-MD5 1608ee46d01cebc4e9702f6eb819d184 files/digest-scponly-4.6-r1 223
-RMD160 d66fccafddfaf4df2cf951828b83c14ef666a7dc files/digest-scponly-4.6-r1 223
-SHA256 b0f8518cea81ae04a0fcf666acf00ec50e751579462104854362e3112eb4adac files/digest-scponly-4.6-r1 223
-MD5 1608ee46d01cebc4e9702f6eb819d184 files/digest-scponly-4.6-r2 223
-RMD160 d66fccafddfaf4df2cf951828b83c14ef666a7dc files/digest-scponly-4.6-r2 223
-SHA256 b0f8518cea81ae04a0fcf666acf00ec50e751579462104854362e3112eb4adac files/digest-scponly-4.6-r2 223
-MD5 1608ee46d01cebc4e9702f6eb819d184 files/digest-scponly-4.6-r3 223
-RMD160 d66fccafddfaf4df2cf951828b83c14ef666a7dc files/digest-scponly-4.6-r3 223
-SHA256 b0f8518cea81ae04a0fcf666acf00ec50e751579462104854362e3112eb4adac files/digest-scponly-4.6-r3 223
MD5 5b7a233fc90d99d76251e71061dfd6fc files/digest-scponly-4.8 226
RMD160 7032569ef0a23f5b81686f5b9ffd540a132b6cc8 files/digest-scponly-4.8 226
SHA256 a201b0f2a7ea20fe8764fc478dad1cfa221291c5a0cdc3cb1bf505d1c15ff956 files/digest-scponly-4.8 226
diff --git a/net-misc/scponly/files/SECURITY b/net-misc/scponly/files/SECURITY
deleted file mode 100644
index a1f6c9c8c71c..000000000000
--- a/net-misc/scponly/files/SECURITY
+++ /dev/null
@@ -1,63 +0,0 @@
-SECURITY
-
-Here are a few important things to know about security and scponly. This is a
-brief attempt to document what should be done to correctly secure scponly.
-
-1) Configure scponly to use a chroot
-
-2) Configure scponly to use as few extra options and services as possible. If
- possible, try to use something similar to the following:
-
- ./configure --disable-wildcards --enable-chrooted-binary \
- --disable-gftp-compat --with-sftp-server=/path/to/sftp-server
-
-3) NOTE THE FOLLOWING SECURITY RISKS:
-
- -- by enabling wildcards, there is a slightly higher chance of an exploit
- -- by enabling scp and/or scp compatibility, more programs will need to be
- installed in the chroot which increases the risk
- -- CAUTION: by enabling svn/svnserve the user WILL BE ABLE TO EXECUTE
- SCRIPTS OR PROGRAMS INDIRECTLY! svn and svnserve will try to execute
- pre-commit, post-commit hooks, as well as a few others. These files
- have specific filenames at specific locations relative to the svn
- repository root. Thus, unless you are *very* careful about security,
- the user WILL BE ABLE TO EXECUTE SCRIPTS OR PROGRAMS INDIRECTLY! This
- can be prevented by a careful configuration.
- -- The following programs use configuration files that might allow the user
- to bypass security restrictions placed on command line arguments:
-
- svn, svnserve, rsync, and unison
-
-4) Make sure that all files required for the chroot have the IMMUTABLE and
- UNDELETABLE bits set. Other bits might also be prudent. See: man 1 chattr.
-
-5) Only put files in the chroot that are absolutely essential to its
- functionality.
-
-6) Make sure the following directories are locked down appropriately:
-
- ~/.ssh, ~/.unison, ~/.subversion
-
- NOTE: depending on file permissions in the above, ssh, unison, and
- subversion may not work correctly.
-
-7) Make sure that every directory the users have write permissions to are
- on a filesystem that is mounted NODEV, NOEXEC. Eg. Make sure that they
- cannot execute files that they have permissions to upload. They should
- also not need permissions to create any devices. If the user can't execute
- any files that he has access to upload, then you need not worry about the
- security problems referencing svn/svnserve above!
-
-8) Monitor your logs! If you start to see something funny, odd, or strange in
- the logs, please let us know so that we can investigate and make sure any
- problems are resolved.
-
-9) Stay up-to-date with the scponly installs. We don't have releases too
- often, but the changes we do make are usually important!
-
-10) Enjoy!
-
-Lastly, if you have other suggestions and thoughts that would help secure an
-scponly install, please send them to us!
-
-Thanks for using scponly!
diff --git a/net-misc/scponly/files/digest-scponly-4.3 b/net-misc/scponly/files/digest-scponly-4.3
deleted file mode 100644
index 30eb3e8ab1da..000000000000
--- a/net-misc/scponly/files/digest-scponly-4.3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 2cef26fe5ed740031a067f189c293e77 scponly-4.3.tgz 94889
-RMD160 780baf0a2be4b3042d721953c109c06ff0d9d1a2 scponly-4.3.tgz 94889
-SHA256 e707315e4f90ccc3f882e6b21617dc4543bab77edbe40546fe230119609b6143 scponly-4.3.tgz 94889
diff --git a/net-misc/scponly/files/digest-scponly-4.6-r1 b/net-misc/scponly/files/digest-scponly-4.6-r1
deleted file mode 100644
index 7db9b807bbdd..000000000000
--- a/net-misc/scponly/files/digest-scponly-4.6-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0425cb868cadd026851238452f1db907 scponly-4.6.tgz 96578
-RMD160 c30d4b02314b53dce54d2f3f8e531c18792c7f60 scponly-4.6.tgz 96578
-SHA256 dfa5a334d66150289a391aea4dc00d1b039c644fd1c628bdeddaa7b0710e01a7 scponly-4.6.tgz 96578
diff --git a/net-misc/scponly/files/digest-scponly-4.6-r2 b/net-misc/scponly/files/digest-scponly-4.6-r2
deleted file mode 100644
index 7db9b807bbdd..000000000000
--- a/net-misc/scponly/files/digest-scponly-4.6-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0425cb868cadd026851238452f1db907 scponly-4.6.tgz 96578
-RMD160 c30d4b02314b53dce54d2f3f8e531c18792c7f60 scponly-4.6.tgz 96578
-SHA256 dfa5a334d66150289a391aea4dc00d1b039c644fd1c628bdeddaa7b0710e01a7 scponly-4.6.tgz 96578
diff --git a/net-misc/scponly/files/digest-scponly-4.6-r3 b/net-misc/scponly/files/digest-scponly-4.6-r3
deleted file mode 100644
index 7db9b807bbdd..000000000000
--- a/net-misc/scponly/files/digest-scponly-4.6-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0425cb868cadd026851238452f1db907 scponly-4.6.tgz 96578
-RMD160 c30d4b02314b53dce54d2f3f8e531c18792c7f60 scponly-4.6.tgz 96578
-SHA256 dfa5a334d66150289a391aea4dc00d1b039c644fd1c628bdeddaa7b0710e01a7 scponly-4.6.tgz 96578
diff --git a/net-misc/scponly/files/scponly-4.3-getopt.patch b/net-misc/scponly/files/scponly-4.3-getopt.patch
deleted file mode 100644
index bed8ea86dd5d..000000000000
--- a/net-misc/scponly/files/scponly-4.3-getopt.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- scponly-4.3/helper.c.orig 2005-12-28 10:23:28.000000000 +0100
-+++ scponly-4.3/helper.c 2005-12-28 10:25:21.000000000 +0100
-@@ -39,7 +39,9 @@
-
- extern char *optarg;
- extern int optind;
-+#ifdef HAVE_OPTRESET
- extern int optreset;
-+#endif
-
- #ifdef UNIX_COMPAT
- char* solaris_needs_strsep(char** str, char* delims)
-@@ -160,8 +162,14 @@
- * now use getopt to look for our problem option
- */
- #ifdef HAVE_GETOPT
-+#ifdef HAVE_OPTRESET
- optreset=1;
-+#endif
-+#ifdef __GLIBC__
-+ optind=0;
-+#else
- optind=1;
-+#endif
- /*
- * tell getopt to only be strict if the 'opts' is well defined
- */
diff --git a/net-misc/scponly/files/scponly-4.6-helper.patch b/net-misc/scponly/files/scponly-4.6-helper.patch
deleted file mode 100644
index 875de04fc1ce..000000000000
--- a/net-misc/scponly/files/scponly-4.6-helper.patch
+++ /dev/null
@@ -1,97 +0,0 @@
---- scponly-4.6/helper.c.orig Tue Jan 31 22:04:16 2006
-+++ scponly-4.6/helper.c Thu Mar 23 00:53:01 2006
-@@ -133,6 +133,78 @@
- char **tmpptr=av;
- int ch;
- int ac=0;
-+ char **av2 = NULL;
-+
-+ /*
-+ * first count the arguments in the vector
-+ */
-+ tmpptr=av;
-+ while (*tmpptr!=NULL)
-+ {
-+ *tmpptr++;
-+ ac++;
-+ }
-+
-+#ifdef PROG_RSYNC
-+ if (exact_match(PROG_RSYNC, av[0]))
-+ {
-+ /*
-+ * these are the long opts (beginning "--") which we
-+ * allow for rsync
-+ */
-+ char *permitted_long_opts[] = {
-+ "--server",
-+ "--sender",
-+ "--delete",
-+ NULL /* last element must be NULL */
-+ };
-+
-+ /*
-+ * make a copy of the args excluding any permitted long
-+ * options
-+ */
-+ int i, j;
-+ av2 = malloc(ac * sizeof *av2);
-+ av2[0] = av[0];
-+ for (i = 1, j = 1; i < ac; ++i)
-+ {
-+ if (0 == strncmp(av[i], "--", 2))
-+ {
-+ char **p;
-+ /*
-+ * test against permitted opts
-+ */
-+ for (p = permitted_long_opts; *p; ++p)
-+ {
-+ if (exact_match(av[i], *p))
-+ break;
-+ }
-+
-+ if (*p)
-+ {
-+ /*
-+ * permitted; skip this one
-+ */
-+ continue;
-+ }
-+ else
-+ {
-+ /*
-+ * no match
-+ */
-+ syslog(LOG_ERR, "option %s is not permitted for use with %s (%s)",
-+ av[i], cmdarg->name, logstamp());
-+ return 1;
-+ }
-+ }
-+ av2[j++] = av[i];
-+
-+ }
-+ av2[j] = NULL;
-+ ac = j;
-+ av = av2;
-+ }
-+#endif /* PROG_RSYNC */
-
- while (cmdarg != NULL)
- {
-@@ -151,15 +223,6 @@
- */
- if (1 == cmdarg->getoptflag)
- {
-- /*
-- * first count the arguments in the vector
-- */
-- tmpptr=av;
-- while (*tmpptr!=NULL)
-- {
-- *tmpptr++;
-- ac++;
-- }
- /*
- * now use getopt to look for our problem option
- */
diff --git a/net-misc/scponly/scponly-4.3.ebuild b/net-misc/scponly/scponly-4.3.ebuild
deleted file mode 100644
index 970ba4992c59..000000000000
--- a/net-misc/scponly/scponly-4.3.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.3.ebuild,v 1.5 2006/03/01 07:56:29 hansmi Exp $
-
-inherit eutils
-
-DESCRIPTION="A tiny pseudoshell which only permits scp and sftp"
-HOMEPAGE="http://www.sublimation.org/scponly/"
-SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="amd64 ppc sparc x86"
-IUSE=""
-
-DEPEND="virtual/libc
- net-misc/openssh"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- epatch ${FILESDIR}/${P}-getopt.patch
-}
-
-src_compile() {
- PATH="${PATH}:/usr/$(get_libdir)/misc" \
- econf \
- --enable-scp-compat \
- --enable-rsync-compat \
- --enable-chrooted-binary \
- || die "./configure failed"
-# --enable-svn-compat\ # subversion SCS cli compatibility
-# --enable-svnserv-compat\ # subversion SCS svnserve compatibility
- emake || die
-}
-
-src_install() {
- make DESTDIR=${D} install || die
-
- dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README TODO
- dodoc setup_chroot.sh
-}
-
-pkg_postinst() {
- einfo "Setting up chroot in pkg_postinst was removed. Please setup manually."
-}
diff --git a/net-misc/scponly/scponly-4.6-r1.ebuild b/net-misc/scponly/scponly-4.6-r1.ebuild
deleted file mode 100644
index f25a59ee1add..000000000000
--- a/net-misc/scponly/scponly-4.6-r1.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.6-r1.ebuild,v 1.3 2006/09/14 16:51:27 matsuu Exp $
-
-inherit eutils
-
-DESCRIPTION="A tiny pseudoshell which only permits scp and sftp"
-HOMEPAGE="http://www.sublimation.org/scponly/"
-SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="subversion"
-
-DEPEND="virtual/libc
- net-misc/openssh
- subversion? ( dev-util/subversion )"
-
-myuser="scponly"
-myhome="/home/${myuser}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # Bug 125796
- epatch "${FILESDIR}"/${P}-helper.patch
-}
-
-src_compile() {
- PATH="${PATH}:/usr/$(get_libdir)/misc" \
- econf \
- --enable-scp-compat \
- --enable-winscp-compat \
- --enable-rsync-compat \
- --enable-chrooted-binary \
- $(use_enable subversion svn-compat) \
- $(use_enable subversion svnserv-compat) \
- || die "./configure failed"
- emake || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
-
- dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README TODO
- dodoc setup_chroot.sh
-}
-
-pkg_postinst() {
- einfo "You might want to run:"
- einfo "\"emerge --config =${CATEGORY}/${PF}\""
- einfo "to setup the chroot."
- einfo "Otherwise you will have to setup chroot manually."
-
- # two slashes ('//') are used by scponlyc to determine the chroot point.
- enewgroup ${myuser}
- enewuser ${myuser} -1 /usr/sbin/scponlyc ${myhome}// ${myuser}
-}
-
-pkg_config() {
- # pkg_postinst is based on ${S}/setup_chroot.sh.
-
- einfo "Updating /etc/shells"
- { grep -v "^/usr/bin/scponly$" /etc/shells;
- echo "/usr/bin/scponly"
- } > ${T}/shells
- cp ${T}/shells /etc/shells
-
- { grep -v "^/usr/sbin/scponlyc$" /etc/shells;
- echo "/usr/sbin/scponlyc"
- } > ${T}/shells
- cp ${T}/shells /etc/shells
-
- BINARIES="/usr/$(get_libdir)/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"
- if built_with_use ${PN} subversion; then
- BINARIES="$BINARIES /usr/bin/svn /usr/bin/svnserve"
- fi
- LIB_LIST=`/usr/bin/ldd $BINARIES 2> /dev/null | /bin/cut -f2 -d\> | /bin/cut -f1 -d\( | /bin/grep "^[ ]" | /bin/sort -u`
- LDSO_LIST="/$(get_libdir)/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /$(get_libdir)/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 /$(get_libdir)/libnss_compat* > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- LIB_LIST="$LIB_LIST /$(get_libdir)/libnss_compat*"
- fi
-
- ldconfig
- LIB_LIST="$LIB_LIST /etc/ld.so.cache /etc/ld.so.conf"
-
- 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
- if [ ! -d ${myhome}/$(get_libdir) ]; then
- /bin/install -c -d ${myhome}/$(get_libdir)
- /bin/chmod 755 ${myhome}/$(get_libdir)
- fi
- if [ ! -d ${myhome}/lib ]; then
- /usr/bin/ln -s $(get_libdir) ${myhome}/lib
- fi
- if [ ! -d ${myhome}/usr/$(get_libdir) ]; then
- /bin/install -c -d ${myhome}/usr/$(get_libdir)
- /bin/chmod 755 ${myhome}/usr/$(get_libdir)
- fi
- if [ ! -d ${myhome}/usr/lib ]; then
- /usr/bin/ln -s $(get_libdir) ${myhome}/usr/lib
- 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
-
- if [ ! -e ${myhome}/etc/passwd ]; then
- grep "^${myuser}" /etc/passwd > ${myhome}/etc/passwd
- fi
-
- # Bug 135505
- if [ ! -e ${myhome}/dev/null ]; then
- /bin/install -c -d ${myhome}/dev
- /bin/mknod -m 777 ${myhome}/dev/null c 1 3
- fi
-}
diff --git a/net-misc/scponly/scponly-4.6-r2.ebuild b/net-misc/scponly/scponly-4.6-r2.ebuild
deleted file mode 100644
index b4c5ab8ca894..000000000000
--- a/net-misc/scponly/scponly-4.6-r2.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.6-r2.ebuild,v 1.2 2007/08/23 05:11:32 kumba Exp $
-
-inherit eutils
-
-DESCRIPTION="A tiny pseudoshell which only permits scp and sftp"
-HOMEPAGE="http://www.sublimation.org/scponly/"
-SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
-IUSE="subversion"
-
-DEPEND="virtual/libc
- net-misc/openssh
- subversion? ( dev-util/subversion )"
-
-myuser="scponly"
-myhome="/home/${myuser}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # Bug 125796
- epatch "${FILESDIR}"/${P}-helper.patch
-}
-
-src_compile() {
- PATH="${PATH}:/usr/$(get_libdir)/misc" \
- econf \
- --enable-scp-compat \
- --enable-winscp-compat \
- --enable-rsync-compat \
- --enable-chrooted-binary \
- $(use_enable subversion svn-compat) \
- $(use_enable subversion svnserv-compat) \
- || die "./configure failed"
- emake || die
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
-
- dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README TODO
- dodoc setup_chroot.sh
-}
-
-pkg_postinst() {
- einfo "You might want to run:"
- einfo "\"emerge --config =${CATEGORY}/${PF}\""
- einfo "to setup the chroot."
- einfo "Otherwise you will have to setup chroot manually."
-
- # two slashes ('//') are used by scponlyc to determine the chroot point.
- enewgroup ${myuser}
- enewuser ${myuser} -1 /usr/sbin/scponlyc ${myhome}// ${myuser}
-}
-
-pkg_config() {
- # pkg_postinst is based on ${S}/setup_chroot.sh.
-
- einfo "Updating /etc/shells"
- { grep -v "^/usr/bin/scponly$" /etc/shells;
- echo "/usr/bin/scponly"
- } > ${T}/shells
- cp ${T}/shells /etc/shells
-
- { grep -v "^/usr/sbin/scponlyc$" /etc/shells;
- echo "/usr/sbin/scponlyc"
- } > ${T}/shells
- cp ${T}/shells /etc/shells
-
- BINARIES="/usr/$(get_libdir)/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"
- if built_with_use ${PN} subversion; then
- BINARIES="$BINARIES /usr/bin/svn /usr/bin/svnserve"
- fi
- LIB_LIST=`ldd $BINARIES 2> /dev/null | cut -f2 -d\> | cut -f1 -d\( | grep "^[ ]" | sort -u`
- LDSO_LIST="/$(get_libdir)/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /$(get_libdir)/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
- ls /$(get_libdir)/libnss_compat* > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- LIB_LIST="$LIB_LIST /$(get_libdir)/libnss_compat*"
- fi
-
- ldconfig
- LIB_LIST="$LIB_LIST /etc/ld.so.cache /etc/ld.so.conf"
-
- if [ ! -d ${myhome} ]; then
- install -c -d ${myhome}
- chmod 755 ${myhome}
- fi
- if [ ! -d ${myhome} ]; then
- install -c -d ${myhome}/etc
- chown 0:0 ${myhome}/etc
- chmod 755 ${myhome}/etc
- fi
- if [ ! -d ${myhome}/$(get_libdir) ]; then
- install -c -d ${myhome}/$(get_libdir)
- chmod 755 ${myhome}/$(get_libdir)
- fi
- if [ ! -d ${myhome}/lib ]; then
- ln -s $(get_libdir) ${myhome}/lib
- fi
- if [ ! -d ${myhome}/usr/$(get_libdir) ]; then
- install -c -d ${myhome}/usr/$(get_libdir)
- chmod 755 ${myhome}/usr/$(get_libdir)
- fi
- if [ ! -d ${myhome}/usr/lib ]; then
- ln -s $(get_libdir) ${myhome}/usr/lib
- fi
-
- for bin in $BINARIES; do
- install -c -d ${myhome}/`/bin/dirname $bin`
- install -c $bin ${myhome}/$bin
- done
- for lib in $LIB_LIST; do
- install -c -d ${myhome}/`/bin/dirname $lib`
- install -c $lib ${myhome}/$lib
- done
-
- chown 0:0 ${myhome}
- if [ -d ${myhome}/.ssh ]; then
- chown 0:0 ${myhome}/.ssh
- fi
-
- if [ ! -d ${myhome}/incoming ]; then
- einfo "creating ${myhome}/incoming directory for uploading files"
- install -c -o ${myuser} -d ${myhome}/incoming
- fi
- chown $myuser:$myuser ${myhome}/incoming
-
- if [ ! -e ${myhome}/etc/passwd ]; then
- grep "^${myuser}" /etc/passwd > ${myhome}/etc/passwd
- fi
-
- # Bug 135505
- if [ ! -e ${myhome}/dev/null ]; then
- install -c -d ${myhome}/dev
- mknod -m 777 ${myhome}/dev/null c 1 3
- fi
-}
diff --git a/net-misc/scponly/scponly-4.6-r3.ebuild b/net-misc/scponly/scponly-4.6-r3.ebuild
deleted file mode 100644
index ea3d57691a06..000000000000
--- a/net-misc/scponly/scponly-4.6-r3.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.6-r3.ebuild,v 1.1 2007/12/11 16:18:48 matsuu Exp $
-
-inherit eutils
-
-DESCRIPTION="A tiny pseudoshell which only permits scp and sftp"
-HOMEPAGE="http://www.sublimation.org/scponly/"
-SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
-IUSE="rsync subversion"
-
-DEPEND="virtual/libc
- net-misc/openssh
- rsync? ( net-misc/rsync )
- subversion? ( dev-util/subversion )"
-
-myuser="scponly"
-myhome="/home/${myuser}"
-
-pkg_setup() {
- if use subversion || use rsync ; then
- ewarn
- ewarn "read the \"${FILESDIR}/SECURITY\" document before enabling 'rsync' or 'subversion' USE flag"
- ewarn
- ebeep 5
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # Bug 125796
- epatch "${FILESDIR}"/${P}-helper.patch
-}
-
-src_compile() {
- PATH="${PATH}:/usr/$(get_libdir)/misc" \
- econf \
- --enable-chrooted-binary \
- --enable-scp-compat \
- --enable-winscp-compat \
- $(use_enable rsync rsync-compat) \
- $(use_enable subversion svn-compat) \
- $(use_enable subversion svnserv-compat) \
- || die "./configure failed"
- emake || die
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
-
- dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README TODO
- dodoc "${FILESDIR}"/SECURITY
- dodoc setup_chroot.sh
-}
-
-pkg_postinst() {
- elog "You might want to run:"
- elog "\"emerge --config =${CATEGORY}/${PF}\""
- elog "to setup the chroot."
- elog "Otherwise you will have to setup chroot manually."
-
- # two slashes ('//') are used by scponlyc to determine the chroot point.
- enewgroup "${myuser}"
- enewuser "${myuser}" -1 /usr/sbin/scponlyc "${myhome}//" "${myuser}"
-}
-
-pkg_config() {
- # pkg_postinst is based on ${S}/setup_chroot.sh.
-
- einfo "Updating /etc/shells"
- { grep -v "^/usr/bin/scponly$" /etc/shells;
- echo "/usr/bin/scponly"
- } > "${T}"/shells
- cp "${T}"/shells /etc/shells
-
- { grep -v "^/usr/sbin/scponlyc$" /etc/shells;
- echo "/usr/sbin/scponlyc"
- } > "${T}"/shells
- cp "${T}"/shells /etc/shells
-
- BINARIES="/usr/$(get_libdir)/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"
- if built_with_use =${CATEGORY}/${PF} rsync; then
- BINARIES="$BINARIES /usr/bin/rsync"
- fi
- if built_with_use =${CATEGORY}/${PF} subversion; then
- BINARIES="$BINARIES /usr/bin/svn /usr/bin/svnserve"
- fi
- LIB_LIST=`ldd $BINARIES 2> /dev/null | cut -f2 -d\> | cut -f1 -d\( | grep "^[ ]" | sort -u`
- LDSO_LIST="/$(get_libdir)/ld.so /libexec/ld-elf.so /libexec/ld-elf.so.1 /usr/libexec/ld.so /$(get_libdir)/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
- ls /$(get_libdir)/libnss_compat* > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- LIB_LIST="$LIB_LIST /$(get_libdir)/libnss_compat*"
- fi
-
- ldconfig
- LIB_LIST="$LIB_LIST /etc/ld.so.cache /etc/ld.so.conf"
-
- if [ ! -d ${myhome} ]; then
- install -c -d ${myhome}
- chmod 755 ${myhome}
- fi
- if [ ! -d ${myhome} ]; then
- install -c -d ${myhome}/etc
- chown 0:0 ${myhome}/etc
- chmod 755 ${myhome}/etc
- fi
- if [ ! -d ${myhome}/$(get_libdir) ]; then
- install -c -d ${myhome}/$(get_libdir)
- chmod 755 ${myhome}/$(get_libdir)
- fi
- if [ ! -d ${myhome}/lib ]; then
- ln -s $(get_libdir) ${myhome}/lib
- fi
- if [ ! -d ${myhome}/usr/$(get_libdir) ]; then
- install -c -d ${myhome}/usr/$(get_libdir)
- chmod 755 ${myhome}/usr/$(get_libdir)
- fi
- if [ ! -d ${myhome}/usr/lib ]; then
- ln -s $(get_libdir) ${myhome}/usr/lib
- fi
-
- for bin in $BINARIES; do
- install -c -d ${myhome}/`/bin/dirname $bin`
- install -c $bin ${myhome}/$bin
- done
- for lib in $LIB_LIST; do
- install -c -d ${myhome}/`/bin/dirname $lib`
- install -c $lib ${myhome}/$lib
- done
-
- chown 0:0 ${myhome}
- if [ -d ${myhome}/.ssh ]; then
- chown 0:0 ${myhome}/.ssh
- fi
-
- if [ ! -d ${myhome}/incoming ]; then
- einfo "creating ${myhome}/incoming directory for uploading files"
- install -c -o ${myuser} -d ${myhome}/incoming
- fi
- chown $myuser:$myuser ${myhome}/incoming
-
- if [ ! -e ${myhome}/etc/passwd ]; then
- grep "^${myuser}" /etc/passwd > ${myhome}/etc/passwd
- fi
-
- # Bug 135505
- if [ ! -e ${myhome}/dev/null ]; then
- install -c -d ${myhome}/dev
- mknod -m 777 ${myhome}/dev/null c 1 3
- fi
-}