rpms/389-admin/F-12 .cvsignore, 1.7, 1.8 389-admin-git-local.sh, 1.5, 1.6 389-admin-git.sh, 1.5, 1.6 389-admin.spec, 1.13, 1.14 sources, 1.10, 1.11
Richard Allen Megginson
rmeggins at fedoraproject.org
Tue Jan 26 02:19:01 UTC 2010
- Previous message: rpms/389-admin/F-11 .cvsignore, 1.7, 1.8 389-admin-git-local.sh, 1.5, 1.6 389-admin-git.sh, 1.5, 1.6 389-admin.spec, 1.11, 1.12 sources, 1.9, 1.10
- Next message: rpms/389-admin/devel .cvsignore, 1.7, 1.8 389-admin-git-local.sh, 1.5, 1.6 389-admin-git.sh, 1.5, 1.6 389-admin.spec, 1.12, 1.13 sources, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rmeggins
Update of /cvs/extras/rpms/389-admin/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32515/F-12
Modified Files:
.cvsignore 389-admin-git-local.sh 389-admin-git.sh
389-admin.spec sources
Log Message:
this is the 1.1.11.a1 release - this is the first release that supports SELinux enforcement
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/389-admin/F-12/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- .cvsignore 21 Jan 2010 00:04:28 -0000 1.7
+++ .cvsignore 26 Jan 2010 02:19:01 -0000 1.8
@@ -1 +1 @@
-389-admin-1.1.10.tar.bz2
+389-admin-1.1.11.a1.tar.bz2
Index: 389-admin-git-local.sh
===================================================================
RCS file: /cvs/extras/rpms/389-admin/F-12/389-admin-git-local.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- 389-admin-git-local.sh 21 Jan 2010 00:04:28 -0000 1.5
+++ 389-admin-git-local.sh 26 Jan 2010 02:19:01 -0000 1.6
@@ -1,7 +1,7 @@
#!/bin/bash
DATE=`date +%Y%m%d`
-VERSION=1.1.10
+VERSION=1.1.11.a1
PKGNAME=389-admin
TAG=${TAG:-$PKGNAME-$VERSION}
SRCNAME=${PKGNAME}-${VERSION}
Index: 389-admin-git.sh
===================================================================
RCS file: /cvs/extras/rpms/389-admin/F-12/389-admin-git.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- 389-admin-git.sh 21 Jan 2010 00:04:28 -0000 1.5
+++ 389-admin-git.sh 26 Jan 2010 02:19:01 -0000 1.6
@@ -1,7 +1,7 @@
#!/bin/bash
DATE=`date +%Y%m%d`
-VERSION=1.1.10
+VERSION=1.1.11.a1
PKGNAME=389-admin
#SRCNAME=$PKGNAME-$VERSION-$DATE
SRCNAME=$PKGNAME-$VERSION
Index: 389-admin.spec
===================================================================
RCS file: /cvs/extras/rpms/389-admin/F-12/389-admin.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- 389-admin.spec 21 Jan 2010 00:04:28 -0000 1.13
+++ 389-admin.spec 26 Jan 2010 02:19:01 -0000 1.14
@@ -1,12 +1,14 @@
%global pkgname dirsrv
# for a pre-release, define the prerel field - comment out for official release
-###%global prerel
-# also need the relprefix field for a pre-release - also comment out for official release
-###%global relprefix
+%global prerel .a1
+# also need the relprefix 0. field for a pre-release - also comment out for official release
+%global relprefix 0.
+
+%global selinux_variants mls targeted
Summary: 389 Administration Server (admin)
Name: 389-admin
-Version: 1.1.10
+Version: 1.1.11
Release: %{?relprefix}1%{?prerel}%{?dist}
License: GPLv2 and ASL 2.0
URL: http://port389.org/
@@ -27,6 +29,12 @@ BuildRequires: apr-devel
BuildRequires: mod_nss
BuildRequires: 389-adminutil-devel
+# The following are needed to build the SELinux policy
+BuildRequires: checkpolicy
+BuildRequires: selinux-policy-devel
+BuildRequires: /usr/share/selinux/devel/Makefile
+BuildRequires: 389-ds-base-selinux-devel
+
Requires: 389-ds-base
Requires: mod_nss
# the following are needed for some of our scripts
@@ -49,12 +57,22 @@ for 389 Directory Server. It provides s
be used through a web browser. It provides the authentication, access control,
and CGI utilities used by the console.
+%package selinux
+Summary: SELinux policy for 389 Administration Server
+Group: System Environment/Daemons
+Requires: selinux-policy
+Requires: %{name} = %{version}-%{release}
+Requires: 389-ds-base-selinux
+
+%description selinux
+SELinux policy for the 389 Adminstration Server package.
+
%prep
%setup -q -n %{name}-%{version}%{?prerel}
%patch1
%build
-%configure --disable-rpath
+%configure --disable-rpath --with-selinux
# Generate symbolic info for debuggers
export XCFLAGS=$RPM_OPT_FLAGS
@@ -65,6 +83,18 @@ export USE_64=1
make %{?_smp_mflags}
+# Build the SELinux policy module for each variant
+cd selinux-built
+cp %{_datadir}/%{pkgname}-selinux/%{pkgname}.if .
+cp %{_datadir}/%{pkgname}-selinux/%{pkgname}.te .
+for selinuxvariant in %{selinux_variants}
+do
+ make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
+ mv %{pkgname}-admin.pp %{pkgname}-admin.pp.${selinuxvariant}
+ make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
+done
+cd -
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -80,6 +110,16 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.la
+# Install the SELinux policy
+cd selinux-built
+for selinuxvariant in %{selinux_variants}
+do
+ install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
+ install -p -m 644 %{pkgname}-admin.pp.${selinuxvariant} \
+ %{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{pkgname}-admin.pp
+done
+cd -
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -143,6 +183,34 @@ if %{pkgname}admin_exists then
os.execute('/sbin/service %{pkgname}-admin start >/dev/null 2>&1')
end
+%post selinux
+if [ "$1" -le "1" ] ; then # First install
+for selinuxvariant in %{selinux_variants}
+do
+ semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/%{pkgname}-admin.pp 2>/dev/null || :
+done
+fixfiles -R %{name} restore || :
+/sbin/service %{pkgname}-admin condrestart > /dev/null 2>&1 || :
+fi
+
+%preun selinux
+if [ "$1" -lt "1" ]; then # Final removal
+for selinuxvariant in %{selinux_variants}
+do
+ semodule -s ${selinuxvariant} -r %{pkgname}-admin 2>/dev/null || :
+done
+fixfiles -R %{name} restore || :
+/sbin/service %{pkgname}-admin condrestart > /dev/null 2>&1 || :
+fi
+
+%postun selinux
+if [ "$1" -ge "1" ]; then # Upgrade
+for selinuxvariant in %{selinux_variants}
+do
+ semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/%{pkgname}-admin.pp 2>/dev/null || :
+done
+fi
+
%files
%defattr(-,root,root,-)
%doc LICENSE
@@ -156,7 +224,15 @@ end
%{_libdir}/%{pkgname}
%{_mandir}/man8/*
+%files selinux
+%defattr(-,root,root,-)
+%{_datadir}/selinux/*/%{pkgname}-admin.pp
+
%changelog
+* Thu Jan 21 2010 Nathan Kinder <nkinder at redhat.com> - 1.1.11.a1-0.1
+- the 1.1.11.a1 release
+- added SELinux subpackage
+
* Wed Jan 20 2010 Rich Megginson <rmeggins at redhat.com> - 1.1.10-1
- the 1.1.10 release
- allow server to run unconfined if not built with selinux support
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/389-admin/F-12/sources,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- sources 21 Jan 2010 00:04:28 -0000 1.10
+++ sources 26 Jan 2010 02:19:01 -0000 1.11
@@ -1 +1 @@
-55f4b856e31916a7fa05afe5b15be9c4 389-admin-1.1.10.tar.bz2
+2d5c5e2058429086bbced744590aba7f 389-admin-1.1.11.a1.tar.bz2
- Previous message: rpms/389-admin/F-11 .cvsignore, 1.7, 1.8 389-admin-git-local.sh, 1.5, 1.6 389-admin-git.sh, 1.5, 1.6 389-admin.spec, 1.11, 1.12 sources, 1.9, 1.10
- Next message: rpms/389-admin/devel .cvsignore, 1.7, 1.8 389-admin-git-local.sh, 1.5, 1.6 389-admin-git.sh, 1.5, 1.6 389-admin.spec, 1.12, 1.13 sources, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list