From: Roman B. <bog...@in...> - 2003-10-22 17:01:26
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 pollux wrote: > However, i'm asking on how to pass arguments to the ./configure script > (like --enable-ssl); perhaps on this point we need to maintain a > separate port (wzdftpd-ssl), or I can also adapt the ./configure to > auto-detect ssl. > For all of this cases we'll need to adapt the dependancy list. No, IMHO, we need not to maintain a separate port. We can use something like this: Makefile: - ---cut 8<--- PORTNAME= wzdftpd PORTVERSION= 0.1rc5 CATEGORIES= ftp MASTER_SITES= http://www.wzdftpd.net/download/ MAINTAINER= bog...@in... COMMENT= wzdftpd is a modular multiplatform ftp server configurable online using SITE commands. USE_GMAKE= yes GNU_CONFIGURE= yes .if defined(WITH_SSL) USE_OPENSSL= yes CONFIGURE_ARGS+= --enable-ssl .endif .if defined(WITH_IPV6) CONFIGURE_ARGS+= --enable-ipv6 .endif .include <bsd.port.mk> - ---cut 8<--- Now if you want to enable ssl support you need to specefy "-DWITH_SSL" flag when running "make". And if you want to enable IPv6 support, you need to run "make" with "-DWITH_IPV6" option. > Please tell me when you think the port is ok, i'll add it on the > sourceforge download page. I think we needn't to add this on sf page becouse a FreeBSD user can just "cd /usr/ports/ftp/wzdftpd && make && make install" after appairing this port in a ports collection. Btw, this Makefile designed to run ./configure without running ./autogen.sh before, so it will not work with wzdftpd- 01rc5.tar.gz downloaded from http://www.wzdftpd.net/download/ - -Roman Bogorodskiy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iQEVAwUBP5avZCpMDQ8aPhy0AQKNlgf9EpR69LkYe01NGId95T4dNGKyQJ1a3y4B 7/yVNnRqUlpVSRzZcyMD/SpdB1Fa6rh0D3IRECDj00iS/a9+szpyD3QPxSh9jMS3 a7H8T/J0IyH8MiQHToM89ZjpDlGX0LUkW6NBLh51sVq2emclvx4KlR6voZwFQIRC 0+Sr8H6MmdFZGOAW49kDayhRTej7pOrzqXDz22SFuS2s/Q6ItJ3ghXGgRMRUBVH2 aATMR0UXq1vMDlhiHMBvhk80oE4zzu+4+VuDYziUeS8sl3YBfAFNMraBSKhUKQ85 Vdt8jw+ARh9E1938F523SJ9trr6Nie+kwfeR6wIhxiurQjGHXeXRMQ== =kU4X -----END PGP SIGNATURE----- |