--- smeserver-ipsec/F/smeserver-ipsec.spec 2006/01/04 00:35:21 1.1.1.1 +++ smeserver-ipsec/F/smeserver-ipsec.spec 2007/05/06 06:22:49 1.9 @@ -1,22 +1,51 @@ Summary: IPSEC support for SME Server %define name smeserver-ipsec Name: %{name} -%define version 0.0.1 -%define release 01 +%define version 0.0.2 +%define release 6 Version: %{version} -Release: %{release} -Copyright: Freely distributable +Release: %{release}%{?dist} +License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.gz +Patch0: smeserver-ipsec-0.0.1-relocatemastemplates.patch +Patch1: smeserver-ipsec-0.0.1-dbdefaults.patch +Patch2: smeserver-ipsec-modulehack.patch BuildRoot: /var/tmp/e-smith-buildroot BuildArchitectures: noarch Requires: e-smith-release >= 7 Requires: ipsec-tools +BuildRequires: e-smith-devtools >= 1.13.1-03 AutoReqProv: no Obsoletes: dmc-mitel-freeswan Obsoletes: devinfo-freeswan %changelog +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Wed Jan 4 2006 Gordon Rowell 0.0.2-05 +- Add a hack to the local event to force loading of the af_key module + until we work out why it isn't being loaded automatically + +* Wed Jan 4 2006 Gordon Rowell 0.0.2-04 +- Comment out createlinks in build for now, until the old freeswan + based ones are removed/updated. Thankfully we don't need to do most + of this with SME7 and ipsec-tools + +* Wed Jan 4 2006 Gordon Rowell 0.0.2-03 +- Add db defaults ipsec=service|status|disabled + +* Wed Jan 4 2006 Gordon Rowell 0.0.2-02 +- Relocate masq fragments to templates from templates-custom + +* Wed Jan 4 2006 Gordon Rowell 0.0.2-01 +- Removed symlinks from imported tarball + * Wed Jan 4 2006 Gordon Rowell 0.0.1-01 - Package renamed to smeserver-ipsec (from devinfo-freeswan) @@ -168,16 +197,21 @@ through the web manager %prep %setup +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build -perl createlinks +# perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f e-smith-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --file /etc/e-smith/events/local/ipsec-module-hack 'attr(0755,root,root)' \ + > %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist %defattr(-,root,root)