Skip to content

Commit

Permalink
SFEdovecot.spec: remove %post, %preun, %postun,
Browse files Browse the repository at this point in the history
adjust files in %doc, adjust wildcard for %{_docdir}/%{src_name}/*
bump to 1.1.7, adjust nameing in SMF manifest dovecot.xml (FMRI name change to site/dovecot:default)



git-svn-id: https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk@1613 3354ce84-6216-0410-ad3d-afc617165c18
  • Loading branch information
tom68 committed Jan 7, 2009
1 parent ac7275d commit 8394b7a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 48 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,9 @@
* SFEsamba.spec: remove %post, %preun, %postun,
bump to version 3.2.7 to solve CVE-2009-0022 and CVE-2008-4314,
clean %doc, add mkdir %{_docdir} for compatibility to older pkgbuild/pkgtool
* SFEdovecot.spec: remove %post, %preun, %postun,
adjust files in %doc, adjust wildcard for %{_docdir}/%{src_name}/*
bump to 1.1.7, adjust nameing in SMF manifest dovecot.xml (FMRI name change to site/dovecot:default)

2009-01-07 Brian Cameron <brian.cameron@sun.com>

Expand Down
53 changes: 10 additions & 43 deletions SFEdovecot.spec
@@ -1,8 +1,9 @@
#
# spec file for package SFEdovecot
#
# works: snv105 / pkgbuild 1.3.91 / Sun Ceres C 5.10 SunOS_i386 2008/10/22


##TODO## create SMF manifest to autostart dovecot
##TODO## check if adding pam settings is necessary (by one-time SMF service)
##TODO## add convenient helper for generating a default configuration file, by default with SSL enabled
##TODO## add convenient helper for generating SSL-certificates, make one-time SMF service calling that helper on request
Expand All @@ -17,7 +18,7 @@ Name: SFEdovecot
Summary: dovecot - A Maildir based pop3/imap email daemon
URL: http://www.dovecot.org
#note: see downloadversion above
Version: 1.1.4
Version: 1.1.7
Source: http://dovecot.org/releases/%{downloadversion}/%{src_name}-%{version}.tar.gz
Source2: dovecot.xml

Expand All @@ -41,7 +42,7 @@ Requires: %name

%prep
%setup -q -n %{src_name}-%version
cp %{SOURCE2} dovecot.xml
cp -p %{SOURCE2} dovecot.xml


%build
Expand Down Expand Up @@ -91,57 +92,19 @@ cp dovecot.xml ${RPM_BUILD_ROOT}/var/svc/manifest/site/

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}

%post -n SFEdovecot-root

if [ -f /lib/svc/share/smf_include.sh ] ; then
. /lib/svc/share/smf_include.sh
smf_present
if [ $? -eq 0 ]; then
/usr/sbin/svccfg import /var/svc/manifest/site/dovecot.xml
fi
fi

exit 0

%preun -n SFEdovecot-root
if [ -f /lib/svc/share/smf_include.sh ] ; then
. /lib/svc/share/smf_include.sh
smf_present
if [ $? -eq 0 ]; then
if [ `svcs -H -o STATE svc:/site/dovecot:default` != "disabled" ]; then
svcadm disable svc:/site/dovecot:default
fi
fi
fi


%postun -n SFEdovecot-root

if [ -f /lib/svc/share/smf_include.sh ] ; then
. /lib/svc/share/smf_include.sh
smf_present
if [ $? -eq 0 ] ; then
/usr/sbin/svccfg export svc:/site/dovecot:default > /dev/null 2>&1
if [ $? -eq 0 ] ; then
/usr/sbin/svccfg delete -f svc:/site/dovecot:default
fi
fi
fi
exit 0

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, bin)
%doc README ChangeLog CREDITS COPYING INSTALL NEWS AUTHORS TODO ABOUT-NLS
%doc README ChangeLog COPYING INSTALL NEWS AUTHORS TODO
%dir %attr (0755,root,bin) %{_sbindir}
%{_sbindir}/*
%dir %attr (0755,root,bin) %{_libdir}
%{_libdir}/%{src_name}/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_docdir}
%{_docdir}/*
%{_docdir}/%{src_name}/*



Expand All @@ -156,6 +119,10 @@ rm -rf $RPM_BUILD_ROOT


%changelog
* Wed Jan 7 2009 - Thomas Wagner
- remove %post, %preun, %postun
- adjust files in %doc, adjust wildcard for %{_docdir}/%{src_name}/*
- bump to 1.1.7
* Mon Oct 06 2008 - Thomas Wagner
- bump to 1.1.4
- add SMF FMRI / manifest for site/dovecot
Expand Down
9 changes: 4 additions & 5 deletions ext-sources/dovecot.xml
Expand Up @@ -10,13 +10,13 @@ www.aulaunix.org
This program is free software; you can redistribute it and/ormodify it under the terms of version 2 of the GNU General PublicLicense as published by the Free Software Foundation.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA
-->

<service_bundle type='manifest' name='dovecot'>
<service name='site' type='service' version='1'>
<service_bundle type='manifest' name='SFEdovecot:dovecot'>
<service name='site/dovecot' type='service' version='1'>
<create_default_instance enabled='false' />

<instance name='dovecot' enabled='false'>
<single_instance/>

<dependency name='net-loopback' grouping='require_any'
restart_on='none' type='service'>
Expand Down Expand Up @@ -71,7 +71,6 @@ This program is free software; you can redistribute it and/ormodify it under the
<propval name='ignore_error' type='astring' value='core,signal' />
</property_group>

</instance>
<!--
DESCRIBE THE SERVICE
-->
Expand Down

0 comments on commit 8394b7a

Please sign in to comment.