
3da6c104f0f5 database: use APK_DB_LAYER_ROOT in more places 5437e3abada1 audit: add usr/lib/apk to the list of protected paths under --full de9baf912245 change default db location to /usr, but detect and use /lib if exists 218fdaa1a1a2 context: close root_fd on free d33294236cb4 database: add support for only-when-modified trigger paths 36935db0ef3b package: fix memfd_create warnings on Linux kernels < 6.7 1c3fc36051a3 blob: add and use apk_blob_trim_{start,end} af5f9e3f93b0 pkg: fix v3 package size setting to installeddb 9428e34694c8 version: allow --check and --test to work without database 4b4add5326a8 test: fix unit test registration function to be unique eac18cb200d4 test: add testlib.sh for user tests 20dae205b006 mkpkg: fix creation of package with hardlinks 7bdecdca6a95 pkg: only allow tags in world and some commands 76de228bcc0b commit: show tags of world constrains 9a1b1cf68420 test: use testlib for solver.sh 99fc2a2a5efc test: remove dependency on GNU tar 6927746b9a10 Revert usrmerge/LFS related changes to apk used paths 5d287a9b06e9 apk-tools-3.0.0_pre5 8d93a79fb895 mkpkg: fix hardlink on big-endian system Link: https://github.com/openwrt/openwrt/pull/17148 Signed-off-by: Robert Marko <robimarko@gmail.com>
96 lines
2.2 KiB
Makefile
96 lines
2.2 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=apk
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL=https://gitlab.alpinelinux.org/alpine/apk-tools.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_DATE:=2024-11-30
|
|
PKG_SOURCE_VERSION:=8d93a79fb8958607f097be2c4ac97f4596faf91d
|
|
PKG_MIRROR_HASH:=565c87fac26e696c362c2fe85159cc3ed2fd27153f244c2e9dc0fd7fa67a4173
|
|
|
|
PKG_VERSION=3.0.0_pre$(subst -,,$(PKG_SOURCE_DATE))
|
|
|
|
PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_INSTALL:=2
|
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
HOST_BUILD_DEPENDS:=lua/host
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/apk/default
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
TITLE:=apk package manager
|
|
DEPENDS:=+zlib
|
|
URL:=$(PKG_SOURCE_URL)
|
|
PROVIDES:=apk
|
|
endef
|
|
|
|
define Package/apk-mbedtls
|
|
$(Package/apk/default)
|
|
TITLE += (mbedtls)
|
|
DEPENDS +=+libmbedtls
|
|
DEFAULT:=y if USE_APK
|
|
VARIANT:=mbedtls
|
|
DEFAULT_VARIANT:=1
|
|
CONFLICTS:=apk-openssl
|
|
endef
|
|
|
|
define Package/apk-openssl
|
|
$(Package/apk/default)
|
|
TITLE += (openssl)
|
|
DEPENDS +=+libopenssl
|
|
VARIANT:=openssl
|
|
endef
|
|
|
|
MESON_HOST_VARS+=VERSION=$(PKG_VERSION)
|
|
MESON_VARS+=VERSION=$(PKG_VERSION)
|
|
|
|
MESON_COMMON_ARGS = \
|
|
-Db_lto=true \
|
|
-Dcompressed-help=false \
|
|
-Ddocs=disabled \
|
|
-Dhelp=enabled \
|
|
-Dlua_version=5.1 \
|
|
-Ddefault_library=static \
|
|
-Durl_backend=wget \
|
|
-Dzstd=false
|
|
|
|
MESON_HOST_ARGS += \
|
|
$(MESON_COMMON_ARGS) \
|
|
-Dcrypto_backend=openssl
|
|
|
|
MESON_ARGS += \
|
|
$(MESON_COMMON_ARGS) \
|
|
-Dcrypto_backend=$(BUILD_VARIANT)
|
|
|
|
define Package/apk/conffiles
|
|
/etc/apk/repositories.d/customfeeds.list
|
|
endef
|
|
|
|
Package/apk-mbedtls/conffiles = $(Package/apk/conffiles)
|
|
Package/apk-openssl/conffiles = $(Package/apk/conffiles)
|
|
|
|
define Package/apk/default/install
|
|
$(INSTALL_DIR) $(1)/lib/apk/db
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/apk $(1)/usr/bin/apk
|
|
|
|
$(INSTALL_DIR) $(1)/etc/apk/repositories.d
|
|
$(INSTALL_DATA) ./files/customfeeds.list $(1)/etc/apk/repositories.d/customfeeds.list
|
|
endef
|
|
|
|
Package/apk-mbedtls/install = $(Package/apk/default/install)
|
|
Package/apk-openssl/install = $(Package/apk/default/install)
|
|
|
|
$(eval $(call BuildPackage,apk-mbedtls))
|
|
$(eval $(call BuildPackage,apk-openssl))
|
|
$(eval $(call HostBuild))
|