/[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.4 - (show annotations) (download)
Tue Nov 25 16:20:28 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
Restore

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

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