summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian.module/rules-noarch.in
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-11-29 12:10:16 +0300
committerAndrei Belov <defan@nginx.com>2018-11-29 12:10:16 +0300
commit63d16aa5f6faf6c96188188c58b4a369ec4f3a4c (patch)
tree5881cf52236ea9f70f6e29068f2dc0270a89b957 /pkg/deb/debian.module/rules-noarch.in
parentdb631917190c44b3b55a15e4e5e88aa92e6b5334 (diff)
downloadunit-63d16aa5f6faf6c96188188c58b4a369ec4f3a4c.tar.gz
unit-63d16aa5f6faf6c96188188c58b4a369ec4f3a4c.tar.bz2
Packages: made unit-go architecture-dependent.
This closes #172 issue on GitHub.
Diffstat (limited to 'pkg/deb/debian.module/rules-noarch.in')
-rwxr-xr-xpkg/deb/debian.module/rules-noarch.in100
1 files changed, 0 insertions, 100 deletions
diff --git a/pkg/deb/debian.module/rules-noarch.in b/pkg/deb/debian.module/rules-noarch.in
deleted file mode 100755
index d75134db..00000000
--- a/pkg/deb/debian.module/rules-noarch.in
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
-export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2 -fPIC
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-
-BUILDDIR_unit = $(CURDIR)/debian/build-unit
-BUILDDIR_unit_debug = $(CURDIR)/debian/build-unit-debug
-INSTALLDIR = $(CURDIR)/debian/%%NAME%%
-BASEDIR = $(CURDIR)
-
-%%MODULE_DEFINITIONS%%
-
-config.env.%:
- dh_testdir
- mkdir -p $(BUILDDIR_$*)
- cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/
- cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
- cp -Pa $(CURDIR)/src $(BUILDDIR_$*)/
- cp -Pa $(CURDIR)/test $(BUILDDIR_$*)/
- touch $@
-
-configure.unit: config.env.unit
- cd $(BUILDDIR_unit) && \
- CFLAGS= ./configure \
- %%CONFIGURE_ARGS%% \
- --modules=/usr/lib/unit/modules \
- --cc-opt="$(CFLAGS)" && \
- ./configure %%MODULE_CONFARGS%%
- touch $@
-
-configure.unit_debug: config.env.unit_debug
- cd $(BUILDDIR_unit_debug) && \
- CFLAGS= ./configure \
- %%CONFIGURE_ARGS%% \
- --modules=/usr/lib/unit/debug-modules \
- --cc-opt="$(CFLAGS)" \
- --debug && \
- ./configure %%MODULE_CONFARGS%%
- touch $@
-
-build-arch.%: configure.%
- dh_testdir
- $(MAKE) -C $(BUILDDIR_$*) %%MODULE_MAKEARGS%%
- touch $@
-
-build-indep:
- dh_testdir
- touch $@
-
-build-arch: build-arch.unit build-arch.unit_debug
- dh_testdir
- touch $@
-
-build: build-arch build-indep
- dh_testdir
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
- dh_clean
- find $(CURDIR) -maxdepth 1 -size 0 -delete
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
- dh_installinit
- dh_installlogrotate
-%%MODULE_PREINSTALL%%
- cd $(BUILDDIR_unit) && \
- DESTDIR=$(INSTALLDIR) make %%MODULE_INSTARGS%%
- cd $(BUILDDIR_unit_debug) && \
- DESTDIR=$(INSTALLDIR) make %%MODULE_INSTARGS%%
-
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installchangelogs
- dh_link
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_perl
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary-arch: install
-
-binary: binary-indep binary-arch
-
-.PHONY: clean binary-indep binary-arch binary install build