Posts

Showing posts from March, 2009

ProFTPD manifest xml for opensolaris

In order to start/stop/refresh proftpd using SMF method, you need two files, the manifest xml file and the start/stop/refresh proftpd script. First, the xml file: <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type="manifest" name="proftpd-server">  <service  name="network/proftpd-server"    type="service"    version="1">   <create_default_instance enabled="false">   <single_instance>    <dependency name='net-loopback'   grouping='require_all'   restart_on='none'   type='service'>   <service_fmri value="'svc:/network/loopback'">   </dependency>   <dependency name='net-physical'   grouping='require_all'   ...

ProFTPD in opensolaris

"Highly configurable GPL-licensed FTP server software", but in opensolaris the provided package from blastwave lacks in support of postgresql connectivity. So, the solution is to download the tar.gz from here and compile it. Here we go : root@freya:~/work/proftpd# ls proftpd-1.3.2.tar.gz root@freya:~/work/proftpd# tar -xvf proftpd-1.3.2.tar.gz [...] After unpacking type in the proftpd dir: ./configure --prefix=/usr/proftpd-1.3.2 --enable-dso --with-modules=mod_tls --with-shared=mod_sql:mod_sql_postgres:mod_quotatab:mod_quotatab_file:mod_quotatab_sql --with-includes=/usr/postgres/8.3/include/ --with-libraries=/usr/postgres/8.3/lib/ !!!!! the order of shared modules is important, mod_sql , must be in front of mod_sql_postgres , or else your proftpd server will not start !!!! If everything is ok, run make & make install This will install proftpd in /usr/proftpd-1.3.2 dir (you can change the prefix) Also, in order to have postgresql connectivity from proftpd, you need to ...