mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-06-01 19:16:19 +00:00
buildsys: rework build-dir and original source tarball creation
Ship the updates in the source package to avoid that this needs to be pulled on actual build. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
184cb476e6
commit
446f7108c3
24
Makefile
24
Makefile
@ -10,6 +10,7 @@ PACKAGE = proxmox-spamassassin
|
|||||||
OPKGNAME = Mail-SpamAssassin-$(DEB_VERSION_UPSTREAM)
|
OPKGNAME = Mail-SpamAssassin-$(DEB_VERSION_UPSTREAM)
|
||||||
|
|
||||||
BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
|
ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
||||||
DSC = $(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
DSC = $(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||||
|
|
||||||
DEB = $(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_amd64.deb
|
DEB = $(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_amd64.deb
|
||||||
@ -32,7 +33,7 @@ dsc:
|
|||||||
$(MAKE) $(DSC)
|
$(MAKE) $(DSC)
|
||||||
lintian $(DSC)
|
lintian $(DSC)
|
||||||
|
|
||||||
$(DSC): $(BUILDDIR)
|
$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
|
||||||
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
|
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
|
||||||
|
|
||||||
.PHONY: sbuild
|
.PHONY: sbuild
|
||||||
@ -45,17 +46,18 @@ update-upstream: $(OPKGNAME).tar.gz
|
|||||||
tar -xzf $<
|
tar -xzf $<
|
||||||
mv $(OPKGNAME) upstream
|
mv $(OPKGNAME) upstream
|
||||||
|
|
||||||
$(BUILDDIR).orig.tar.gz: upstream/
|
$(ORIG_SRC_TAR): $(BUILDDIR)
|
||||||
rm -rf $(NPKGNAME)
|
tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
|
||||||
cp -a upstream $(NPKGNAME)
|
|
||||||
tar -czf $@ $(NPKGNAME)
|
|
||||||
|
|
||||||
$(BUILDDIR): sa-updates kam-updates $(NPKGNAME).orig.tar.gz
|
$(BUILDDIR): sa-updates kam-updates
|
||||||
cp -a debian $@
|
rm -rf $@ $@.tmp
|
||||||
mkdir -p $@/debian/tree/usr/share/spamassassin
|
cp -a upstream $@.tmp
|
||||||
rsync -av sa-updates/ $@/debian/tree/usr/share/spamassassin
|
cp -a debian $@.tmp
|
||||||
mkdir -p $@/debian/tree/usr/share/spamassassin-extra
|
mkdir -p $@.tmp/rule-updates/spamassassin
|
||||||
rsync -av kam-updates/ $@/debian/tree/usr/share/spamassassin-extra
|
rsync -av sa-updates/ $@.tmp/rule-updates/spamassassin
|
||||||
|
mkdir -p $@.tmp/debian/rule-updates/spamassassin-extra
|
||||||
|
rsync -av kam-updates/ $@.tmp/rule-updates/spamassassin-extra
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
$(OPKGNAME).tar.gz:
|
$(OPKGNAME).tar.gz:
|
||||||
rm -f $@*
|
rm -f $@*
|
||||||
|
1
debian/install
vendored
1
debian/install
vendored
@ -1 +1,2 @@
|
|||||||
debian/tree/* /
|
debian/tree/* /
|
||||||
|
rule-updates/* /usr/share/
|
||||||
|
Loading…
Reference in New Issue
Block a user