Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2007 21:18:24 GMT
From:      Andrey Antoukh <andsux@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/118538: NEW PORT
Message-ID:  <200712102118.lBALIOQP015307@www.freebsd.org>
Resent-Message-ID: <200712102120.lBALK2oh090754@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118538
>Category:       ports
>Synopsis:       NEW PORT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 10 21:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Antoukh
>Release:        
>Organization:
>Environment:
FreeBSD homefree.andsux.sys 7.0-BETA4 FreeBSD 7.0-BETA4 #1: Thu Dec  6 11:28:31 CET 2007     root@homefree.andsux.sys:/usr/obj/usr/src/sys/ANX  i386
>Description:
Core Module based on mono-kmod. That allows running python bytecode (*. pyc) without path to python interpreter.
Example:
localhost% kldload pymod.ko 
localhost% file pycomp.pyc
pycomp.pyc: python 2.5 byte-compiled
localhost% mv pycomp.pyc pybin; chmod +x pybin
localhost% ./pybin
"Hello world!"

localhost% kldunload pymod
localhost% ./pybin
zsh: exec format error: ./pybin
localhost% python ./pybin
"Hello world!"
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	python-kmod/Makefile
#	python-kmod/distinfo
#	python-kmod/pkg-descr
#
echo x - python-kmod/Makefile
sed 's/^X//' >python-kmod/Makefile << 'END-of-python-kmod/Makefile'
X# Ports collection makefile for: mono-kmod
X# Date created:		14 April 2007
X# Whom:			bkoenig@cs.tu-berlin.de
X#
X# $FreeBSD: ports/sysutils/mono-kmod/Makefile,v 1.4 2007/08/03 16:27:31 rafan Exp $
X#
X
XPORTNAME=	py-kmod
XPORTVERSION=	1.0
XCATEGORIES=	sysutils kld
XMASTER_SITES=	http://andsux.homeip.net/~andsux/Projects/py-kmod/
X
XMAINTAINER=	andsux@gmail.com
XCOMMENT=	Execute Python bytecode from comand line
X
XONLY_FOR_ARCHS=	i386 amd64
X
XUSE_BZIP2=	yes
XKMODDIR?=	/boot/modules
X
XSRC_BASE?=	/usr/src
X
XPLIST_SUB=	KMODDIR=${KMODDIR}
XMAKE_ENV+=	KMODDIR=${KMODDIR}
X
XPLIST_FILES=	"@cwd %%KMODDIR%%"
XPLIST_FILES+=	pymod.ko
XPLIST_FILES+=	"@unexec kldxref ${KMODDIR}"
X
X.include <bsd.port.pre.mk>
X
X.if !exists(${SRC_BASE}/sys/Makefile)
XIGNORE=		requires kernel source to be installed
X.endif
X
X.include <bsd.port.post.mk>
END-of-python-kmod/Makefile
echo x - python-kmod/distinfo
sed 's/^X//' >python-kmod/distinfo << 'END-of-python-kmod/distinfo'
XMD5 (py-kmod-1.0.tar.bz2) = 4da8e9b871082cab158d6f99761d2a8a
XSHA256 (py-kmod-1.0.tar.bz2) = fa358a6177536f6f91e300d24c50e2d610e5db139b97b74a0792dfd754bc0e4f
XSIZE (py-kmod-1.0.tar.bz2) = 2100
END-of-python-kmod/distinfo
echo x - python-kmod/pkg-descr
sed 's/^X//' >python-kmod/pkg-descr << 'END-of-python-kmod/pkg-descr'
XKernel module to execute pyc (python bytecode) without path 
Xfor the python interpreter!
END-of-python-kmod/pkg-descr
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712102118.lBALIOQP015307>