Contents of /trunk/extras/proftpd/proftpd-1.3.3-r1.smage2
Parent Directory | Revision Log
Revision 5065 -
(show annotations)
(download)
Tue Mar 2 22:13:55 2010 UTC (14 years, 1 month ago) by niro
File size: 3484 byte(s)
Tue Mar 2 22:13:55 2010 UTC (14 years, 1 month ago) by niro
File size: 3484 byte(s)
auto added: ver bump to 1.3.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="proftpd" |
4 | PVER="1.3.3" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-ftp" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Highly configurable GPL-licensed FTP server software." |
11 | HOMEPAGE="http://proftpd.org/" |
12 | |
13 | DEPEND=">= sys-libs/ncurses-5.7 |
14 | >= sys-libs/pam-1.1 |
15 | >= dev-libs/openssl-0.9.8k |
16 | >= sys-apps/tcp-wrappers-7.6" |
17 | |
18 | SDEPEND=">= sys-dev/gettext-0.17" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | MODULES_CVS_REV=1.3 |
24 | |
25 | sminclude mbuild mtools |
26 | |
27 | SRC_URI=( |
28 | ftp://ftp.proftpd.org/distrib/source/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${PNAME}-1.3.1-config.patch |
31 | mirror://${PNAME}/${PNAME}-1.3.0a-cracklib.patch |
32 | mirror://${PNAME}/${PNAME}-1.3.1-find-umode_t.patch |
33 | mirror://${PNAME}/ftpusers |
34 | mirror://${PNAME}/modules.conf-${MODULES_CVS_REV} |
35 | mirror://${PNAME}/proftpd.rc |
36 | mirror://${PNAME}/proftpd.pam |
37 | mirror://${PNAME}/proftpd.logrotate |
38 | ) |
39 | |
40 | UP2DATE="updatecmd -listonly ftp://ftp.proftpd.org/distrib/source/ | grep -v 'rc[0-9]' | lasttarball" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # adjust configs to match magellan |
48 | mpatch ${PNAME}-1.3.1-config.patch || die |
49 | |
50 | # fix cracklib location in ftpasswd |
51 | mpatch ${PNAME}-1.3.0a-cracklib.patch || die |
52 | |
53 | # fix compile issues with umode_t |
54 | mpatch ${PNAME}-1.3.1-find-umode_t.patch || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | # ToDO: sql, mysql, postgres, ldap |
62 | # the modules.conf must be fixed to |
63 | # LoadModule mod_sql.c |
64 | # LoadModule mod_ldap.c |
65 | # LoadModule mod_sql_mysql.c |
66 | # LoadModule mod_sql_postgres.c |
67 | # LoadModule mod_quotatab_ldap.c |
68 | # LoadModule mod_quotatab_sql.c |
69 | |
70 | # new: mod_ban, mod_lang, mod_quotatab_radius, mod_wrap2, mod_wrap2_file, mod_wrap2_sql |
71 | |
72 | local dso_modules="mod_ratio:mod_radius:mod_rewrite:mod_tls:mod_wrap:mod_quotatab" |
73 | dso_modules="${dso_modules}:mod_quotatab_file:mod_site_misc:mod_ctrls_admin" |
74 | |
75 | # the new ones |
76 | dso_modules="${dso_modules}:mod_ban:mod_wrap2:mod_wrap2_file" |
77 | |
78 | # must be the last one, see: http://www16.de.proftpd.org/docs/contrib/mod_ifsession.html#Installation |
79 | dso_modules="${dso_modules}:mod_ifsession" |
80 | |
81 | local modules="mod_auth_pam:mod_readme" |
82 | |
83 | mconfigure \ |
84 | --sysconfdir=/etc/proftpd \ |
85 | --localstatedir=/var/run \ |
86 | --libexecdir=/usr/$(mlibdir)/proftpd \ |
87 | --enable-auth-unix \ |
88 | --enable-nls \ |
89 | --enable-ncurses \ |
90 | --enable-shadow \ |
91 | --enable-autoshadow \ |
92 | --enable-sendfile \ |
93 | --enable-ctrls \ |
94 | --enable-dso \ |
95 | --enable-ipv6 \ |
96 | --with-modules=${modules} \ |
97 | --with-shared=${dso_modules} \ |
98 | || die |
99 | |
100 | mmake -j1 || die |
101 | } |
102 | |
103 | src_install() |
104 | { |
105 | cd ${SRCDIR} |
106 | mmake DESTDIR=${BINDIR} install || die |
107 | |
108 | # install ftpuser blacklist |
109 | minstalletc ftpusers || die |
110 | |
111 | # install modules.conf |
112 | minstallfile -s modules.conf-${MODULES_CVS_REV} /etc/proftpd/modules.conf || die |
113 | sed -i "s:@@modulepath@@:/usr/$(mlibdir)/proftpd:g" \ |
114 | ${BINDIR}/etc/proftpd/modules.conf || die |
115 | |
116 | # install pam config |
117 | minstallpam proftpd.pam proftpd || die |
118 | |
119 | # install initscript |
120 | minstallrc proftpd.rc proftpd || die |
121 | |
122 | # install logrotate config |
123 | minstalllog proftpd.logrotate proftpd || die |
124 | |
125 | mkeepdir /var/run/proftpd || die |
126 | mkeepdir /var/log/proftpd || die |
127 | |
128 | minstalldocs ChangeLog COPYING CREDITS NEWS README* RELEASE_NOTES || die |
129 | minstalldocs doc/license.txt sample-configurations/*.conf || die |
130 | } |
131 | |
132 | preinstall() |
133 | { |
134 | # adding proftpd user |
135 | ${MLIBDIR}/mgroupadd -o "-g 82" proftpd |
136 | ${MLIBDIR}/museradd -o "-u 82 -g proftpd -d /dev/null -s /bin/false" proftpd |
137 | } |
138 | |
139 | postinstall() |
140 | { |
141 | mstartservice proftpd |
142 | } |
143 | |
144 | postremove() |
145 | { |
146 | mstopservice proftpd |
147 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |