contrib/pydsh/Pkgfile

31 lines
989 B
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: Python Distributed Shell.
# URL: http://pydsh.sourceforge.net/
2007-01-20 03:21:06 +01:00
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
# Packager: James Mills, prologic at shortcircuit dot net dot au
2006-11-19 22:26:53 +01:00
#
# Depends on: pexpect
2006-11-14 00:01:22 +01:00
name=pydsh
version=0.5.4
release=1
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
build() {
2006-11-19 22:26:53 +01:00
cd $name-$version
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
sed -i -e "s/python2.3/python/" SRC/pydsh.py
sed -i -e "s/use_pdb = \"yes\"/use_pdb = \"no\"/" SRC/pydsh.py
sed -i -e "s/allgroup_file = \"\\/usr\\/local\\/etc\\/pydsh\\/groups\\/all\"/allgroup_file = \"\\/etc\\/pydsh\\/groups\\/all\"/" SRC/pydsh.py
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
install -D -m755 SRC/pydsh.py $PKG/usr/bin/pydsh
ln -sf /usr/bin/pydsh $PKG/usr/bin/pydcp
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
install -D -m644 DOC/pydsh.8.gz $PKG/usr/man/man8/pydsh.8.gz
install -D -m644 DOC/pydsh.8.gz $PKG/usr/man/man8/pydcp.8.gz
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
mkdir -p $PKG/etc/pydsh/groups
echo "localhost" > $PKG/etc/pydsh/groups/all
2006-11-14 00:01:22 +01:00
2006-11-19 22:26:53 +01:00
chown -R root:root $PKG
2006-11-14 00:01:22 +01:00
}