/[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.1 - (hide annotations) (download)
Fri Dec 21 22:59:42 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-popfile-0_21_2-1
Import on branch contribs7 of package smeserver-popfile-0.21.2-1.src.rpm

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     Release: %{release}
10     Copyright: GPL
11     Group: Mail/Classification
12     Source: %{name}-%{version}.tar.gz
13     Packager: Sylvain Gomez <sylvaingomez@free.fr>
14     URL: http://popfile.sourceforge.net/
15     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16     BuildArchitectures: noarch
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