Contents of /trunk/extras/proftpd/proftpd-1.3.1-r5.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 3483 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 3483 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/proftpd/proftpd-1.3.1-r5.smage2,v 1.1 2008/04/03 18:13:54 niro Exp $ |
2 | |
3 | PNAME="proftpd" |
4 | PVER="1.3.1" |
5 | PBUILD="r5" |
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.6 |
14 | >= sys-libs/pam-0.99 |
15 | >= dev-libs/openssl-0.9.8g |
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}-${PVER}-config.patch |
31 | mirror://${PNAME}/${PNAME}-1.3.0a-cracklib.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-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 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | cd ${SRCDIR} |
44 | |
45 | # adjust configs to match magellan |
46 | mpatch ${PNAME}-${PVER}-config.patch || die |
47 | |
48 | # fix cracklib location in ftpasswd |
49 | mpatch ${PNAME}-1.3.0a-cracklib.patch || die |
50 | |
51 | # fix compile issues with umode_t |
52 | mpatch ${PNAME}-${PVER}-find-umode_t.patch || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | # ToDO: sql, mysql, postgres, ldap |
60 | # the modules.conf must be fixed to |
61 | # LoadModule mod_sql.c |
62 | # LoadModule mod_ldap.c |
63 | # LoadModule mod_sql_mysql.c |
64 | # LoadModule mod_sql_postgres.c |
65 | # LoadModule mod_quotatab_ldap.c |
66 | # LoadModule mod_quotatab_sql.c |
67 | |
68 | # new: mod_ban, mod_lang, mod_quotatab_radius, mod_wrap2, mod_wrap2_file, mod_wrap2_sql |
69 | |
70 | local dso_modules="mod_ratio:mod_radius:mod_rewrite:mod_tls:mod_wrap:mod_quotatab" |
71 | dso_modules="${dso_modules}:mod_quotatab_file:mod_site_misc:mod_ctrls_admin" |
72 | |
73 | # the new ones |
74 | dso_modules="${dso_modules}:mod_ban:mod_wrap2:mod_wrap2_file" |
75 | |
76 | # must be the last one, see: http://www16.de.proftpd.org/docs/contrib/mod_ifsession.html#Installation |
77 | dso_modules="${dso_modules}:mod_ifsession" |
78 | |
79 | local modules="mod_auth_pam:mod_readme" |
80 | |
81 | mconfigure \ |
82 | --sysconfdir=/etc/proftpd \ |
83 | --localstatedir=/var/run \ |
84 | --libexecdir=/usr/$(mlibdir)/proftpd \ |
85 | --enable-auth-unix \ |
86 | --enable-nls \ |
87 | --enable-ncurses \ |
88 | --enable-shadow \ |
89 | --enable-autoshadow \ |
90 | --enable-sendfile \ |
91 | --enable-ctrls \ |
92 | --enable-dso \ |
93 | --enable-ipv6 \ |
94 | --with-modules=${modules} \ |
95 | --with-shared=${dso_modules} \ |
96 | || die |
97 | |
98 | mmake -j1 || die |
99 | } |
100 | |
101 | src_install() |
102 | { |
103 | cd ${SRCDIR} |
104 | mmake DESTDIR=${BINDIR} install || die |
105 | |
106 | # install ftpuser blacklist |
107 | minstalletc ftpusers || die |
108 | |
109 | # install modules.conf |
110 | minstallfile -s modules.conf-${MODULES_CVS_REV} /etc/proftpd/modules.conf || die |
111 | sed -i "s:@@modulepath@@:/usr/$(mlibdir)/proftpd:g" \ |
112 | ${BINDIR}/etc/proftpd/modules.conf || die |
113 | |
114 | # install pam config |
115 | minstallpam proftpd.pam proftpd || die |
116 | |
117 | # install initscript |
118 | minstallrc proftpd.rc proftpd || die |
119 | |
120 | # install logrotate config |
121 | minstalllog proftpd.logrotate proftpd || die |
122 | |
123 | mkeepdir /var/run/proftpd || die |
124 | mkeepdir /var/log/proftpd || die |
125 | |
126 | minstalldocs ChangeLog COPYING CREDITS NEWS README* RELEASE_NOTES || die |
127 | minstalldocs doc/license.txt sample-configurations/*.conf || die |
128 | } |
129 | |
130 | preinstall() |
131 | { |
132 | # adding proftpd user |
133 | ${MLIBDIR}/mgroupadd -o "-g 82" proftpd |
134 | ${MLIBDIR}/museradd -o "-u 82 -g proftpd -d /dev/null -s /bin/false" proftpd |
135 | } |
136 | |
137 | postinstall() |
138 | { |
139 | mstartservice proftpd |
140 | } |
141 | |
142 | postremove() |
143 | { |
144 | mstopservice proftpd |
145 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |