b9db38d370
FOO_CPE_ID_VALID really ought to be an internal implementaion detail. Packages that really want to trigger their CPE defintitions really should set one of the actual variables to a meaningful value. There are two CPE-related variables that we could chose to set to replace FOO_CPE_ID_VALID: FOO_CPE_ID_VENDOR and FOO_CPE_ID_PRODUCT. Between those two, _VENDOR more often diverges from the default than _PRODUCT does, so that's what we use. ---8<------8<------8<------8<------8<--- #!/bin/bash # Replace FOO_CPE_ID_VALID = YES with FOO_CPE_ID_VENDOR = foo_project for i in $(git grep -l -E '[^)]_CPE_ID_VALID = YES' package support); do pkg="$(basename "${i%/*}")" sed -r -i -e "s/_CPE_ID_VALID = YES/_CPE_ID_VENDOR = ${pkg}_project/" "${i}" done ---8<------8<------8<------8<------8<--- Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: update cpe-test comment to reflect pkg3 change] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# netatalk
|
|
#
|
|
################################################################################
|
|
|
|
NETATALK_VERSION = 3.1.12
|
|
NETATALK_SITE = http://downloads.sourceforge.net/project/netatalk/netatalk/$(NETATALK_VERSION)
|
|
NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
|
|
# For 0001-Fix-setting-of-LD_LIBRARY_FLAGS-shlibpath_var.patch
|
|
NETATALK_AUTORECONF = YES
|
|
NETATALK_CONFIG_SCRIPTS = netatalk-config
|
|
NETATALK_DEPENDENCIES = host-pkgconf openssl berkeleydb libgcrypt libgpg-error \
|
|
libevent
|
|
NETATALK_LICENSE = GPL-2.0+, LGPL-3.0+, MIT-like
|
|
NETATALK_LICENSE_FILES = COPYING COPYRIGHT
|
|
NETATALK_CPE_ID_VENDOR = netatalk_project
|
|
|
|
# Don't run ldconfig!
|
|
NETATALK_CONF_ENV += CC="$(TARGET_CC) -std=gnu99" \
|
|
ac_cv_path_NETA_LDCONFIG=""
|
|
NETATALK_CONF_OPTS += \
|
|
--with-cnid-cdb-backend \
|
|
--with-bdb=$(STAGING_DIR)/usr \
|
|
--with-ssl-dir=$(STAGING_DIR)/usr \
|
|
--with-libgcrypt-dir=$(STAGING_DIR)/usr \
|
|
--with-shadow \
|
|
--disable-shell-check \
|
|
--without-kerberos \
|
|
--without-pam \
|
|
--with-libevent=no \
|
|
--with-dtrace=no \
|
|
--with-mysql-config=no
|
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
NETATALK_DEPENDENCIES += acl
|
|
else
|
|
NETATALK_CONF_OPTS += --with-acls=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
|
NETATALK_DEPENDENCIES += avahi
|
|
NETATALK_CONF_OPTS += --enable-zeroconf=$(STAGING_DIR)/usr
|
|
else
|
|
NETATALK_CONF_OPTS += --disable-zeroconf
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CUPS),y)
|
|
NETATALK_DEPENDENCIES += cups
|
|
NETATALK_CONF_ENV += ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config
|
|
NETATALK_CONF_OPTS += --enable-cups
|
|
else
|
|
NETATALK_CONF_OPTS += --disable-cups
|
|
endif
|
|
|
|
define NETATALK_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
|
|
$(TARGET_DIR)/etc/init.d/S50netatalk
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|