35 DESC="OpenSSH Secure Shell protocol Client and associated Utilities"
36
37 BUILDARCH=32
38 # Since we're only building 32-bit, don't bother with isaexec subdirs
39 CONFIGURE_OPTS_32="
40 --prefix=$PREFIX
41 --sysconfdir=/etc/ssh
42 --includedir=$PREFIX/include
43 --bindir=$PREFIX/bin
44 --sbindir=$PREFIX/sbin
45 --libdir=$PREFIX/lib
46 --libexecdir=$PREFIX/libexec
47 "
48 # Feature choices
49 CONFIGURE_OPTS="
50 --with-solaris-contracts
51 --with-solaris-projects
52 --with-tcp-wrappers
53 --with-ssl-engine
54 --with-pam
55 "
56
57 install_smf() {
58 logmsg "Installing SMF components"
59 logcmd mkdir -p $DESTDIR/lib/svc/manifest/network || \
60 logerr "--- Failed to create manifest directory"
61 logcmd cp $SRCDIR/ssh.xml $DESTDIR/lib/svc/manifest/network/ || \
62 logerr "--- Failed to copy manifest file"
63 logcmd mkdir -p $DESTDIR/lib/svc/method || \
64 logerr "--- Failed to create method directory"
65 logcmd cp $SRCDIR/method-sshd $DESTDIR/lib/svc/method/sshd || \
66 logerr "--- Failed to copy method script"
67 }
68
69 init
70 download_source $PROG $PROG $VER
71 patch_source
72 prep_build
73 build
74
75 # Remove the letter from VER for packaging
76 VER=${VER//p/.}
77
78 # Client package
79 RUN_DEPENDS_IPS="-pkg:/network/ssh -pkg:/network/ssh/ssh-key"
80 make_package client.mog
81
82 # Server package
83 PKG=network/openssh-server
84 PKGE=$(url_encode $PKG)
85 SUMMARY="OpenSSH Server"
86 DESC="OpenSSH Secure Shell protocol Server"
87 RUN_DEPENDS_IPS="-pkg:/service/network/ssh pkg:/network/openssh@$VER"
88 install_smf
89 make_package server.mog
90
91 clean_up
92
|
35 DESC="OpenSSH Secure Shell protocol Client and associated Utilities"
36
37 BUILDARCH=32
38 # Since we're only building 32-bit, don't bother with isaexec subdirs
39 CONFIGURE_OPTS_32="
40 --prefix=$PREFIX
41 --sysconfdir=/etc/ssh
42 --includedir=$PREFIX/include
43 --bindir=$PREFIX/bin
44 --sbindir=$PREFIX/sbin
45 --libdir=$PREFIX/lib
46 --libexecdir=$PREFIX/libexec
47 "
48 # Feature choices
49 CONFIGURE_OPTS="
50 --with-solaris-contracts
51 --with-solaris-projects
52 --with-tcp-wrappers
53 --with-ssl-engine
54 --with-pam
55 --with-audit=solaris
56 "
57
58 install_smf() {
59 logmsg "Installing SMF components"
60 logcmd mkdir -p $DESTDIR/lib/svc/manifest/network || \
61 logerr "--- Failed to create manifest directory"
62 logcmd cp $SRCDIR/ssh.xml $DESTDIR/lib/svc/manifest/network/ || \
63 logerr "--- Failed to copy manifest file"
64 logcmd mkdir -p $DESTDIR/lib/svc/method || \
65 logerr "--- Failed to create method directory"
66 logcmd cp $SRCDIR/method-sshd $DESTDIR/lib/svc/method/sshd || \
67 logerr "--- Failed to copy method script"
68 }
69
70 CFLAGS+="-DPAM_ENHANCEMENT -DSET_USE_PAM -DPAM_BUGFIX -DDTRACE_SFTP"
71
72 init
73 download_source $PROG $PROG $VER
74 patch_source
75 prep_build
76 run_autoconf
77 build
78
79 # Remove the letter from VER for packaging
80 VER=${VER//p/.}
81
82 # Client package
83 RUN_DEPENDS_IPS="-pkg:/network/ssh -pkg:/network/ssh/ssh-key"
84 make_package client.mog
85
86 # Server package
87 PKG=network/openssh-server
88 PKGE=$(url_encode $PKG)
89 SUMMARY="OpenSSH Server"
90 DESC="OpenSSH Secure Shell protocol Server"
91 RUN_DEPENDS_IPS="-pkg:/service/network/ssh pkg:/network/openssh@$VER"
92 install_smf
93 make_package server.mog
94
95 clean_up
96
|