diff options
author | 2014-09-04 18:58:24 +0000 | |
---|---|---|
committer | 2014-09-04 18:58:24 +0000 | |
commit | 4593bca7a6b6185d03b7b709000700289a1b6f53 (patch) | |
tree | b87700b3e845db07422e9758007095017de88e9d /net-ftp/pybootd | |
parent | Fix building with no SSL support. (diff) | |
download | gentoo-2-4593bca7a6b6185d03b7b709000700289a1b6f53.tar.gz gentoo-2-4593bca7a6b6185d03b7b709000700289a1b6f53.tar.bz2 gentoo-2-4593bca7a6b6185d03b7b709000700289a1b6f53.zip |
Initial ebuild by Hung-Te Lin & me.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'net-ftp/pybootd')
-rw-r--r-- | net-ftp/pybootd/ChangeLog | 9 | ||||
-rw-r--r-- | net-ftp/pybootd/files/pybootd-scripts.patch | 36 | ||||
-rw-r--r-- | net-ftp/pybootd/metadata.xml | 9 | ||||
-rw-r--r-- | net-ftp/pybootd/pybootd-1.5.0_pre20110524131526.ebuild | 28 |
4 files changed, 82 insertions, 0 deletions
diff --git a/net-ftp/pybootd/ChangeLog b/net-ftp/pybootd/ChangeLog new file mode 100644 index 000000000000..e12ce1629f7a --- /dev/null +++ b/net-ftp/pybootd/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-ftp/pybootd +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/pybootd/ChangeLog,v 1.1 2014/09/04 18:58:23 vapier Exp $ + +*pybootd-1.5.0_pre20110524131526 (04 Sep 2014) + + 04 Sep 2014; Mike Frysinger <vapier@gentoo.org> +files/pybootd-scripts.patch, + +metadata.xml, +pybootd-1.5.0_pre20110524131526.ebuild: + Initial ebuild by Hung-Te Lin & me. diff --git a/net-ftp/pybootd/files/pybootd-scripts.patch b/net-ftp/pybootd/files/pybootd-scripts.patch new file mode 100644 index 000000000000..71a001f44798 --- /dev/null +++ b/net-ftp/pybootd/files/pybootd-scripts.patch @@ -0,0 +1,36 @@ +install the pybootd.py helper as pybootd otherwise the import gets confused + +--- a/setup.py ++++ b/setup.py +@@ -18,13 +18,23 @@ + # License along with this library; if not, write to the Free Software + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ++import shutil + from distutils.core import setup ++import distutils.command.install_scripts + + + def _read(fname): + import os + return open(os.path.join(os.path.dirname(__file__), fname)).read() + ++class script_rename(distutils.command.install_scripts.install_scripts): ++ ++ def run(self): ++ distutils.command.install_scripts.install_scripts.run(self) ++ for script in self.get_outputs(): ++ if script.endswith('.py'): ++ shutil.move(script, script[:-3]) ++ + setup( + name='pybootd', + version='1.5.0', +@@ -56,5 +66,7 @@ setup( + package_data = { + '': ['etc/*.ini', 'etc/*.cfg'], + }, ++ cmdclass = {'install_scripts': script_rename}, ++ scripts = ['pybootd.py'], + long_description=_read('README.rst'), + ) diff --git a/net-ftp/pybootd/metadata.xml b/net-ftp/pybootd/metadata.xml new file mode 100644 index 000000000000..e256526db2cd --- /dev/null +++ b/net-ftp/pybootd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">pybootd</remote-id> + <remote-id type="github">eblot/pybootd</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-ftp/pybootd/pybootd-1.5.0_pre20110524131526.ebuild b/net-ftp/pybootd/pybootd-1.5.0_pre20110524131526.ebuild new file mode 100644 index 000000000000..a2b20a444d68 --- /dev/null +++ b/net-ftp/pybootd/pybootd-1.5.0_pre20110524131526.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/pybootd/pybootd-1.5.0_pre20110524131526.ebuild,v 1.1 2014/09/04 18:58:23 vapier Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +GIT_HASH="7fd7d045fd4b4cdeebf4d07c1c5cd9649c2172b8" + +DESCRIPTION="Simplified BOOTP/DHCP/PXE/TFTP server" +HOMEPAGE="https://github.com/eblot/pybootd" +SRC_URI="https://github.com/eblot/pybootd/archive/${GIT_HASH:0:6}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-python/netifaces-0.5" +DEPEND="" + +S="${WORKDIR}/pybootd-${GIT_HASH}" + +PATCHES=( + "${FILESDIR}"/${PN}-scripts.patch +) |