/[smecontribs]/rpms/smeserver-popfile/contribs7/smeserver-popfile.spec
ViewVC logotype

Contents of /rpms/smeserver-popfile/contribs7/smeserver-popfile.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 26 01:05:35 2008 UTC (16 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-popfile-0_21_2-1_el4_sme
Remove version from spec

1 %define name smeserver-popfile
2 %define version 0.21.2
3 %define release 1
4 %define rpmver 4.0.4
5
6 Summary: POPFile is a POP3 proxy
7 Name: %{name}
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Group: Mail/Classification
12 Source: %{name}-%{version}.tar.gz
13 URL: http://popfile.sourceforge.net/
14 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
15 BuildArchitectures: noarch
16 BuildRequires: e-smith-devtools
17 Requires: e-smith-base, e-smith-release >= 7, perl-DBD-SQLite >= 1.13-1
18
19 %description
20 This RPM is an unofficial addon for the SME Server 7.x.
21 The target audience is the Linux/E-smith administrator
22 who wants to add a POP3 Proxy to filter and classify mails.
23 After installation open your webbrowser at
24 http://your_e-smith-server_adress:7676
25
26
27
28 %changelog
29 * Mon Jun 5 2007 Sylvain Gomez <sylvaingomez@free.fr>
30 - 0.21.2-1
31 - Original version
32
33 %prep
34 rm -rf $RPM_BUILD_ROOT
35
36 %setup
37
38 %build
39
40 %install
41 /bin/rm -rf $RPM_BUILD_ROOT
42 (/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
43 /bin/rm -f %{name}-%{version}-filelist
44 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
45
46 %files -f %{name}-%{version}-filelist
47
48 %defattr(-,root,root)
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %pre
54
55 %post
56 # Variables
57 SRVNAME=$(/sbin/e-smith/db configuration get SystemName)
58
59 # Creating and starting service
60 ln -f -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98popfile
61 /sbin/e-smith/db configuration set popfile service status enabled
62 /sbin/e-smith/signal-event remoteaccess-update
63 service popfile start
64
65 echo " "
66 echo "-------------------------------------------------------------------------------"
67 echo "POPFile Installation finished."
68 echo "Please go to http://$SRVNAME:7676 and protect access with a password!"
69 echo " "
70 echo "To use POPFile, you must configure your mail clients to use the new POP3 proxy."
71 echo "Configuration to be modified is:"
72 echo " - POP3 server: $SRVNAME"
73 echo " - Login : $SRVNAME:your-sme-login"
74 echo " - POP3 Port : 1100"
75 echo "-------------------------------------------------------------------------------"
76
77 %preun
78 # Deleting and unregistering service
79 service popfile stop
80 sleep 3
81 rm -f /etc/rc7.d/S98popfile
82 rm -f /etc/rc.d/init.d/popfile
83 /sbin/e-smith/config delete popfile
84 /sbin/e-smith/signal-event remoteaccess-update
85
86 # Removing install directory
87 rm -rf /opt/popfile
88
89 %postun

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed