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

Annotation of /rpms/smeserver-popfile/contribs7/smeserver-popfile-0.21.2-1.spec

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


Revision 1.4 - (hide annotations) (download)
Sat Dec 22 22:18:30 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -1 lines
Remove Packager/Distribution (added by buildsys)

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

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