Need help with buildpkg script

Ben Lindstrom mouring at etoh.eviladmin.org
Tue Mar 19 08:17:13 EST 2002


Grab the most recently snapshot from http://www.openssh.com/portable.html
and use the buildpkg from there.

Otherwise you need to change the VERSION= line from -1 to -2.

- Ben

On Mon, 18 Mar 2002, Wiese, Maria wrote:

> Ben,
> I am trying to create a package for Openssh.3-1p1, but the
> /contrib/solaris/buildpkg.sh script failes with the following errors:
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/b
> in
> mkdir /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/bin
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/s
> bin
> mkdir /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/sbin
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/m
> an
> mkdir /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/man
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/s
> hare
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/m
> an/man1
> mkdir
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/man/man1
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/m
> an/man8
> mkdir
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/man/man8
> ./mkinstalldirs
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/l
> ibexec
> mkdir /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/libexec
> ./install-sh -c -m 4711 -s ssh
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/pack
> age/usr/local/bin/ssh
> ./install-sh -c -m 0755 -s scp
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/pack
> age/usr/local/bin/scp
> ./install-sh -c -m 0755 -s ssh-add
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/
> package/usr/local/bin/ssh-add
> ./install-sh -c -m 0755 -s ssh-agent
> /tools/OpenSSH/openssh-3.1p1/contrib/solari
> s/package/usr/local/bin/ssh-agent
> ./install-sh -c -m 0755 -s ssh-keygen
> /tools/OpenSSH/openssh-3.1p1/contrib/solar
> is/package/usr/local/bin/ssh-keygen
> ./install-sh -c -m 0755 -s ssh-keyscan
> /tools/OpenSSH/openssh-3.1p1/contrib/sola
> ris/package/usr/local/bin/ssh-keyscan
> ./install-sh -c -m 0755 -s sshd
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/pac
> kage/usr/local/sbin/sshd
> etc...etc....
>
>         ./install-sh -c -m 644 sshd_config.out
> /tools/OpenSSH/openssh-3.1p1/cont
> rib/solaris/package/usr/local/etc/sshd_config; \
> else \
>         echo
> "/tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/etc
> /sshd_config already exists, install will not overwrite"; \
> fi
> if [ -f ssh_prng_cmds -a ! -z "yes" ]; then \
>         /usr/bin/perl ./fixprogs ssh_prng_cmds ; \
>         if [ ! -f
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local
> /etc/ssh_prng_cmds ] ; then \
>                 ./install-sh -c -m 644 ssh_prng_cmds.out
> /tools/OpenSSH/openssh-
> 3.1p1/contrib/solaris/package/usr/local/etc/ssh_prng_cmds; \
>         else \
>                 echo
> "/tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/l
> ocal/etc/ssh_prng_cmds already exists, install will not overwrite"; \
>         fi ; \
> fi
> if [ ! -f
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/etc/mod
> uli ]; then \
>         if [ -f
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/e
> tc/primes ]; then \
>                 echo "moving
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/packag
> e/usr/local/etc/primes to
> /tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/u
> sr/local/etc/moduli"; \
>                 mv
> "/tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/loc
> al/etc/primes"
> "/tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/e
> tc/moduli"; \
>         else \
>                 ./install-sh -c -m 644 moduli.out
> /tools/OpenSSH/openssh-3.1p1/c
> ontrib/solaris/package/usr/local/etc/moduli; \
>         fi ; \
> else \
>         echo
> "/tools/OpenSSH/openssh-3.1p1/contrib/solaris/package/usr/local/etc
> /moduli already exists, install will not overwrite"; \
> fi
> Building pkginfo file...
> Building prototype file...
> Building package..
> ## Building pkgmap from package prototype file.
> ## Processing pkginfo file.
> pkgmk: ERROR: parameter <VERSION> cannot be null
> ## Packaging was not successful.
> pkgtrans: ERROR: unable to complete package transfer
>     - no packages were selected from
> </tools/OpenSSH/openssh-3.1p1/contrib/solar
>
> The server had Openssh 2.9p2 installed, so I removed the package first, then
> re-compiled  Zlib, Openssl, openssh etc...
> and try building the new pakage.
>
> I built all the 2.92P2 pakages with your script before with no problem.
> Can you please help.
> I need to upgrade ssh on over 100 servers with diffrent solaris versions and
> platforms.  Can't do it without a package.
> Thank you
> Maria Wiese
> 916-636-8313.
>
>
>
> Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
>
>
>
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list