|
@@ -23,9 +23,16 @@
|
|
|
## SUCH DAMAGE.
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
##
|
|
|
|
|
|
|
|
-%define with_pam yes
|
|
|
|
|
-%define with_pcre no
|
|
|
|
|
-%define with_skey no
|
|
|
|
|
|
|
+# package options
|
|
|
|
|
+%ifndef with_pam
|
|
|
|
|
+%define with_pam yes
|
|
|
|
|
+%endif
|
|
|
|
|
+%ifndef with_pcre
|
|
|
|
|
+%define with_pcre no
|
|
|
|
|
+%endif
|
|
|
|
|
+%ifndef with_skey
|
|
|
|
|
+%define with_skey no
|
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: openssh
|
|
Name: openssh
|
|
@@ -37,7 +44,7 @@ Distribution: OpenPKG [REL]
|
|
|
Group: Cryptography
|
|
Group: Cryptography
|
|
|
License: BSD
|
|
License: BSD
|
|
|
Version: 3.1p1
|
|
Version: 3.1p1
|
|
|
-Release: 20020311
|
|
|
|
|
|
|
+Release: 20020312
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
|
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
|
@@ -211,9 +218,13 @@ AutoReqProv: no
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# add PAM configuration entry
|
|
# add PAM configuration entry
|
|
|
|
|
+%if "%{with_pam}" == "yes"
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "openssh"
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "openssh"
|
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
%preun
|
|
%preun
|
|
|
# remove PAM configuration entry
|
|
# remove PAM configuration entry
|
|
|
|
|
+%if "%{with_pam}" == "yes"
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "openssh"
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "openssh"
|
|
|
|
|
+%endif
|
|
|
|
|
|