wiki:npl/overig/pv

Dit is een perfect voorbeeld van een makkelijk pakketje dat in 1x compiled met onze standaard slackbuild:

psy regserver # mc
...
(directory aanmaken en packagename.SlackBuild.example erheen trappen)
...
psy pv # wget http://pipeviewer.googlecode.com/files/pv-1.1.0.tar.bz2
--15:48:57--  http://pipeviewer.googlecode.com/files/pv-1.1.0.tar.bz2
           => `pv-1.1.0.tar.bz2'
Resolving pipeviewer.googlecode.com... 66.102.1.82
Connecting to pipeviewer.googlecode.com|66.102.1.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81,122 (79K) [application/x-bzip2]

100%[======================================================================================================================================>] 81,122       132.70K/s

15:48:58 (132.69 KB/s) - `pv-1.1.0.tar.bz2' saved [81122/81122]

psy pv # cd ..
psy overig # cd ..
psy npl # ./rebuildcheck pv
REBUILD REQUIRED: ./pv-1.1.0.tar.bz2 has changed!
REBUILDING /home/psy/syn3/npl/overig/pv/pv.SlackBuild:
Buildroot up-to-date check: (nocheck to skip)............................................................................................................DONE
Buildroot /home/psy/syn3/builder/buildroot0 repareren/syncen...OK
/home/psy/syn3/npl/overig/pv word gekopieerd naar werkdirectory /home/psy/syn3/builder/buildroot0/tmp/build
*** Chroot naar /home/psy/syn3/builder/buildroot0 en starten van pv.SlackBuild in /tmp/build:
/dev/pts/54: No such file or directory
1 /tmp/build > basename ./pv.SlackBuild
1 /tmp/build > sed s/.SlackBuild//
26 /tmp/build > NAME=pv
1 /tmp/build > ls pv-1.1.0.tar.bz2
29 /tmp/build > SRC_ARC=pv-1.1.0.tar.bz2
1 /tmp/build > echo pv-1.1.0.tar.bz2
1 /tmp/build > sed 's/.*-//g'
1 /tmp/build > sed 's/\.tar\..*$//g'
32 /tmp/build > VER=1.1.0
1 /tmp/build > echo pv-1.1.0.tar.bz2
1 /tmp/build > sed 's/\.tar\..*$//g'
35 /tmp/build > SRC_DIR=pv-1.1.0
1 /tmp/build > arch
39 /tmp/build > ARCH=i586
47 /tmp/build > syn3_unpack pv-1.1.0.tar.bz2
pv-1.1.0.tar.bz2
54 /tmp/build > export CONFIGURE_OPTS=
54 /tmp/build > CONFIGURE_OPTS=
56 /tmp/build > export MAKE_OPTS=
56 /tmp/build > MAKE_OPTS=
60 /tmp/build > export INSTALL_OPTS=
60 /tmp/build > INSTALL_OPTS=
61 /tmp/build > syn3_build_automake pv-1.1.0 /tmp/pkg
2 /tmp/build > SRC=pv-1.1.0
3 /tmp/build > DST=/tmp/pkg
5 /tmp/build > '[' /tmp/pkg ']'
18 /tmp/build > cd pv-1.1.0
19 /tmp/build/pv-1.1.0 > ./configure --prefix=/usr --sysconfdir=/etc
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether make sets $(MAKE)... yes
checking for gzip... gzip -f9
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for main in -lintl... no
checking for main in -li... no
checking for gettext... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for getopt_long... yes
checking for getopt... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for open64... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for basename... yes
checking for snprintf... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/lsm
config.status: creating doc/quickref.1
config.status: creating doc/pv.spec
config.status: creating src/.dummy
config.status: creating src/include/config.h
config.status: executing default commands
22 /tmp/build/pv-1.1.0 > make
25 /tmp/build/pv-1.1.0 > '[' '' '!=' 1 ']'
26 /tmp/build/pv-1.1.0 > grep '^check:' Makefile
29 /tmp/build/pv-1.1.0 > grep '^test:' Makefile
35 /tmp/build/pv-1.1.0 > mkdir -p /tmp/pkg
36 /tmp/build/pv-1.1.0 > make pkgconfigdir=/usr/lib/pkgconfig install_prefix=/tmp/pkg DESTDIR=/tmp/pkg INSTALL_ROOT=/tmp/pkg install_root=/tmp/pkg install
mkdir /tmp/pkg/usr
mkdir /tmp/pkg/usr/bin
mkdir /tmp/pkg/usr/man
mkdir /tmp/pkg/usr/man/man1
mkdir /tmp/pkg/usr/share
mkdir /tmp/pkg/usr/share/locale
mkdir /tmp/pkg/usr/share/locale/de
mkdir /tmp/pkg/usr/share/locale/de/LC_MESSAGES
mkdir /tmp/pkg/usr/share/locale/fr
mkdir /tmp/pkg/usr/share/locale/fr/LC_MESSAGES
mkdir /tmp/pkg/usr/share/locale/pl
mkdir /tmp/pkg/usr/share/locale/pl/LC_MESSAGES
mkdir /tmp/pkg/usr/share/locale/pt
mkdir /tmp/pkg/usr/share/locale/pt/LC_MESSAGES
38 /tmp/build/pv-1.1.0 > exit 0
64 /tmp/build > syn3_strip /tmp/pkg
67 /tmp/build > syn3_move_dev /tmp/pkg /tmp/pkgdev
68 /tmp/build > syn3_makepkg /tmp/pkgdev pv_dev 1.1.0 i586
Not creating empty pacakge
71 /tmp/build > syn3_makepkg /tmp/pkg pv 1.1.0 i586
tar-1.13: pv.pkg.tar is the archive; not dumped
*** Build gelukt.
* Packages terugmoven naar originele directory..
/home/psy/syn3/builder/buildroot0/tmp/build/pv.arch ...
/home/psy/syn3/builder/buildroot0/tmp/build/pv.version ...
/home/psy/syn3/builder/buildroot0/tmp/build/pv.pkg ...

* Klaar ja!
Updating md5 for /home/psy/syn3/npl/overig/pv/pv.SlackBuild...
Updating dependency information for /home/psy/syn3/npl/overig/pv/pv.SlackBuild...
All rebuilds completed.
psy npl # tar -tzf overig/pv/pv.pkg
./
usr/
usr/share/
usr/share/locale/
usr/share/locale/pt/
usr/share/locale/pt/LC_MESSAGES/
usr/share/locale/pt/LC_MESSAGES/pv.mo
usr/share/locale/pl/
usr/share/locale/pl/LC_MESSAGES/
usr/share/locale/pl/LC_MESSAGES/pv.mo
usr/share/locale/fr/
usr/share/locale/fr/LC_MESSAGES/
usr/share/locale/fr/LC_MESSAGES/pv.mo
usr/share/locale/de/
usr/share/locale/de/LC_MESSAGES/
usr/share/locale/de/LC_MESSAGES/pv.mo
usr/man/
usr/man/man1/
usr/man/man1/pv.1.gz
usr/bin/
usr/bin/pv
psy npl #

w00t! gelukt. committen en klaar is kees! :)

Last modified 16 years ago Last modified on 08/08/08 00:10:42