2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-30 14:55:17 +00:00
Files
xcat-dep/ipxe-xcat/debian/rules
T
Vinícius Ferrão c56e943dc3 build(ipxe-xcat): package the upstream binaries for EL and Debian
ipxe-xcat installs the release tree under /tftpboot/xcat/ipxe as it
is, with its relative symlinks, and installs the source archive and the
licence texts with the documentation. It is a noarch RPM and an
Architecture: all deb.

Both builders check the archives against SHA256SUMS before the build.
After the build they unpack the RPM or deb and compare its tree with
payload.sha256, entry for entry, before the package reaches the result
directory. The spec and the Debian rules do not strip or compress the
tree, so the signed EFI files keep their signatures.

The package does not obsolete, provide or conflict with xnba-undi.
2026-09-25 13:15:50 -03:00

37 lines
927 B
Makefile
Executable File

#!/usr/bin/make -f
# The payload is the upstream release tree, byte for byte: nothing strips it, and dh_compress and
# dh_fixperms leave /tftpboot and the licence texts alone.
VERSION := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*$$//')
DEST := debian/ipxe-xcat
DOC := $(DEST)/usr/share/doc/ipxe-xcat
build build-arch build-indep:
clean:
dh_testdir
dh_clean
binary-arch:
binary-indep:
dh_testdir
dh_testroot
dh_prep
install -d $(DEST)/tftpboot/xcat/ipxe $(DOC)
tar -xzf ipxeboot-$(VERSION).tar.gz --no-same-owner --strip-components=1 -C $(DEST)/tftpboot/xcat/ipxe
install -m 0644 ipxe-$(VERSION)-source.tar.gz $(DOC)/
cp -R licenses $(DOC)/licenses
dh_installdocs
dh_installchangelogs
dh_compress -Xlicenses/
dh_fixperms -Xtftpboot/
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build build-arch build-indep clean binary-arch binary-indep binary