Magellan Linux

Diff of /trunk/extras/proftpd/proftpd-1.3.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5065 by niro, Tue Mar 2 22:13:55 2010 UTC revision 5066 by niro, Wed Mar 3 19:11:32 2010 UTC
# Line 12  HOMEPAGE="http://proftpd.org/" Line 12  HOMEPAGE="http://proftpd.org/"
12    
13  DEPEND=">= sys-libs/ncurses-5.7  DEPEND=">= sys-libs/ncurses-5.7
14   >= sys-libs/pam-1.1   >= sys-libs/pam-1.1
15     >= sys-libs/libcap-2.17
16   >= dev-libs/openssl-0.9.8k   >= dev-libs/openssl-0.9.8k
17   >= sys-apps/tcp-wrappers-7.6"   >= sys-apps/tcp-wrappers-7.6
18     >= sys-apps/acl-2.2
19     >= sys-apps/attr-2.4
20     >= net-nds/openldap-2.4.19
21     >= dev-db/mysql5-5.1.40"
22    
23  SDEPEND=">= sys-dev/gettext-0.17"  SDEPEND=">= sys-dev/gettext-0.17"
24    
25  SRCFILE="${PNAME}-${PVER}.tar.bz2"  SRCFILE="${PNAME}-${PVER}.tar.bz2"
26  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27    
28  MODULES_CVS_REV=1.3  MODULES_CVS_REV=1.4
29    RC_CVS_REV=1.2
30    
31  sminclude mbuild mtools  sminclude mbuild mtools
32    
33  SRC_URI=(  SRC_URI=(
34   ftp://ftp.proftpd.org/distrib/source/${SRCFILE}   ftp://ftp.proftpd.org/distrib/source/${SRCFILE}
35   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
36   mirror://${PNAME}/${PNAME}-1.3.1-config.patch   mirror://${PNAME}/${PNAME}-${PVER}-config.patch
37     mirror://${PNAME}/${PNAME}-${PVER}-config-pam.patch
38     mirror://${PNAME}/${PNAME}-${PVER}-config-tls.patch
39     mirror://${PNAME}/${PNAME}-${PVER}-config-tls-cosmetic.patch
40     mirror://${PNAME}/${PNAME}-${PVER}-config-ban.patch
41     mirror://${PNAME}/${PNAME}-${PVER}-config-ldap.patch
42     mirror://${PNAME}/${PNAME}-${PVER}-config-anonymous.patch
43   mirror://${PNAME}/${PNAME}-1.3.0a-cracklib.patch   mirror://${PNAME}/${PNAME}-1.3.0a-cracklib.patch
  mirror://${PNAME}/${PNAME}-1.3.1-find-umode_t.patch  
44   mirror://${PNAME}/ftpusers   mirror://${PNAME}/ftpusers
45   mirror://${PNAME}/modules.conf-${MODULES_CVS_REV}   mirror://${PNAME}/modules.conf-${MODULES_CVS_REV}
46   mirror://${PNAME}/proftpd.rc   mirror://${PNAME}/proftpd.rc-${RC_CVS_REV}
47     mirror://${PNAME}/proftpd.confd
48   mirror://${PNAME}/proftpd.pam   mirror://${PNAME}/proftpd.pam
49   mirror://${PNAME}/proftpd.logrotate   mirror://${PNAME}/proftpd.logrotate
50  )  )
# Line 45  src_prepare() Line 57  src_prepare()
57   cd ${SRCDIR}   cd ${SRCDIR}
58    
59   # adjust configs to match magellan   # adjust configs to match magellan
60   mpatch ${PNAME}-1.3.1-config.patch || die   mpatch ${PNAME}-${PVER}-config.patch || die
61    
62     # enable pam support
63     mpatch ${PNAME}-${PVER}-config-pam.patch || die
64    
65     # enable tls support
66     mpatch ${PNAME}-${PVER}-config-tls.patch || die
67    
68     # fix tls description
69     mpatch ${PNAME}-${PVER}-config-tls-cosmetic.patch || die
70    
71     # enable ban-list support
72     mpatch ${PNAME}-${PVER}-config-ban.patch || die
73    
74     # enable ldap support
75     mpatch ${PNAME}-${PVER}-config-ldap.patch || die
76    
77     # enable anonymous support
78     mpatch ${PNAME}-${PVER}-config-anonymous.patch || die
79    
80   # fix cracklib location in ftpasswd   # fix cracklib location in ftpasswd
81   mpatch ${PNAME}-1.3.0a-cracklib.patch || die   mpatch ${PNAME}-1.3.0a-cracklib.patch || die
   
  # fix compile issues with umode_t  
  mpatch ${PNAME}-1.3.1-find-umode_t.patch || die  
82  }  }
83    
84  src_compile()  src_compile()
85  {  {
86   cd ${SRCDIR}   cd ${SRCDIR}
87    
88   # ToDO: sql, mysql, postgres, ldap   # ToDO: postgres
89   # the modules.conf must be fixed to   # the modules.conf must be fixed to
  #   LoadModule mod_sql.c  
  #   LoadModule mod_ldap.c  
  #   LoadModule mod_sql_mysql.c  
90   #   LoadModule mod_sql_postgres.c   #   LoadModule mod_sql_postgres.c
  #   LoadModule mod_quotatab_ldap.c  
  #   LoadModule mod_quotatab_sql.c  
91    
92   # new: mod_ban, mod_lang, mod_quotatab_radius, mod_wrap2, mod_wrap2_file, mod_wrap2_sql   # new: mod_ban, mod_lang, mod_quotatab_radius, mod_wrap2, mod_wrap2_file, mod_wrap2_sql
93     # mod_facl, mod_ldap, mod_sql, mod_sql_passwd, mod_sql_mysql, mod_sftp, mod_sftp_pam,
94     # mod_sftp_sql, mod_quotatab_ldap, mod_quotatab_radius, mod_quotatab_sql, mod_tls_shmchache
95    
96   local dso_modules="mod_ratio:mod_radius:mod_rewrite:mod_tls:mod_wrap:mod_quotatab"   local dso_modules="mod_ratio:mod_radius:mod_rewrite:mod_tls:mod_wrap:mod_quotatab"
97   dso_modules="${dso_modules}:mod_quotatab_file:mod_site_misc:mod_ctrls_admin"   dso_modules+=":mod_quotatab_file:mod_site_misc:mod_ctrls_admin"
98    
99   # the new ones   # the new ones
100   dso_modules="${dso_modules}:mod_ban:mod_wrap2:mod_wrap2_file"   dso_modules+=":mod_ban:mod_wrap2:mod_wrap2_file"
101     dso_modules+=":mod_sftp:mod_sftp_pam:mod_shaper"
102     dso_modules+=":mod_quotatab_radius:mod_tls_shmcache"
103    
104     # mysql
105     dso_modules+=":mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sftp_sql:mod_quotatab_sql"
106    
107     # ldap
108     dso_modules+="mod_ldap:mod_quotatab_ldap"
109    
110     # acl
111     dso_modules+=":mod_facl"
112    
113   # must be the last one, see: http://www16.de.proftpd.org/docs/contrib/mod_ifsession.html#Installation   # must be the last one, see: http://www16.de.proftpd.org/docs/contrib/mod_ifsession.html#Installation
114   dso_modules="${dso_modules}:mod_ifsession"   dso_modules+=":mod_ifsession"
115    
116     # non shared modules
117   local modules="mod_auth_pam:mod_readme"   local modules="mod_auth_pam:mod_readme"
118    
119   mconfigure \   mconfigure \
120   --sysconfdir=/etc/proftpd \   --sysconfdir=/etc/proftpd \
121   --localstatedir=/var/run \   --localstatedir=/var/run/proftpd \
122   --libexecdir=/usr/$(mlibdir)/proftpd \   --libexecdir=/usr/$(mlibdir)/proftpd \
123   --enable-auth-unix \   --enable-shadow \
124     --enable-autoshadow \
125     --enable-auth-pam \
126   --enable-nls \   --enable-nls \
127   --enable-ncurses \   --enable-ncurses \
128   --enable-shadow \   --enable-shadow \
# Line 93  src_compile() Line 131  src_compile()
131   --enable-ctrls \   --enable-ctrls \
132   --enable-dso \   --enable-dso \
133   --enable-ipv6 \   --enable-ipv6 \
134     --enable-openssl \
135     --with-includes=/usr/include/openssl \
136     --with-includes=/usr/include/mysql \
137     --enable-cap \
138     --enable-facl \
139     --enable-auth-file \
140   --with-modules=${modules} \   --with-modules=${modules} \
141   --with-shared=${dso_modules} \   --with-shared=${dso_modules} \
142   || die   || die
# Line 117  src_install() Line 161  src_install()
161   minstallpam proftpd.pam proftpd || die   minstallpam proftpd.pam proftpd || die
162    
163   # install initscript   # install initscript
164   minstallrc proftpd.rc proftpd || die   minstallrc proftpd.rc-${RC_CVS_REV} proftpd || die
165    
166     # install rc config
167     minstallconf proftpd.conf proftpd || die
168    
169   # install logrotate config   # install logrotate config
170   minstalllog proftpd.logrotate proftpd || die   minstalllog proftpd.logrotate proftpd || die

Legend:
Removed from v.5065  
changed lines
  Added in v.5066