Re: cvs commit: libh/lib/sysinstall Feature.cc

The Anarcat <[email protected]> Wed, 2 Oct 2002 00:09:43 -0400
Newsgroups gmane.os.freebsd.devel.libh
Message-ID <[email protected]>
On Fri Sep 27, 2002 at 07:22:52PM +0200, Alexander Langer wrote:
> Thus spake Antoine Beaupre ([email protected]):
> 
> > Maybe you could send me those packages here somehow (put them on my ftp 
> > or something...)
> 
> Deleted them :)
> 
> Just try to create e.g. the net/netcat port package.
> That gave me errors.

Hmmm... 

root@lenny[/usr/ports/net/netcat]# !make
make PKG_CMD=~anarcat/libh/release/scripts/pkgtools/pkg_create LIBH=yes package
===>  Building package for netcat-1.10_1
Adding files from pkg-plist to archive...
bin/nc
share/doc/netcat/README
Done.

No apparent problem here, although I couldn't find the package at the
first run!

After hacking the pkg_create script a little randomly:

Index: pkg_create
===================================================================
RCS file: /home/libh/cvs/libh/release/scripts/pkgtools/pkg_create,v
retrieving revision 1.1
diff -u -u -r1.1 pkg_create
--- pkg_create	27 Sep 2002 09:56:40 -0000	1.1
+++ pkg_create	2 Oct 2002 04:08:16 -0000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
 # $FreeBSD: libh/release/scripts/pkgtools/pkg_create,v 1.1 2002/09/27 09:56:40 alex Exp $
 #
 
@@ -120,7 +120,6 @@
 #    echo "[Feature \"$prfx$name$sufx\" \"$version\"] \\" >> $PKGTMP/SYSINSTALL/features.tcl
 #done
 
-exit
 
 cat >> $PKGTMP/SYSINSTALL/features.tcl <<EOF 
     	]
@@ -133,6 +132,8 @@
 \$creator write_package_file
 EOF
 
-tclh.static $SCRIPT
+echo "running script"
+/usr/local/bin/tclh.static $SCRIPT && echo "success"
+echo "done"
 
 clean_exit


I could get the package to be create in /usr/ports/packages/.pkg.zip
(??).

But it basically works.

What error did you get? Where/when?

Thanks,

Ant.

-- 
Why bother building more nukes until we use the ones we already have?
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9mnGHttcWHAnWiGcRAlOeAKCCvMmAqLb1Yxte70zmQgXF6veYSgCgiFud
8tYxPYi3NqGirB2BInhHZ1I=
=uJmU
-----END PGP SIGNATURE-----