Files
openwrt-packages/mail/alpine/Makefile
Wei-Ting Yang 946c364b19 treewide: assign some PKG_CPE_IDs
Assign some PKG_CPE_IDs to enhance CVE coverage.

https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=aardvark-dns
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=alpine_project
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=boringssl
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=ecdsautils
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=file_project
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=knot_resolver
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=libwrap
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=lsof_project
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=nfdump
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=nlnetlabs%20name_server_daemon
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=rclone
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=setserial
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tang_project
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tesseract_project
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=tmate-ssh-server
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=ttyd
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=uw-imap
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=v2ray-core
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=zstandard

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
(cherry picked from commit ae56deff2c)
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2025-08-07 09:25:01 +08:00

113 lines
2.9 KiB
Makefile

#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=alpine
PKG_VERSION:=2.25
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://alpineapp.email/alpine/release/src/Old
PKG_HASH:=658a150982f6740bb4128e6dd81188eaa1212ca0bf689b83c2093bb518ecf776
PKG_MAINTAINER:=Antti Seppälä <a.seppala@gmail.com>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:alpine_project:alpine
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/alpine/Default
SECTION:=mail
CATEGORY:=Mail
DEPENDS:=+libopenssl +libncurses +libpthread +libpam $(ICONV_DEPENDS) $(INTL_DEPENDS)
TITLE:=Alternatively Licensed Program for Internet News and Email
URL:=http://alpine.x10host.com/alpine/
endef
define Package/alpine/Default/description
Alpine (Alternatively Licensed Program for Internet News and Email) is a
free software email client developed at the University of Washington.
It is suitable for both the inexperienced email user as well as for
the most demanding power user.
endef
define Package/alpine
$(call Package/alpine/Default)
TITLE+= (with OpenSSL support)
DEPENDS+= +libopenssl
VARIANT:=ssl
endef
define Package/alpine/description
$(call Package/alpine/Default/description)
This package is built with OpenSSL support.
endef
define Package/alpine-nossl
$(call Package/alpine/Default)
TITLE+= (without OpenSSL support)
DEPENDS+= @BROKEN
VARIANT:=nossl
endef
define Package/alpine-nossl/description
$(call Package/alpine/Default/description)
This package is built without OpenSSL support.
endef
CONFIGURE_ARGS += \
--with-libiconv-prefix=$(ICONV_PREFIX) \
--with-libintl-prefix=$(INTL_PREFIX) \
--without-tcl \
--without-ldap \
--without-krb5 \
--with-system-pinerc=/etc/pine.conf \
--with-system-fixed-pinerc=/etc/pine.conf.fixed \
--with-supplied-regex \
--with-default-sshpath=/usr/bin/ssh \
--disable-debug \
--disable-mouse \
--with-c-client-target=slx \
$(if $(CONFIG_IPV6),--with,--without)-ipv6
CONFIGURE_VARS += \
top_builddir=$(PKG_BUILD_DIR)
ifeq ($(BUILD_VARIANT),ssl)
CONFIGURE_ARGS += \
--with-ssl-include-dir=$(STAGING_DIR)/usr/include/openssl/. \
--with-ssl-lib-dir=$(STAGING_DIR)/usr/lib
else
CONFIGURE_ARGS += \
--without-ssl
endif
define Build/Compile
( cd $(PKG_BUILD_DIR)/pith ; \
$(HOSTCC) help_h_gen.c -c -o help_h_gen.o ; \
$(HOSTCC) help_h_gen.o -o help_h_gen ; \
$(HOSTCC) help_c_gen.c -c -o help_c_gen.o ; \
$(HOSTCC) help_c_gen.o -o help_c_gen ; \
)
$(call Build/Compile/Default)
endef
define Package/alpine/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/alpine $(1)/usr/bin/
endef
Package/alpine-nossl/install = $(Package/alpine/install)
$(eval $(call BuildPackage,alpine))
$(eval $(call BuildPackage,alpine-nossl))