diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2014-02-11 18:38:43 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2014-02-11 18:38:43 +0000 |
commit | 1aeafbbaa9920e2b2f6f93334dd3a2f412a381d5 (patch) | |
tree | 666c648f7f28660472405583b2f08e98d6bd7093 /net-misc | |
parent | Remove Unicode character from uwsgi_plugins.desc to work around bug 498748 fo... (diff) | |
download | historical-1aeafbbaa9920e2b2f6f93334dd3a2f412a381d5.tar.gz historical-1aeafbbaa9920e2b2f6f93334dd3a2f412a381d5.tar.bz2 historical-1aeafbbaa9920e2b2f6f93334dd3a2f412a381d5.zip |
old
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/scponly/ChangeLog | 5 | ||||
-rw-r--r-- | net-misc/scponly/Manifest | 23 | ||||
-rw-r--r-- | net-misc/scponly/scponly-4.8-r4.ebuild | 290 |
3 files changed, 5 insertions, 313 deletions
diff --git a/net-misc/scponly/ChangeLog b/net-misc/scponly/ChangeLog index 539dc1393fef..b6738558afff 100644 --- a/net-misc/scponly/ChangeLog +++ b/net-misc/scponly/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-misc/scponly # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.60 2014/01/26 12:17:45 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/ChangeLog,v 1.61 2014/02/11 18:38:37 mr_bones_ Exp $ + + 11 Feb 2014; Michael Sterrett <mr_bones_@gentoo.org> -scponly-4.8-r4.ebuild: + old 26 Jan 2014; Agostino Sarubbo <ago@gentoo.org> scponly-4.8-r5.ebuild: Stable for sparc, wrt bug #495886 diff --git a/net-misc/scponly/Manifest b/net-misc/scponly/Manifest index 37c53f95c1ef..522d9b87b947 100644 --- a/net-misc/scponly/Manifest +++ b/net-misc/scponly/Manifest @@ -1,27 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX scponly-4.8-gcc4.4.0.patch 571 SHA256 bf89c4b56552654140c93b5cf3090370c24ee20e5870f0cf0df76218e52e15b2 SHA512 2e215ab2c39bb0550345725d3d509354be88144000072e5e14eda9f0ecb1bcc4c418e76d9db85ef6d6568962efc4472fe28d855e15adfe2bc5ba78c69d293a12 WHIRLPOOL 9853aa544070fae241e48da11821adccfb87d7229330dd01d72ccc097ae2f9bc57385d1d1739c8e9f2c5e4fbdcd7820ebdf8a18a74129ca4a57a067ff4956dbd AUX scponly-4.8-rsync.patch 7838 SHA256 bfab1408ad8cfdfd8fc7f9b583c57a5c6b73be36cb3955db46e4c892acd7e55e SHA512 37885c9b46422ac034182f9c9f230b4e806ce8c894ebb6c621f0e2b3d5f46c91db902c2dae6aefe5471907025d400320e4eff37cc7c5cc4c6f7d8c88a38e53f8 WHIRLPOOL b5114140169e4937f45b52b34db8de37aa03685a1810b47fcc1f7f20136f500551e2673ac8396d6c059b78b47028730f901cee208500939454e3333eb2fe5eba DIST scponly-4.8.tgz 101687 SHA256 1693dd678355749c5d9e48ecdd4628dbfe71d82955afde950ee8d88b5adc01cf SHA512 134c008a7377cef7b8e0be483df8413e162a515967147f561d23b72bdef3dfbe70a8313811dfff6372b88f15c1ac8a4385831fcf329261276993c64d5040f29b WHIRLPOOL 31ed4fda62484dbaa6eb678635a916db3e191ab98bb7ed0e7f6e794ef7d0dac0251e51bf7e627d48c00b17d550ce6dc0ed196fdfa3c2379ca7feec5544b200ba -EBUILD scponly-4.8-r4.ebuild 8824 SHA256 90f10e69bfaab8cbb994fd5847ff869bf5e5e1688b9d64c63bbca632a6077d5f SHA512 bba1c12c7e5c043f62773ccffde68b51925d260f475bcbced7f2870a97c1466eec63aa14dad8431b30985fbc6c50a61088fff1eb3cdb9a07cdf9768b15ce142b WHIRLPOOL 61460750302b7864c0860b5429759f15d0acb299a12430ea2ca2af77ca195bf01e27ef48e2b76e82d4337a97da5c1872b050cd27abd4dc20ad108dc4ba988a24 EBUILD scponly-4.8-r5.ebuild 6951 SHA256 5cbe02e48ca39dfa624e744172a829bb37d3a3f0a08a8ba7cd90df2fcff081a7 SHA512 887ec4582ca3fef2e40cbe957b59614465923db52bd6e779fd3e6f9ab08b94b59dc472a2e38406f7c18ddd86be3cb95c167820d8005393745dbfd1f2789a3dff WHIRLPOOL 2b4c8e0d81e42b5106cfcf690630b560da1f478575ed0ab62635bf45838f7398d91a063ae7453ebb4a5b518ac18e7ce45a328901a130db17c3073a69fddb0954 -MISC ChangeLog 8459 SHA256 318fad6a6b42654428fca54e8b79b4bfde1f60f84fd359271c6194f6645f69d9 SHA512 bd3a792a951465f0cee9dcf48cc2efa985a2fef13902be6e5eed619e3b8f02ab383f85b81049e18691077dde7fd953a82b7c5e84e383d9869dfdcfd0a6d6888f WHIRLPOOL ecd92388e57a0f126e23a95c8794d719d447fc3ed95794d312daa5ee09583c1aaa5e929f102506c11de904b90ba94698ce8b22f7e6c889c3dff56c9488438e71 +MISC ChangeLog 8551 SHA256 d6aaf0ed101807fb2676f650a6db0ea5e696b120fb430dfa8a78723e1b362061 SHA512 884cc22a36b983cb3304547333a475726878f8a029416a17473a00ecb1c587d3418a8c7f019f5ed7e63a1a8caf4797ce51975612cc6a723e6495150981510d80 WHIRLPOOL 25f1c6416aeaeb7375a39ff8bf6ef2b21b1410f6cf32972da4ed57b912f064b482f81dafa0b4e4872a1fbadd25f1eb1104d95e074470ddd052c14be33fbaae59 MISC metadata.xml 1412 SHA256 c252f2a7e0b4bc1ffd8eae587ecdc6e049afef2d8e5908f396d0c1af17a3e38e SHA512 4e480de498e90bc616f88b5a9323c619b08cbc9b3e3d42f6b6984cd9a1ee6c2f2792eb3aa943e1f35dd901c0a3d5019e132f1171a00ec22013e64fb24a58779f WHIRLPOOL 02d7339c15e4b70e20eae52d785de0592305847d496fc9e87fbf4bc626d9ff2c8b6445ddeb0894eafb6b5b8534439a166c3655fa1975876b4885b4ffd63bd8e5 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQIcBAEBCAAGBQJS5PzqAAoJELp701BxlEWf7k8P/jdsPYvtPV+g0ETnqwEMD7Te -Ocp5Rv4jaYrJXrP+CF1NI/nqNZWHWR5iqGXbUoYif2kfBSNsU+V04riysflB053Q -Hf9J32OLHr4ERqsPdf63HLLUJXu1f+3rNm0oYko0m2oBvzYZM0az8/H46Mmqd4f4 -6IQh8GcnGqePDUZ+fTmlcu/IGTLm3bgt1Uo0Ga6K9k1smC2De7M5cJe/DUmEj09/ -IlwC7WQZg8CuX3cXiQXpyI7jlWp9B2GhBkNJc6rlgWxqg8oeGSPnmmv25XMkS3Ew -cXuUuRgm4VdYL2iPxQaT6L6vK34l8NpBCYsHR+GsIhjHGuWZXVy74V2bzAODv5gy -k4/SuC3GN1WX5AiV+XV1eq1sPaQBaRS5HoIpiiXQxjJ2Z+HNGftXlWHvrjhYTfjo -FjgCZfGgntzSBpQC7/V9DeQ2o5saD1OXy5k/rzme6HZYSBiyL7vj/ZGrAg7fJfBx -74cN67CM8mUWLkymv6Xr+Ph5zx4GZlhaRxJ4ggy2ynrZSWMryCrLmpNWpC2RRb55 -JvwEDpKZPOzo5LK2J1lATuIpHD/GPCZ/ux8jYOcUWHisv1rgJSI6139QbbAN8aPc -uLZuWmHt/ZeCBNPH7O2qZZjfvX+cEY6WqhOKzJiC74UOX4A+JKidJ5giYyRuiAUl -BjooD/VXBtpcMgPK+JT7 -=QPDJ ------END PGP SIGNATURE----- diff --git a/net-misc/scponly/scponly-4.8-r4.ebuild b/net-misc/scponly/scponly-4.8-r4.ebuild deleted file mode 100644 index 768253ed191a..000000000000 --- a/net-misc/scponly/scponly-4.8-r4.ebuild +++ /dev/null @@ -1,290 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.8-r4.ebuild,v 1.9 2014/01/08 06:38:13 vapier Exp $ - -EAPI="1" -inherit eutils multilib toolchain-funcs user - -DESCRIPTION="A tiny pseudoshell which only permits scp and sftp" -HOMEPAGE="http://www.sublimation.org/scponly/" -SRC_URI="mirror://sourceforge/scponly/${P}.tgz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="amd64 ppc sparc x86" -IUSE="+sftp scp winscp gftp rsync unison subversion wildcards quota passwd logging" - -RDEPEND="sys-apps/sed - net-misc/openssh - quota? ( sys-fs/quota ) - rsync? ( net-misc/rsync ) - subversion? ( dev-vcs/subversion )" -DEPEND="${RDEPEND}" - -myuser="scponly" -myhome="/home/${myuser}" -mysubdir="/pub" - -pkg_setup() { - if use unison; then - if [ ! -e "${ROOT}usr/bin/unison" ]; then - eerror - eerror "please run 'eselect unison set <version>' first!" - die "can't find /usr/bin/unison" - fi - fi - - if ! use subversion && ! use unison && ! use rsync && \ - ! use sftp && ! use scp && ! use winscp; then - eerror - eerror "you have to enable at least one of the following use-flags:" - eerror "sftp scp winscp rsync unison subversion" - die "your build will quite useless without any compatibility mode" - fi - - if use subversion || use unison || use rsync || use wildcards || use scp || use winscp; then - ewarn - ewarn "NOTE THE FOLLOWING SECURITY RISKS:" - ewarn - if use wildcards; then - ewarn "-- by enabling wildcards, there is a slightly higher chance of an exploit" - fi - if use scp || use winscp; then - ewarn "-- by enabling scp and/or winscp compatibility, more programs will need" - ewarn " to be installed in the chroot which increases the risk." - fi - if use subversion; then - ewarn "-- CAUTION: by enabling subversion the user WILL BE ABLE TO EXECUTE" - ewarn " SCRIPTS OR PROGRAMS INDIRECTLY! svn and svnserve will try to execute" - ewarn " pre-commit, post-commit hooks, as well as a few others. These files" - ewarn " have specific filenames at specific locations relative to the svn" - ewarn " repository root. Thus, unless you are *very* careful about security," - ewarn " the user WILL BE ABLE TO EXECUTE SCRIPTS OR PROGRAMS INDIRECTLY!" - ewarn " This can be prevented by a careful configuration." - fi - if use subversion || use unison || use rsync; then - ewarn "-- The following programs use configuration files that might allow the" - ewarn " user to bypass security restrictions placed on command line arguments:" - ewarn " svn, svnserve, rsync, unison" - fi - ewarn - ewarn "please read /usr/share/doc/${PF}/SECURITY* after install!" - ewarn - ebeep 5 - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}-rsync.patch" - # bug #269242 - epatch "${FILESDIR}/${P}-gcc4.4.0.patch" -} - -src_compile() { - CFLAGS="${CFLAGS} ${LDFLAGS}" econf \ - --with-sftp-server="/usr/$(get_libdir)/misc/sftp-server" \ - --with-default-chdir="/" \ - --disable-restrictive-names \ - --enable-chrooted-binary \ - --enable-chroot-checkdir \ - $(use_enable winscp winscp-compat) \ - $(use_enable gftp gftp-compat) \ - $(use_enable scp scp-compat) \ - $(use_enable sftp sftp) \ - $(use_enable quota quota-compat) \ - $(use_enable passwd passwd-compat) \ - $(use_enable rsync rsync-compat) \ - $(use_enable unison unison-compat) \ - $(use_enable subversion svn-compat) \ - $(use_enable subversion svnserv-compat) \ - $(use_enable logging sftp-logging-compat) \ - $(use_enable wildcards wildcards) \ - || die "econf failed" - emake CC=$(tc-getCC) || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die - - dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README SECURITY TODO - - # don't compress setup-script, so it is usable if necessary - insinto /usr/share/doc/${PF}/chroot - doins setup_chroot.sh config.h -} - -pkg_postinst() { - elog - elog "You might want to run" - elog " emerge --config =${CATEGORY}/${PF}" - elog "to setup the chroot. Otherwise you will have to setup chroot manually." - elog - elog "Please read the docs in /usr/share/doc/${PF} for more informations!" - elog - - # 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 "Collecting binaries and libraries..." - - # Binaries launched in sftp compat mode - if built_with_use =${CATEGORY}/${PF} sftp; then - BINARIES="/usr/$(get_libdir)/misc/sftp-server" - fi - - # Binaries launched by vanilla- and WinSCP modes - if built_with_use =${CATEGORY}/${PF} scp || \ - built_with_use =${CATEGORY}/${PF} winscp; then - BINARIES="${BINARIES} /usr/bin/scp /bin/ls /bin/rm /bin/ln /bin/mv" - BINARIES="${BINARIES} /bin/chmod /bin/chown /bin/chgrp /bin/mkdir /bin/rmdir" - fi - - # Binaries launched in WinSCP compatibility mode - if built_with_use =${CATEGORY}/${PF} winscp; then - BINARIES="${BINARIES} /bin/pwd /bin/groups /usr/bin/id /bin/echo" - fi - - # Rsync compatability mode - if built_with_use =${CATEGORY}/${PF} rsync; then - BINARIES="${BINARIES} /usr/bin/rsync" - fi - - # Unison compatability mode - if built_with_use =${CATEGORY}/${PF} unison; then - BINARIES="${BINARIES} /usr/bin/unison" - fi - - # subversion cli/svnserv compatibility - if built_with_use =${CATEGORY}/${PF} subversion; then - BINARIES="${BINARIES} /usr/bin/svn /usr/bin/svnserve" - fi - - # passwd compatibility - if built_with_use =${CATEGORY}/${PF} passwd; then - BINARIES="${BINARIES} /bin/passwd" - fi - - # quota compatibility - if built_with_use =${CATEGORY}/${PF} quota; then - BINARIES="${BINARIES} /usr/bin/quota" - fi - - # build lib dependencies - LIB_LIST=$(ldd ${BINARIES} | sed -n 's:.* => \(/[^ ]\+\).*:\1:p' | sort -u) - - # search and add ld*.so - for LIB in /$(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; do - [ -f "${LIB}" ] && LIB_LIST="${LIB_LIST} ${LIB}" - done - - # search and add libnss_*.so - for LIB in /$(get_libdir)/libnss_{compat,files}*.so.*; do - [ -f "${LIB}" ] && LIB_LIST="${LIB_LIST} ${LIB}" - done - - # create base dirs - if [ ! -d "${myhome}" ]; then - einfo "Creating ${myhome}" - install -o0 -g0 -m0755 -d "${myhome}" - else - einfo "Setting owner for ${myhome}" - chown 0:0 "${myhome}" - fi - - if [ ! -d "${myhome}/etc" ]; then - einfo "Creating ${myhome}/etc" - install -o0 -g0 -m0755 -d "${myhome}/etc" - fi - - if [ ! -d "${myhome}/$(get_libdir)" ]; then - einfo "Creating ${myhome}/$(get_libdir)" - install -o0 -g0 -m0755 -d "${myhome}/$(get_libdir)" - fi - - if [ ! -e "${myhome}/lib" ]; then - einfo "Creating ${myhome}/lib" - ln -snf $(get_libdir) "${myhome}/lib" - fi - - if [ ! -d "${myhome}/usr/$(get_libdir)" ]; then - einfo "Creating ${myhome}/usr/$(get_libdir)" - install -o0 -g0 -m0755 -d "${myhome}/usr/$(get_libdir)" - fi - - if [ ! -e "${myhome}/usr/lib" ]; then - einfo "Creating ${myhome}/usr/lib" - ln -snf $(get_libdir) "${myhome}/usr/lib" - fi - - if [ ! -d "${myhome}${mysubdir}" ]; then - einfo "Creating ${myhome}${mysubdir} directory for uploading files" - install -o${myuser} -g${myuser} -m0755 -d "${myhome}${mysubdir}" - fi - - # create /dev/null (Bug 135505) - if [ ! -e "${myhome}/dev/null" ]; then - install -o0 -g0 -m0755 -d "${myhome}/dev" - mknod -m0777 "${myhome}/dev/null" c 1 3 - fi - - # install binaries - for BIN in ${BINARIES}; do - einfo "Install ${BIN}" - install -o0 -g0 -m0755 -d "${myhome}$(dirname ${BIN})" - if [ "${BIN}" = "/bin/passwd" ]; then # needs suid - install -p -o0 -g0 -m04711 "${BIN}" "${myhome}/${BIN}" - else - install -p -o0 -g0 -m0755 "${BIN}" "${myhome}/${BIN}" - fi - done - - # install libs - for LIB in ${LIB_LIST}; do - einfo "Install ${LIB}" - install -o0 -g0 -m0755 -d "${myhome}$(dirname ${LIB})" - install -p -o0 -g0 -m0755 "${LIB}" "${myhome}/${LIB}" - done - - # create ld.so.conf - einfo "Creating /etc/ld.so.conf" - for LIB in ${LIB_LIST}; do - dirname ${LIB} - done | sort -u | while read DIR; do - if ! grep 2>/dev/null -q "^${DIR}$" "${myhome}/etc/ld.so.conf"; then - echo "${DIR}" >> "${myhome}/etc/ld.so.conf" - fi - done - ldconfig -r "${myhome}" - - # update shells - einfo "Updating /etc/shells" - grep 2>/dev/null -q "^/usr/bin/scponly$" /etc/shells \ - || echo "/usr/bin/scponly" >> /etc/shells - - grep 2>/dev/null -q "^/usr/sbin/scponlyc$" /etc/shells \ - || echo "/usr/sbin/scponlyc" >> /etc/shells - - # create /etc/passwd - if [ ! -e "${myhome}/etc/passwd" ]; then - ( - echo "root:x:0:0:root:/:/bin/sh" - sed -n "s|^\(${myuser}:[^:]*:[^:]*:[^:]*:[^:]*:\).*|\1${mysubdir}:/bin/sh|p" /etc/passwd - ) > "${myhome}/etc/passwd" - fi - - # create /etc/group - if [ ! -e "${myhome}/etc/group" ]; then - ( - echo "root:x:0:" - sed -n "s|^\(${myuser}:[^:]*:[^:]*:\).*|\1|p" /etc/group - ) > "${myhome}/etc/group" - fi -} |