SPECS: gradm.spec - pam support (new), KERNVER now not needed - pr...
zbyniu
zbyniu at pld-linux.org
Sat Sep 24 01:19:11 CEST 2005
Author: zbyniu Date: Fri Sep 23 23:19:11 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- pam support (new), KERNVER now not needed
- proper static bcond
---- Files affected:
SPECS:
gradm.spec (1.29 -> 1.30)
---- Diffs:
================================================================
Index: SPECS/gradm.spec
diff -u SPECS/gradm.spec:1.29 SPECS/gradm.spec:1.30
--- SPECS/gradm.spec:1.29 Thu Sep 22 17:34:31 2005
+++ SPECS/gradm.spec Sat Sep 24 01:19:06 2005
@@ -5,7 +5,7 @@
#
# Conditional build:
%bcond_without dist_kernel # without kernel from distribution
-%bcond_without static # build static version
+%bcond_with static # build static version
#
%define grsec_version 2.1.6
%define _snap 200506131347
@@ -25,8 +25,12 @@
URL: http://www.grsecurity.net/
BuildRequires: bison
BuildRequires: flex
-%{?with_static:BuildRequires: glibc-static}
-%{!?with_static:BuildRequires: sed > 4.0}
+%if %{with static}
+BuildRequires: glibc-static
+BuildRequires: pam-static
+BuildRequires: sed > 4.0
+%endif
+BuildRequires: pam-devel
BuildRequires: texinfo
#%{?with_dist_kernel:Requires: kernel(grsecurity) > 1.9.8}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -44,17 +48,18 @@
cp -f %{SOURCE1} .
%build
-%{!?with_static:sed -i 's/LDFLAGS=-static/LDFLAGS=/' Makefile}
+%{?with_static:sed -i 's/LDFLAGS=/LDFLAGS=-static -ldl/' Makefile}
%{__make} \
CC=%{__cc} \
YACC=/usr/bin/bison \
- CFLAGS="%{rpmcflags} -DGRSEC_DIR=\\\"/etc/grsec\\\" -DKERNVER=6"
+ CFLAGS="%{rpmcflags} -DGRSEC_DIR=\\\"/etc/grsec\\\""
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/grsec}
install gradm $RPM_BUILD_ROOT%{_sbindir}
+install gradm_pam $RPM_BUILD_ROOT%{_sbindir}
install grlearn $RPM_BUILD_ROOT%{_sbindir}
install gradm.8 $RPM_BUILD_ROOT%{_mandir}/man8
install policy $RPM_BUILD_ROOT%{_sysconfdir}/grsec
@@ -78,6 +83,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.30 2005/09/23 23:19:06 zbyniu
+- pam support (new), KERNVER now not needed
+- proper static bcond
+
Revision 1.29 2005/09/22 15:34:31 arekm
- up to 2.1.6-200506131347
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/gradm.spec?r1=1.29&r2=1.30&f=u
More information about the pld-cvs-commit
mailing list