Date: 8 Aug 2006 08:20:05 -0000 From: "Mahlon E. Smith" <mahlon@martini.nu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/101643: New port: sysutils/p5-BSD-Jail-Object Message-ID: <20060808082005.1267.qmail@happymaggot.stinkymeat.net> Resent-Message-ID: <200608080830.k788UHkU046826@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101643 >Category: ports >Synopsis: New port: sysutils/p5-BSD-Jail-Object >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 08 08:30:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mahlon E. Smith >Release: FreeBSD 6.1-BETA4 i386 >Organization: Spime Solutions Group >Environment: System: FreeBSD happymaggot.stinkymeat.net 6.1-BETA4 FreeBSD 6.1-BETA4 #0: Fri Apr 7 19:01:27 PDT 2006 root@happymaggot.stinkymeat.net:/usr/src/sys/i386/compile/MAGGOT i386 >Description: This is an object oriented perl interface to the FreeBSD jail subsystem. >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: # # p5-BSD-Jail-Object # p5-BSD-Jail-Object/.arch-ids # p5-BSD-Jail-Object/.arch-ids/=id # p5-BSD-Jail-Object/.arch-ids/Makefile.id # p5-BSD-Jail-Object/.arch-ids/pkg-descr.id # p5-BSD-Jail-Object/.arch-ids/pkg-plist.id # p5-BSD-Jail-Object/.arch-ids/distinfo.id # p5-BSD-Jail-Object/Makefile # p5-BSD-Jail-Object/pkg-descr # p5-BSD-Jail-Object/pkg-plist # p5-BSD-Jail-Object/distinfo # echo c - p5-BSD-Jail-Object mkdir -p p5-BSD-Jail-Object > /dev/null 2>&1 echo c - p5-BSD-Jail-Object/.arch-ids mkdir -p p5-BSD-Jail-Object/.arch-ids > /dev/null 2>&1 echo x - p5-BSD-Jail-Object/.arch-ids/=id sed 's/^X//' >p5-BSD-Jail-Object/.arch-ids/=id << 'END-of-p5-BSD-Jail-Object/.arch-ids/=id' XMahlon E. Smith <mahlon@martini.nu> Sat Jul 8 01:11:39 2006 63500.0 END-of-p5-BSD-Jail-Object/.arch-ids/=id echo x - p5-BSD-Jail-Object/.arch-ids/Makefile.id sed 's/^X//' >p5-BSD-Jail-Object/.arch-ids/Makefile.id << 'END-of-p5-BSD-Jail-Object/.arch-ids/Makefile.id' XMahlon E. Smith <mahlon@martini.nu> Sat Jul 8 01:11:45 2006 63502.0 END-of-p5-BSD-Jail-Object/.arch-ids/Makefile.id echo x - p5-BSD-Jail-Object/.arch-ids/pkg-descr.id sed 's/^X//' >p5-BSD-Jail-Object/.arch-ids/pkg-descr.id << 'END-of-p5-BSD-Jail-Object/.arch-ids/pkg-descr.id' XMahlon E. Smith <mahlon@martini.nu> Sat Jul 8 01:11:45 2006 63502.1 END-of-p5-BSD-Jail-Object/.arch-ids/pkg-descr.id echo x - p5-BSD-Jail-Object/.arch-ids/pkg-plist.id sed 's/^X//' >p5-BSD-Jail-Object/.arch-ids/pkg-plist.id << 'END-of-p5-BSD-Jail-Object/.arch-ids/pkg-plist.id' XMahlon E. Smith <mahlon@martini.nu> Sat Jul 8 01:11:45 2006 63502.2 END-of-p5-BSD-Jail-Object/.arch-ids/pkg-plist.id echo x - p5-BSD-Jail-Object/.arch-ids/distinfo.id sed 's/^X//' >p5-BSD-Jail-Object/.arch-ids/distinfo.id << 'END-of-p5-BSD-Jail-Object/.arch-ids/distinfo.id' XMahlon E. Smith <mahlon@martini.nu> Mon Aug 7 23:12:15 2006 97242.0 END-of-p5-BSD-Jail-Object/.arch-ids/distinfo.id echo x - p5-BSD-Jail-Object/Makefile sed 's/^X//' >p5-BSD-Jail-Object/Makefile << 'END-of-p5-BSD-Jail-Object/Makefile' X# New ports collection makefile for: sysutils/p5-BSD-Jail-Object X# Date created: 2006-08-07 X# Whom: Mahlon E. Smith <mahlon@martini.nu> X# X# $FreeBSD$ X# X XPORTNAME= BSD-Jail-Object XPORTVERSION= 0.02 XPORTREVISION= 1 XCATEGORIES= sysutils perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= ../../authors/id/M/MA/MAHLON XPKGNAMEPREFIX= p5- X XMAINTAINER= mahlon@martini.nu XCOMMENT= An object oriented perl interface to jail(2) X XEXTRACT_DEPENDS=\ X ${SITE_PERL}/Inline.pm:${PORTSDIR}/devel/p5-Inline X XPERL_CONFIGURE= yes X XMAN3= BSD::Jail::Object.3 X X.include <bsd.port.mk> END-of-p5-BSD-Jail-Object/Makefile echo x - p5-BSD-Jail-Object/pkg-descr sed 's/^X//' >p5-BSD-Jail-Object/pkg-descr << 'END-of-p5-BSD-Jail-Object/pkg-descr' XThis is an object oriented perl interface to the FreeBSD jail subsystem. X XHere's a replica of the 'jls' utility in just a few lines of perl: X X use BSD::Jail::Object 'jids'; X X print " JID IP Address Hostname Path\n"; X printf "%6d %-15.15s %-29.29s %.74s\n", X $_->jid, $_->ip, $_->hostname, $_->path foreach jids( instantiate => 1 ); X XAnd here's 'jexec': X X my $j = BSD::Jail::Object->new( $ARGV[0] ) or die $@; X $j->attach && chdir('/') && exec $ARGV[1] or exit; X XFor more info please use 'perldoc' on the module. X XAuthor: Mahlon E. Smith <mahlon@martini.nu> END-of-p5-BSD-Jail-Object/pkg-descr echo x - p5-BSD-Jail-Object/pkg-plist sed 's/^X//' >p5-BSD-Jail-Object/pkg-plist << 'END-of-p5-BSD-Jail-Object/pkg-plist' X%%SITE_PERL%%/%%PERL_ARCH%%/BSD/Jail/Object.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Jail/Object/.packlist X%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Jail/Object/Object.bs X%%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Jail/Object/Object.so X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Jail/Object X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/BSD/Jail/Object X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/BSD/Jail/Object END-of-p5-BSD-Jail-Object/pkg-plist echo x - p5-BSD-Jail-Object/distinfo sed 's/^X//' >p5-BSD-Jail-Object/distinfo << 'END-of-p5-BSD-Jail-Object/distinfo' XMD5 (BSD-Jail-Object-0.02.tar.gz) = 7cff670f41dd536b1b0313161e40d252 XSHA256 (BSD-Jail-Object-0.02.tar.gz) = 9ae2cdd9164e3d8737ffbe63b9655e64aeb74b596ca523ca54379ac80fd3b7f1 XSIZE (BSD-Jail-Object-0.02.tar.gz) = 4695 END-of-p5-BSD-Jail-Object/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060808082005.1267.qmail>