You are not logged in.

#1 2004-03-07 18:57:10

LavaPunk
Member
Registered: 2004-03-05
Posts: 129

Did it work or what? I'm confused

Ok attempted to make a package because after I requested it in the request forum I decided to put my lazy self to work.  I am trying to build a package for ipkungfu found at http://www.linuxkungfu.org/
I edited the PKGBUILD to look like this

pkgname=ipkungfu
pkgver=0.5.2
pkgrel=1
pkgdesc="IPKungFu is an iptables-based Linux firewall. It aims to
simplify the configuration of Internet connection sharing, port
forwarding, and packet filtering."
url="http://www.linuxkungfu.org/"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.linuxkungfu.org/ipkungfu/$pkgname-$pkgver.tgz)
md5sums=(080566f8c494b389cdb2813268d30819)

build() {
  cd $startdir/src/$pkgname-$pkgver
  tar -xzf $pkgname-$pkgver
  sh install
}

and then ran makepkg which returned this...

==> Making package: ipkungfu  (Sun Mar  7 10:56:59 PST 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading ipkungfu-0.5.2.tgz
--10:56:59--  http://www.linuxkungfu.org/ipkungfu/ipkungfu-0.5.2.tgz
           => `ipkungfu-0.5.2.tgz'
Resolving www.linuxkungfu.org... 64.81.112.149
Connecting to www.linuxkungfu.org[64.81.112.149]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35,985 [text/plain]

100%[====================================>] 35,985        38.53K/s             

10:57:02 (38.43 KB/s) - `ipkungfu-0.5.2.tgz' saved [35985/35985]

==> Validating source files with MD5sums
    ipkungfu-0.5.2.tgz ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf ipkungfu-0.5.2.tgz
==> Starting build()...
tar (child): ipkungfu-0.5.2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Installing man page...
cp: cannot create regular file `/usr/share/man/man8': No such file or directory
Installing documentation to /usr/share/doc/ipkungfu-0.5.1...
Copying /var/abs/local/ipkungfu/src/ipkungfu-0.5.2/ipkungfu to /usr/local/sbin..                                                              .
Installing man page...
cp: cannot create regular file `/usr/share/man/man8': No such file or directory
Installing documentation to /usr/share/doc/ipkungfu-0.5.1...
An existing ipkungfu installation has been
detected.  The installer will back up your
old configuration directory to
/etc/bakipkungfu (deleting that directory
first if it already exists) and create a new
/etc/ipkungfu directory.  Press ctrl-c now
[root@archlinux ipkungfu]# ress enter to
continue.

Installing /etc/ipkungfu/ipkungfu.conf...  EDIT THIS FILE!
Installing /etc/ipkungfu/advanced.conf...
Installing /etc/ipkungfu/custom.conf...
Installing /etc/ipkungfu/log.conf...
Installing /etc/ipkungfu/vhosts.conf
Installing /etc/ipkungfu/accept_hosts.conf
Installing /etc/ipkungfu/deny_hosts.conf
Installing /etc/ipkungfu/redirect.conf
Installing /etc/ipkungfu/forward.conf
Installing /etc/ipkungfu/pre.conf
Installing /etc/ipkungfu/post.conf
 Installation complete.
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: ipkungfu  (Sun Mar  7 10:57:14 PST 2004)

ipkungfu comes with an installer hence the extra information when it's run.  It seems to have worked... but I am unsure.  Feedback please?

Offline

#2 2004-03-07 19:10:28

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Did it work or what? I'm confused

no, it did not ... it tried to install itself to the system directly and your package is empty

you need to patch/manipulate (e.g. with sed) the "install" script or write your own (inside the build(){} )

dont have time today ... maybe i will have a look in 2 days (tomorrow important exams at the uni :-) )


The impossible missions are the only ones which succeed.

Offline

#3 2004-03-07 19:28:47

calexico
Member
Registered: 2004-02-11
Posts: 32

Re: Did it work or what? I'm confused

Well : first problem in your PKGBUILD :

tar -xzf $pkgname-$pkgver

There is no need to do that : makepkg does it and there is no .tgz extension. More : you try to uncompress $startdir/src/$pkgname-$pkgver/$pkgname-$pkgver whereas the source file is downloaded under $startdir/src

Then, I looked at the install file, it is not possible to make a PKGBUILD file whith the way the source file is done. What makepkg does is install files in $startdir/pkg/usr in order to know what files are installed. The install script of ipkungfu just install everything without prompting where or why.

You'll have to make a new install script..

Offline

Board footer

Powered by FluxBB