I'm not sure if earlier ipf did run pkgadd from Makefile or was supposed to
but at least 3.4.30 wasn't doing that.  It creates ipfilter package
(ipf.pkg ) which you have to install as root.

----- Original Message -----
From: "Steve Macari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 17:12
Subject: ipf 3.4.31/Solaris 9 install problem


> Attempting to install ip filter 3.4.31 on a fresh Solaris 9 HW 09/02
> system (+ recommended & security patch cluster applied) with the Sun
> ONE Studio (Forte) 7 Sun compiler. Followed the installation procedure
> documented in the file INSTALL.Sol2 (make solaris; cd SunOS5; make
package),
> but it didn't actually install anything. It does actually build the
> Solaris package into <srcdir>/SunOS5/sparc-5.9/ but doesn't seem to
> run pkgadd as the documentation implies:
>
> make package
>
> This will build the package into SunOS5/<arch>/root, create a
> package file called "ipf.pkg" in the SunOS5 directory and then
> start the installation using pkgadd.
>
> As part of the postinstall script, it will install loadable
> kernel module as part of Solaris 2 (using add_drv) making it
> available for immeadiate use.
>
>
> In previous versions of ipf, "make package" was all I needed to do.
> Do I need to manually install the package, or am I doing something
> wrong?
>
> Here's the output from "make package":
>
> --------------------------------------------------------------------------
---
> [/src/ip_fil3.4.31/SunOS5]>$ sudo make package
> if [ "`uname -p`-`uname -r`" = "" ] ; then \
> $x="`uname -p`-`uname -r`"; \
> make "CPUDIR=$x" package; \
> else \
> make "CPUDIR=`uname -p`-`uname -r`" makepackage; \
> fi
> mkdir -p sparc-5.9/root/usr/include/netinet
sparc-5.9/root/opt/ipf/examples sparc-5.9/root/usr/kernel/drv
> mkdir -p sparc-5.9/root/etc/init.d /tmp/ipfpkgs
> mkdir -p sparc-5.9/root/opt/ipf/man/man1 sparc-5.9/root/opt/ipf/man/man4
sparc-5.9/root/opt/ipf/man/man5 sparc-5.9/root/opt/ipf/man/man8
> ../bsdinstall -c ipfboot sparc-5.9/root/etc/init.d
> cp ../man/*.[0-9] .
> ../bsdinstall -c ipf.conf sparc-5.9/root/usr/kernel/drv
> ../bsdinstall ipf.8 sparc-5.9/root/opt/ipf/man/man8
> ../bsdinstall ipfs.8 sparc-5.9/root/opt/ipf/man/man8
> ../bsdinstall ipnat.8 sparc-5.9/root/opt/ipf/man/man8
> ../bsdinstall ipftest.1 sparc-5.9/root/opt/ipf/man/man1
> ../bsdinstall mkfilters.1 sparc-5.9/root/opt/ipf/man/man1
> ../bsdinstall ipf.4 sparc-5.9/root/opt/ipf/man/man4
> ../bsdinstall ipnat.4 sparc-5.9/root/opt/ipf/man/man4
> ../bsdinstall ipl.4 sparc-5.9/root/opt/ipf/man/man4
> ../bsdinstall ipf.5 sparc-5.9/root/opt/ipf/man/man5
> ../bsdinstall ipnat.5 sparc-5.9/root/opt/ipf/man/man5
> ../bsdinstall ipfilter.5 sparc-5.9/root/opt/ipf/man/man5
> ../bsdinstall ipfstat.8 sparc-5.9/root/opt/ipf/man/man8
> ../bsdinstall ipmon.8 sparc-5.9/root/opt/ipf/man/man8
> cp ../rules/* sparc-5.9/root/opt/ipf/examples
> cp ../ip_fil.h ../ip_compat.h ../ip_state.h .
> cp ../ip_nat.h ../ip_frag.h ../ip_proxy.h .
> cp ../ip_auth.h .
> ../bsdinstall ip_fil.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_compat.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_state.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_nat.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_frag.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_proxy.h sparc-5.9/root/usr/include/netinet
> ../bsdinstall ip_auth.h sparc-5.9/root/usr/include/netinet
> touch sparc-5.9/ipf.pkg.common
> if [ -d sparc-5.9/sparcv7 ]; then \
>     make CPUDIR=sparc-5.9 PROTO=prototype32 PKG=ipf OBJ=sparcv7 \
> BITS=32 sparc-5.9/ipf.pkg.bin; \
>     make CPUDIR=sparc-5.9 PROTO=prototype64 PKG=ipfx OBJ=sparcv9 \
> BITS=64 sparc-5.9/ipf.pkg.bin; \
> else \
>     make CPUDIR=sparc-5.9 OBJ=. BITS=32 sparc-5.9/ipf.pkg.bin;\
> fi
> mkdir -p sparc-5.9/root/opt/ipf/bin/sparcv7 sparc-5.9/root//sbin/sparcv7
sparc-5.9/root/usr/kernel/drv/sparcv7
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipftest
sparc-5.9/root/opt/ipf/bin/sparcv7/ipftest
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipmon
sparc-5.9/root/opt/ipf/bin/sparcv7/ipmon
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipsend
sparc-5.9/root/opt/ipf/bin/sparcv7/ipsend
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipresend
sparc-5.9/root/opt/ipf/bin/sparcv7/ipresend
> ../bsdinstall -c ../mkfilters sparc-5.9/root/opt/ipf/bin/sparcv7/mkfilters
> ../bsdinstall -c sparc-5.9/sparcv7/ipf
sparc-5.9/root/usr/kernel/drv/sparcv7/ipf
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipnat
sparc-5.9/root//sbin/sparcv7/ipnat
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipf.exe
sparc-5.9/root//sbin/sparcv7/ipf
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipfs
sparc-5.9/root//sbin/sparcv7/ipfs
> ../bsdinstall -c -s sparc-5.9/sparcv7/ipfstat
sparc-5.9/root//sbin/sparcv7/ipfstat
> #-(cd sparc-5.9; rm -f copyright post* prototype pkginfo)
> (cd sparc-5.9; rm -f prototype)
> #-(cd sparc-5.9; ln -s ../copyright ../postinstall ../postremove .)
> (cd sparc-5.9; ln -s ../prototype32 prototype)
> sed -e 's/ipf/ipf/' -e "s/NAME=.*/&`if [ "32" = 64 ];then echo '
(64-bit)'; fi`/" \
>      -e "s/ARCH=.*/ARCH=`uname -p` (32-bit)/" \
> < pkginfo > sparc-5.9/pkginfo
> if [ "32" = 64 ]; then echo 'SUNW_ISA=sparcv9' >> sparc-5.9/pkginfo; fi
> (cd sparc-5.9; pkgmk -a `uname -p` -o -d /tmp/ipfpkgs)
> ## Building pkgmap from package prototype file.
> ## Processing pkginfo file.
> ## Attempting to volumize 92 entries in pkgmap.
> part  1 -- 3540 blocks, 81 entries
> ## Packaging one part.
> /tmp/ipfpkgs/ipf/pkgmap
> /tmp/ipfpkgs/ipf/pkginfo
> /tmp/ipfpkgs/ipf/root/etc/init.d/ipfboot
> /tmp/ipfpkgs/ipf/root/opt/ipf/bin/ipftest
> /tmp/ipfpkgs/ipf/root/opt/ipf/bin/ipresend
> /tmp/ipfpkgs/ipf/root/opt/ipf/bin/ipsend
> /tmp/ipfpkgs/ipf/root/opt/ipf/bin/mkfilters
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/BASIC.NAT
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/BASIC_1.FW
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/BASIC_2.FW
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.1
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.10
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.11
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.12
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.13
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.2
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.3
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.4
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.5
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.6
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.7
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.8
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.9
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/example.sr
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/firewall
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/ftp-proxy
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/ftppxy
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/nat-setup
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/nat.eg
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/server
> /tmp/ipfpkgs/ipf/root/opt/ipf/examples/tcpstate
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man1/ipftest.1
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man1/mkfilters.1
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man4/ipf.4
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man4/ipl.4
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man4/ipnat.4
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man5/ipf.5
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man5/ipnat.5
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man8/ipf.8
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man8/ipfs.8
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man8/ipfstat.8
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man8/ipmon.8
> /tmp/ipfpkgs/ipf/root/opt/ipf/man/man8/ipnat.8
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_auth.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_compat.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_fil.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_frag.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_nat.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_proxy.h
> /tmp/ipfpkgs/ipf/root/usr/include/netinet/ip_state.h
> /tmp/ipfpkgs/ipf/root/usr/kernel/drv/ipf
> /tmp/ipfpkgs/ipf/root/usr/kernel/drv/ipf.conf
> /tmp/ipfpkgs/ipf/root/usr/sbin/sparcv7/ipf
> /tmp/ipfpkgs/ipf/root/usr/sbin/sparcv7/ipfs
> /tmp/ipfpkgs/ipf/root/usr/sbin/sparcv7/ipfstat
> /tmp/ipfpkgs/ipf/root/usr/sbin/sparcv7/ipmon
> /tmp/ipfpkgs/ipf/root/usr/sbin/sparcv7/ipnat
> /tmp/ipfpkgs/ipf/install/copyright
> /tmp/ipfpkgs/ipf/install/postinstall
> /tmp/ipfpkgs/ipf/install/postremove
> /tmp/ipfpkgs/ipf/install/preremove
> ## Validating control scripts.
> ## Packaging complete.
> mkdir -p sparc-5.9/root/opt/ipf/bin/sparcv9 sparc-5.9/root//sbin/sparcv9
sparc-5.9/root/usr/kernel/drv/sparcv9
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipftest
sparc-5.9/root/opt/ipf/bin/sparcv9/ipftest
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipmon
sparc-5.9/root/opt/ipf/bin/sparcv9/ipmon
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipsend
sparc-5.9/root/opt/ipf/bin/sparcv9/ipsend
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipresend
sparc-5.9/root/opt/ipf/bin/sparcv9/ipresend
> ../bsdinstall -c ../mkfilters sparc-5.9/root/opt/ipf/bin/sparcv9/mkfilters
> ../bsdinstall -c sparc-5.9/sparcv9/ipf
sparc-5.9/root/usr/kernel/drv/sparcv9/ipf
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipnat
sparc-5.9/root//sbin/sparcv9/ipnat
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipf.exe
sparc-5.9/root//sbin/sparcv9/ipf
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipfs
sparc-5.9/root//sbin/sparcv9/ipfs
> ../bsdinstall -c -s sparc-5.9/sparcv9/ipfstat
sparc-5.9/root//sbin/sparcv9/ipfstat
> #-(cd sparc-5.9; rm -f copyright post* prototype pkginfo)
> (cd sparc-5.9; rm -f prototype)
> #-(cd sparc-5.9; ln -s ../copyright ../postinstall ../postremove .)
> (cd sparc-5.9; ln -s ../prototype64 prototype)
> sed -e 's/ipf/ipfx/' -e "s/NAME=.*/&`if [ "64" = 64 ];then echo '
(64-bit)'; fi`/" \
>      -e "s/ARCH=.*/ARCH=`uname -p` (64-bit)/" \
> < pkginfo > sparc-5.9/pkginfo
> if [ "64" = 64 ]; then echo 'SUNW_ISA=sparcv9' >> sparc-5.9/pkginfo; fi
> (cd sparc-5.9; pkgmk -a `uname -p` -o -d /tmp/ipfpkgs)
> ## Building pkgmap from package prototype file.
> ## Processing pkginfo file.
> ## Attempting to volumize 12 entries in pkgmap.
> part  1 -- 1396 blocks, 17 entries
> ## Packaging one part.
> /tmp/ipfpkgs/ipfx/pkgmap
> /tmp/ipfpkgs/ipfx/pkginfo
> /tmp/ipfpkgs/ipfx/root/usr/kernel/drv/sparcv9/ipf
> /tmp/ipfpkgs/ipfx/root/usr/sbin/sparcv9/ipf
> /tmp/ipfpkgs/ipfx/root/usr/sbin/sparcv9/ipfs
> /tmp/ipfpkgs/ipfx/root/usr/sbin/sparcv9/ipfstat
> /tmp/ipfpkgs/ipfx/root/usr/sbin/sparcv9/ipmon
> /tmp/ipfpkgs/ipfx/root/usr/sbin/sparcv9/ipnat
> /tmp/ipfpkgs/ipfx/install/copyright
> ## Validating control scripts.
> ## Packaging complete.
> touch sparc-5.9/ipf.pkg
> pkgtrans -s /tmp/ipfpkgs sparc-5.9/ipf.pkg `ls -r /tmp/ipfpkgs`
> Transferring <ipfx> package instance
> Transferring <ipf> package instance
> rm -rf /tmp/ipfpkgs/ipf*
> [/src/ip_fil3.4.31/SunOS5]>$
> --------------------------------------------------------------------------
---
>
>


Reply via email to