make commands to build core distributed packages using fpm
This commit is contained in:
parent
607e88585c
commit
6bc68220f9
1 changed files with 48 additions and 0 deletions
48
Makefile.am
48
Makefile.am
|
@ -96,12 +96,60 @@ fpm -s dir -t deb -n core \
|
||||||
-C $(DESTDIR)
|
-C $(DESTDIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define fpm-distributed-deb =
|
||||||
|
fpm -s dir -t deb -n core-distributed \
|
||||||
|
-m "$(PACKAGE_MAINTAINERS)" \
|
||||||
|
--license "BSD" \
|
||||||
|
--description "Common Open Research Emulator Distributed Package" \
|
||||||
|
--url https://github.com/coreemu/core \
|
||||||
|
--vendor "$(PACKAGE_VENDOR)" \
|
||||||
|
-p core_distributed_VERSION_ARCH.deb \
|
||||||
|
-v $(PACKAGE_VERSION) \
|
||||||
|
-d "ethtool" \
|
||||||
|
-d "procps" \
|
||||||
|
-d "libc6 >= 2.14" \
|
||||||
|
-d "bash >= 3.0" \
|
||||||
|
-d "ebtables" \
|
||||||
|
-d "iproute2" \
|
||||||
|
-d "libev4" \
|
||||||
|
-d "openssh-server" \
|
||||||
|
-d "xterm" \
|
||||||
|
-C $(DESTDIR)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define fpm-distributed-rpm =
|
||||||
|
fpm -s dir -t rpm -n core-distributed \
|
||||||
|
-m "$(PACKAGE_MAINTAINERS)" \
|
||||||
|
--license "BSD" \
|
||||||
|
--description "Common Open Research Emulator Distributed Package" \
|
||||||
|
--url https://github.com/coreemu/core \
|
||||||
|
--vendor "$(PACKAGE_VENDOR)" \
|
||||||
|
-p core_distributed_VERSION_ARCH.rpm \
|
||||||
|
-v $(PACKAGE_VERSION) \
|
||||||
|
-d "ethtool" \
|
||||||
|
-d "procps-ng" \
|
||||||
|
-d "bash >= 3.0" \
|
||||||
|
-d "ebtables" \
|
||||||
|
-d "iproute" \
|
||||||
|
-d "libev" \
|
||||||
|
-d "net-tools" \
|
||||||
|
-d "openssh-server" \
|
||||||
|
-d "xterm" \
|
||||||
|
-C $(DESTDIR)
|
||||||
|
endef
|
||||||
|
|
||||||
.PHONY: fpm
|
.PHONY: fpm
|
||||||
fpm: clean-local-fpm
|
fpm: clean-local-fpm
|
||||||
$(MAKE) install DESTDIR=$(DESTDIR)
|
$(MAKE) install DESTDIR=$(DESTDIR)
|
||||||
$(call fpm-deb)
|
$(call fpm-deb)
|
||||||
$(call fpm-rpm)
|
$(call fpm-rpm)
|
||||||
|
|
||||||
|
.PHONY: fpm-distributed
|
||||||
|
fpm-distributed: clean-local-fpm
|
||||||
|
$(MAKE) -C netns install DESTDIR=$(DESTDIR)
|
||||||
|
$(call fpm-distributed-deb)
|
||||||
|
$(call fpm-distributed-rpm)
|
||||||
|
|
||||||
.PHONY: clean-local-fpm
|
.PHONY: clean-local-fpm
|
||||||
clean-local-fpm:
|
clean-local-fpm:
|
||||||
-rm -rf *.deb
|
-rm -rf *.deb
|
||||||
|
|
Loading…
Reference in a new issue