From nobody@FreeBSD.org  Mon Dec 10 21:18:26 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9FA1416A418
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Dec 2007 21:18:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8CC2913C457
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Dec 2007 21:18:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBALIOUR015308
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Dec 2007 21:18:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBALIOQP015307;
	Mon, 10 Dec 2007 21:18:24 GMT
	(envelope-from nobody)
Message-Id: <200712102118.lBALIOQP015307@www.freebsd.org>
Date: Mon, 10 Dec 2007 21:18:24 GMT
From: Andrey Antoukh <andsux@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NEW PORT
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118538
>Category:       ports
>Synopsis:       new port: sysutils/python-kmod, allows running python bytecode without path to python interpreter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 10 21:20:01 UTC 2007
>Closed-Date:    Wed Jan 02 13:34:41 UTC 2008
>Last-Modified:  Wed Jan 02 13:34:41 UTC 2008
>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:
Class-Changed-From-To: update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Mon Dec 10 21:20:11 UTC 2007 
Class-Changed-Why:  
Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118538 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Fri Dec 14 16:45:01 UTC 2007 
State-Changed-Why:  
Does not fetch: 

=> Attempting to fetch from http://andsux.homeip.net/~andsux/Projects/py-kmod/. 
fetch: http://andsux.homeip.net/~andsux/Projects/py-kmod/py-kmod-1.0.tar.bz2: Connection reset by peer 



Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Dec 14 16:45:01 UTC 2007 
Responsible-Changed-Why:  
Does not fetch: 

=> Attempting to fetch from http://andsux.homeip.net/~andsux/Projects/py-kmod/. 
fetch: http://andsux.homeip.net/~andsux/Projects/py-kmod/py-kmod-1.0.tar.bz2: Connection reset by peer 


http://www.freebsd.org/cgi/query-pr.cgi?pr=118538 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Wed Jan 2 13:33:46 UTC 2008 
State-Changed-Why:  
Does not fetch; feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118538 
>Unformatted:
