diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-02-04 12:55:45 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-02-04 12:55:45 +0100 |
commit | 42042f7fb27086042a983a247a34222ead9eae82 (patch) | |
tree | 8b6080a51a26c027152cdc55418d301e0e184420 | |
parent | 896430931c3a1aa9607b0709163f085de3a16064 (diff) | |
download | openwrt-personal-pkgs-42042f7fb27086042a983a247a34222ead9eae82.tar.gz openwrt-personal-pkgs-42042f7fb27086042a983a247a34222ead9eae82.tar.bz2 openwrt-personal-pkgs-42042f7fb27086042a983a247a34222ead9eae82.zip |
Drop autopkg
This is now part of turris-build repository so need to have it here.
-rw-r--r-- | autopkg-branch.mk | 24 | ||||
-rw-r--r-- | autopkg-head.mk | 21 | ||||
-rw-r--r-- | autopkg-tag.mk | 13 | ||||
-rw-r--r-- | autopkg-tail.mk | 13 |
4 files changed, 0 insertions, 71 deletions
diff --git a/autopkg-branch.mk b/autopkg-branch.mk deleted file mode 100644 index 0e879d1..0000000 --- a/autopkg-branch.mk +++ /dev/null @@ -1,24 +0,0 @@ -# Autopkg tracking given branch -AUTOPKG_VARIANT:=branch -include $(INCLUDE_DIR)/autopkg-head.mk - -ifndef PKG_SOURCE_BRANCH -$(error You have to define PKG_SOURCE_BRANCH before pkgauto.mk include) -endif - -PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) rev-parse "$(PKG_SOURCE_BRANCH)") -PKG_VERSION:=$(shell git $(GIT_ARGS) describe --abbrev=0 --tags "$(PKG_SOURCE_BRANCH)") - -ifeq ($(PKG_VERSION),) -# Count commits since initial commit. -PKG_RELEASE:=$(shell git $(GIT_ARGS) rev-list --count "$(PKG_SOURCE_VERSION)") -# No previous version found (no tag) so we use 9999 instead -PKG_VERSION:=9999 -else -# Count commits since last version tag -PKG_RELEASE:=$(shell git $(GIT_ARGS) rev-list --count "$(PKG_VERSION)..$(PKG_SOURCE_VERSION)") -# .9999 is appended to not collide with possible existing package versions in repository -PKG_VERSION:=$(PKG_VERSION:v%=%).9999 -endif - -include $(INCLUDE_DIR)/autopkg-tail.mk diff --git a/autopkg-head.mk b/autopkg-head.mk deleted file mode 100644 index a61c964..0000000 --- a/autopkg-head.mk +++ /dev/null @@ -1,21 +0,0 @@ -ifndef AUTOPKG_VARIANT - $(error "Don't include autopkg-head.mk directly!") -endif - -ifndef PKG_NAME -$(error You have to define PKG_NAME before pkgauto.mk include) -endif -ifndef PKG_SOURCE_URL -$(error You have to define PKG_SOURCE_URL before pkgauto.mk include) -endif - -TMP_REPO_PATH=$(DL_DIR)/autopkg/$(PKG_NAME) -GIT_ARGS=--git-dir='$(TMP_REPO_PATH)' --bare - -# Clone/update git history to bare repository -$(info $(shell \ - if [ ! -d "$(TMP_REPO_PATH)" ]; then \ - git clone --mirror "$(PKG_SOURCE_URL)" "$(TMP_REPO_PATH)"; \ - else \ - git $(GIT_ARGS) remote update origin; \ - fi)) diff --git a/autopkg-tag.mk b/autopkg-tag.mk deleted file mode 100644 index b4d580c..0000000 --- a/autopkg-tag.mk +++ /dev/null @@ -1,13 +0,0 @@ -# Autopkg tracking latest version tag -AUTOPKG_VARIANT:=tag -include $(INCLUDE_DIR)/autopkg-head.mk - -ifeq ($(PKG_SOURCE_ALL_TAGS),y) -PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | sort -V | tail -1) -PKG_VERSION:=$(PKG_SOURCE_VERSION) -else -PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | grep '^v' | sort -V | tail -1) -PKG_VERSION:=$(subst v%,%,$(PKG_SOURCE_VERSION)) -endif - -include $(INCLUDE_DIR)/autopkg-tail.mk diff --git a/autopkg-tail.mk b/autopkg-tail.mk deleted file mode 100644 index 2669b54..0000000 --- a/autopkg-tail.mk +++ /dev/null @@ -1,13 +0,0 @@ -ifndef AUTOPKG_VARIANT - $(error "Don't include autopkg-tail.mk directly!") -endif - -PKG_SOURCE_PROTO:=git -PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz -PKG_SOURCE_SUBDIR:=$(PKG_NAME) -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) -HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME) - -undefine TMP_REPO_PATH -undefine GIT_ARGS -undefine AUTOPKG_VARIANT |