diff options
author | Maxime Hadjinlian <maxime.hadjinlian@gmail.com> | 2012-04-26 09:41:47 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-04-30 10:35:22 +0200 |
commit | bd9eba9ce307d0a634737dede8d9b18d981f2f69 (patch) | |
tree | 51fd33795c9290d8f7127134832c6397afb57d6c /package/netatalk/netatalk.mk | |
parent | 0242ae4c6b7d1daf85a5f0c191394b0a15f95c54 (diff) | |
download | buildroot-novena-bd9eba9ce307d0a634737dede8d9b18d981f2f69.tar.gz buildroot-novena-bd9eba9ce307d0a634737dede8d9b18d981f2f69.zip |
Add Netatalk
This patch add the Netatalk package to Buildroot.
[Peter: fix download URL, force c99 mode, tweak help text]
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/netatalk/netatalk.mk')
-rw-r--r-- | package/netatalk/netatalk.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/netatalk/netatalk.mk b/package/netatalk/netatalk.mk new file mode 100644 index 000000000..854402657 --- /dev/null +++ b/package/netatalk/netatalk.mk @@ -0,0 +1,36 @@ +############################################################# +# +# netatalk +# +############################################################# +NETATALK_VERSION = 2.2.2 +NETATALK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/netatalk/netatalk/$(NETATALK_VERSION)/ +NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2 + +NETATALK_DEPENDENCIES = openssl berkeleydb libgcrypt libgpg-error +NETATALK_CONF_ENV += CC="$(TARGET_CC) -std=gnu99" +NETATALK_CONF_OPT += --with-cnid-cdb-backend \ + --with-bdb=$(STAGING_DIR)/usr \ + --disable-zeroconf \ + --with-ssl-dir=$(STAGING_DIR)/usr \ + --with-libgcrypt-dir=$(STAGING_DIR)/usr \ + --with-shadow \ + --disable-shell-check \ + --without-pam + +ifeq ($(BR2_PACKAGE_CUPS),y) + NETATALK_DEPENDENCIES += cups + NETATALK_CONF_OPT += --enable-cups +else + NETATALK_CONF_OPT += --disable-cups +endif + +define NETATALK_INSTALL_EXTRA_FILES + [ -f $(TARGET_DIR)/etc/init.d/S50netatalk ] || \ + $(INSTALL) -m 0755 -D package/netatalk/S50netatalk \ + $(TARGET_DIR)/etc/init.d/S50netatalk +endef + +NETATALK_POST_INSTALL_TARGET_HOOKS += NETATALK_INSTALL_EXTRA_FILES + +$(eval $(call AUTOTARGETS)) |