- make it use the python module

- @extra'fy
MAINTAINER timeout ........... okay sturm@.
This commit is contained in:
xsa 2004-04-18 19:14:38 +00:00
parent 9f0d6fa20e
commit 4f701df2ed
5 changed files with 141 additions and 32 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2004/01/18 14:10:40 wilfried Exp $
# $OpenBSD: Makefile,v 1.4 2004/04/18 19:14:38 xsa Exp $
COMMENT= "distributed command execution"
@ -6,8 +6,6 @@ DISTNAME= tentakel-2.1.2
CATEGORIES= sysutils
MAINTAINER= Sebastian Stark <seb@todesplanet.de>
HOMEPAGE= http://tentakel.biskalar.de/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tentakel/}
EXTRACT_SUFX= .tgz
# BSD + LGPL
PERMIT_PACKAGE_CDROM= Yes
@ -15,24 +13,23 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= python2.2 python2.3
FLAVOR?= python2.3
.if ${FLAVOR:L} == "python2.2"
PYTHON_VER= 2.2
.else
PYTHON_VER= 2.3
.endif
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tentakel/}
EXTRACT_SUFX= .tgz
MAKE_ENV= PYTHON="${LOCALBASE}/bin/${FLAVOR}"
MODULES= python
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
SUBST_VARS= PYTHON_VER
WRKSRC= ${WRKDIST}/py
REGRESS_IS_INTERACTIVE= yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tentakel
${INSTALL_DATA} ${WRKSRC}/tentakel.conf.example ${PREFIX}/share/examples/tentakel
do-configure:
@perl -pi -e 's,/etc,${SYSCONFDIR},g' \
${WRKDIST}/tentakel.1 \
${WRKDIST}/py/tentakel
do-regress:
@cd ${WRKSRC}/lekatnet && ${MODPY_BIN} ./config.py
@cd ${WRKSRC}/lekatnet && ${MODPY_BIN} ./remote.py
.include <bsd.port.mk>

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-py_setup_py,v 1.1 2004/04/18 19:14:38 xsa Exp $
--- py/setup.py.orig 2004-01-17 19:54:19.000000000 +0100
+++ py/setup.py 2004-04-11 01:42:54.000000000 +0200
@@ -18,8 +18,8 @@ setup(
packages = ["lekatnet"],
scripts = ["tentakel"],
data_files = [ ("man/man1", ["../tentakel.1"]),
- ("share/doc/tentakel", ["../tentakel.conf.example",
- "../README",
- "../TODO",
- "../tentakel.1.html"]) ]
+ ("share/doc/tentakel", ["../README",
+ "../TODO"]),
+ ("share/examples/tentakel",
+ ["../tentakel.conf.example"]) ]
)

View File

@ -0,0 +1,25 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2004/04/18 19:14:38 xsa Exp $
#
# De-installation setup of tentakel
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/tentakel.conf
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| rm -f ${CONFIG_FILE}"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -0,0 +1,69 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2004/04/18 19:14:38 xsa Exp $
#
# Pre/post-installation setup of tentakel
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
CONFIG_FILE=$CONFIG_DIR/tentakel.conf
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/tentakel
SAMPLE_CONFIG_FILE=${SAMPLE_CONFIG_DIR}/tentakel.conf.example
# Function: tell the user what they need to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, ${CONFIG_FILE},"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample files in ${SAMPLE_CONFIG_DIR}"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
# Function: install configuration files
#
do_install()
{
install -o root -g wheel -d ${CONFIG_DIR}
install -o root -g wheel ${SAMPLE_CONFIG_FILE} ${CONFIG_FILE}
echo
echo "+---------------"
echo "| The $1 configuration file, ${CONFIG_FILE},"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f ${CONFIG_FILE} ]; then
do_notice "$1"
else
do_install "$1"
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,21 +1,23 @@
@comment $OpenBSD: PLIST,v 1.2 2004/01/18 14:10:40 wilfried Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/04/18 19:14:38 xsa Exp $
bin/tentakel
lib/python${PYTHON_VER}/site-packages/lekatnet/__init__.py
lib/python${PYTHON_VER}/site-packages/lekatnet/__init__.pyc
lib/python${PYTHON_VER}/site-packages/lekatnet/config.py
lib/python${PYTHON_VER}/site-packages/lekatnet/config.pyc
lib/python${PYTHON_VER}/site-packages/lekatnet/error.py
lib/python${PYTHON_VER}/site-packages/lekatnet/error.pyc
lib/python${PYTHON_VER}/site-packages/lekatnet/remote.py
lib/python${PYTHON_VER}/site-packages/lekatnet/remote.pyc
lib/python${PYTHON_VER}/site-packages/lekatnet/shell.py
lib/python${PYTHON_VER}/site-packages/lekatnet/shell.pyc
lib/python${PYTHON_VER}/site-packages/lekatnet/tpg.py
lib/python${PYTHON_VER}/site-packages/lekatnet/tpg.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/__init__.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/config.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/config.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/error.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/error.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/remote.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/remote.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/shell.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/shell.pyc
lib/python${MODPY_VERSION}/site-packages/lekatnet/tpg.py
lib/python${MODPY_VERSION}/site-packages/lekatnet/tpg.pyc
man/man1/tentakel.1
share/doc/tentakel/README
share/doc/tentakel/TODO
share/examples/tentakel/tentakel.conf.example
@dirrm share/doc/tentakel
@dirrm share/examples/tentakel
@dirrm lib/python${PYTHON_VER}/site-packages/lekatnet
@dirrm share/doc/tentakel
@dirrm lib/python${MODPY_VERSION}/site-packages/lekatnet
@cwd ${SYSCONFDIR}
@extra tentakel.conf