-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apk: add a customfeeds.list configuration file
Analog to how we handle custom feeds in opkg, add a customfeeds.list for custom package feeds and mark it as a configuration file. Signed-off-by: Jonas Gorski <[email protected]> Link: openwrt/openwrt#16940 Signed-off-by: Christian Marangi <[email protected]>
- Loading branch information
1 parent
e031dab
commit a6e98a8
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ PKG_VERSION=3.0.0_pre$(subst -,,$(PKG_SOURCE_DATE)) | |
PKG_MAINTAINER:=Paul Spooren <[email protected]> | ||
PKG_LICENSE:=GPL-2.0-only | ||
PKG_LICENSE_FILES:=LICENSE | ||
PKG_INSTALL:=1 | ||
PKG_INSTALL:=2 | ||
|
||
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST) | ||
HOST_BUILD_DEPENDS:=lua/host | ||
|
@@ -68,6 +68,13 @@ 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 | ||
|
||
|
@@ -76,6 +83,9 @@ define Package/apk/default/install | |
|
||
$(INSTALL_DIR) $(1)/usr/lib | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libapk.so.* $(1)/usr/lib/ | ||
|
||
$(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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# add your custom package feeds here | ||
# | ||
# http://www.example.com/path/to/files/packages.adb |