Commit c6cbfa62 authored by Heinz N. Gies's avatar Heinz N. Gies

Update pkgng.mk

parent 00606b59
Pipeline #12325362 passed with stages
in 7 minutes and 26 seconds
TARGET_DIR ?=/usr/local/lib
RC_DIR ?=/usr/local/etc/rc.d
FILE ?=$(COMPONENT)-$(VERSION)$(SUFFIX)
BLOCK_SIZE ?=65536
STAGE_DIR ?=deploy
TMP_DIR ?=tmp
PKG_CATEGORY ?=fifo
......@@ -17,22 +15,14 @@ $(STAGE_DIR)/plist:
-rm $(STAGE_DIR)/plist || true
(cd $(STAGE_DIR); find * -type f | sort | grep -v '^+' | grep -v '^plist$$') >> $(STAGE_DIR)/plist
clean-pkg:
$(STAGE_DIR)/+MANIFEST: +MANIFEST.in
sed -e 's/__VNS__/${VERSION}/' +MANIFEST.in > $(STAGE_DIR)/+MANIFEST
sed -e 's/__VNS__/${VERSION}${SUFFIX}/' +MANIFEST.in > $(STAGE_DIR)/+MANIFEST
( echo 'deps: { '; \
for dep in ${DEPS}; do \
pkg query --glob " \"%n\" : { \"origin\" : \"%o\", \"version\" : \"%v\" }," "$$dep"; \
done ; \
echo '}' ) >> $(STAGE_DIR)/+MANIFEST
tmp/$(FILE).tgz: dep_list package_list +MANIFEST
-rm -r tmp
mkdir tmp
pkg_create -i install.sh -k deinstall.sh -D displayfile -B build-info -c comment -d description -f packlist -I $(TARGET_DIR) -p $(STAGE_DIR) -U tmp/$(FILE).tgz
clean-pkg:
clean: clean-pkg
-rm -r tmp build-info packlist
-rm -r $(STAGE_DIR)
-rm *.tgz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment