]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/fetchmail
Add virtio blockdevice to installer
[ipfire-2.x.git] / lfs / fetchmail
CommitLineData
56031278
CS
1###############################################################################\r
2# #\r
3# IPFire.org - A linux based firewall #\r
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #\r
5# #\r
6# This program is free software: you can redistribute it and/or modify #\r
7# it under the terms of the GNU General Public License as published by #\r
8# the Free Software Foundation, either version 3 of the License, or #\r
9# (at your option) any later version. #\r
10# #\r
11# This program is distributed in the hope that it will be useful, #\r
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #\r
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\r
14# GNU General Public License for more details. #\r
15# #\r
16# You should have received a copy of the GNU General Public License #\r
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #\r
18# #\r
19###############################################################################\r
20\r
21###############################################################################\r
22# Definitions\r
23###############################################################################\r
24\r
25include Config\r
26\r
27VER = 6.3.11\r
28\r
29THISAPP = fetchmail-$(VER)\r
30DL_FILE = $(THISAPP).tar.bz2\r
31DL_FROM = $(URL_IPFIRE)\r
32DIR_APP = $(DIR_SRC)/$(THISAPP)\r
33TARGET = $(DIR_INFO)/$(THISAPP)\r
34PROG = fetchmail\r
35PAK_VER = 5\r
36\r
37DEPS = ""\r
38\r
39###############################################################################\r
40# Top-level Rules\r
41###############################################################################\r
42\r
43objects = $(DL_FILE)\r
44\r
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)\r
46\r
47$(DL_FILE)_MD5 = 43b28f296cc0024d3c727319eacae324\r
48\r
49install : $(TARGET)\r
50\r
51check : $(patsubst %,$(DIR_CHK)/%,$(objects))\r
52\r
53download :$(patsubst %,$(DIR_DL)/%,$(objects))\r
54\r
55md5 : $(subst %,%_MD5,$(objects))\r
56\r
57dist: \r
58 $(PAK)\r
59\r
60###############################################################################\r
61# Downloading, checking, md5sum\r
62###############################################################################\r
63\r
64$(patsubst %,$(DIR_CHK)/%,$(objects)) :\r
65 @$(CHECK)\r
66\r
67$(patsubst %,$(DIR_DL)/%,$(objects)) :\r
68 @$(LOAD)\r
69\r
70$(subst %,%_MD5,$(objects)) :\r
71 @$(MD5)\r
72\r
73###############################################################################\r
74# Installation Details\r
75###############################################################################\r
76\r
77$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))\r
78 @$(PREBUILD)\r
79 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)\r
80 cd $(DIR_APP) && ./configure --prefix=/usr --with-ssl --disable-nls\r
81 cd $(DIR_APP) && make $(MAKETUNING)\r
82 cd $(DIR_APP) && make install\r
83 echo "set logfile /var/log/fetchmail.log" > ~/.fetchmailrc\r
84 echo "set no bouncemail" >> ~/.fetchmailrc\r
85 echo "set postmaster root" >> ~/.fetchmailrc\r
86 echo ""\r
87 echo "#poll SERVERNAME :" >> ~/.fetchmailrc\r
88 echo "# user <username> pass <password>;" >> ~/.fetchmailrc\r
89 echo "# mda "/usr/bin/procmail -f %F -d %T";" >> ~/.fetchmailrc\r
90 install -v -m 644 $(DIR_SRC)/config/backup/includes/fetchmail /var/ipfire/backup/addons/includes/fetchmail\r
91 @rm -rf $(DIR_APP)\r
92 @$(POSTBUILD)\r