The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / proftpd / proftpd.mk
1 ################################################################################
2 #
3 # proftpd
4 #
5 ################################################################################
6
7 PROFTPD_VERSION = 1.3.4d
8 PROFTPD_SOURCE = proftpd-$(PROFTPD_VERSION).tar.gz
9 PROFTPD_SITE = ftp://ftp.proftpd.org/distrib/source
10 PROFTPD_LICENSE = GPLv2+
11 PROFTPD_LICENSE_FILES = COPYING
12
13 PROFTPD_CONF_ENV = \
14         ac_cv_func_setpgrp_void=yes \
15         ac_cv_func_setgrent_void=yes
16
17 PROFTPD_CONF_OPTS = \
18         --localstatedir=/var/run \
19         --disable-static \
20         --disable-curses \
21         --disable-ncurses \
22         --disable-facl \
23         --disable-dso \
24         --enable-shadow \
25         --with-gnu-ld
26
27 ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
28 PROFTPD_CONF_OPTS += --with-modules=mod_rewrite
29 endif
30
31 # configure script doesn't handle detection of %llu format string
32 # support for printing the file size when cross compiling, breaking
33 # access for large files.
34 # We unfortunately cannot AUTORECONF the package, so instead force it
35 # on if we know we support it
36 define PROFTPD_USE_LLU
37         $(SED) 's/HAVE_LU/HAVE_LLU/' $(@D)/configure
38 endef
39 PROFTPD_PRE_CONFIGURE_HOOKS += PROFTPD_USE_LLU
40
41 define PROFTPD_MAKENAMES
42         $(MAKE1) CC="$(HOSTCC)" CFLAGS="" LDFLAGS="" -C $(@D)/lib/libcap _makenames
43 endef
44
45 PROFTPD_POST_CONFIGURE_HOOKS = PROFTPD_MAKENAMES
46
47 PROFTPD_MAKE = $(MAKE1)
48
49 define PROFTPD_INSTALL_TARGET_CMDS
50         $(INSTALL) -D -m 0755 $(@D)/proftpd $(TARGET_DIR)/usr/sbin/proftpd
51         $(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf
52 endef
53
54 define PROFTPD_INSTALL_INIT_SYSV
55         $(INSTALL) -D -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d/S50proftpd
56 endef
57
58 $(eval $(autotools-package))