diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | src/fripost-partman-udeb/Makefile | 8 | ||||
-rw-r--r-- | src/fripost-partman-udeb/debian/control | 4 | ||||
-rwxr-xr-x | src/fripost-partman-udeb/debian/rules | 2 | ||||
-rwxr-xr-x | src/fripost-postinst-udeb/debian/rules | 2 |
5 files changed, 19 insertions, 6 deletions
@@ -1,4 +1,11 @@ -ARCH ?= $(shell uname -m | sed -e 's/^x86_64$$/amd64/' -e 's/^i686$$/i386/') +ARCH ?= $(shell uname -m) +ifeq (${ARCH}, x86_64) +ARCH = amd64 +endif +ifeq (${ARCH}, i686) +ARCH = i386 +endif + VERSION = 7.3.0 ISOIMG = debian-${VERSION}-${ARCH}-netinst.iso diff --git a/src/fripost-partman-udeb/Makefile b/src/fripost-partman-udeb/Makefile index b1f19cf..a1e0e73 100644 --- a/src/fripost-partman-udeb/Makefile +++ b/src/fripost-partman-udeb/Makefile @@ -1,12 +1,18 @@ CC ?= gcc CFLAGS ?= -Wall -x c -s +ifeq (${ARCH}, amd64) +CFLAGS += -m64 +endif +ifeq (${ARCH}, i386) +CFLAGS += -m32 +endif + LIBS = lib/stdbuf.so all: ${LIBS} %.so: %.c - # TODO: multiarch (-m32/-m64) ${CC} ${CFLAGS} $< -fPIC -shared -o $@ clean: diff --git a/src/fripost-partman-udeb/debian/control b/src/fripost-partman-udeb/debian/control index 043fa49..355bc68 100644 --- a/src/fripost-partman-udeb/debian/control +++ b/src/fripost-partman-udeb/debian/control @@ -6,11 +6,11 @@ Build-Depends: debhelper (>= 7) Package: fripost-partman XC-Package-Type: udeb -Architecture: all +Architecture: any Depends: cdebconf-udeb, parted-udeb, xfsprogs-udeb, hw-detect, md-modules, mdadm-udeb, lvm2-udeb, dmsetup-udeb, ntfstools-udeb, xfs-modules, ext2-modules, ext3-modules, openssh-server-udeb, cryptsetup-udeb, - crypto-dm-modules, ${misc:Depends} + crypto-dm-modules, ${misc:Depends}, ${shlibs:Depends} Provides: created-fstab, made-filesystems, mounted-partitions, partitioned-harddrives Description: Partition Hard Drives using shell scripts. diff --git a/src/fripost-partman-udeb/debian/rules b/src/fripost-partman-udeb/debian/rules index 514b55b..ed08263 100755 --- a/src/fripost-partman-udeb/debian/rules +++ b/src/fripost-partman-udeb/debian/rules @@ -3,4 +3,4 @@ dh $@ # dh_pysupport: This program is deprecated, you should use dh_python2 instead. -override_dh_pysupport: +override_dh_pysupport override_dh_strip: diff --git a/src/fripost-postinst-udeb/debian/rules b/src/fripost-postinst-udeb/debian/rules index 514b55b..ed08263 100755 --- a/src/fripost-postinst-udeb/debian/rules +++ b/src/fripost-postinst-udeb/debian/rules @@ -3,4 +3,4 @@ dh $@ # dh_pysupport: This program is deprecated, you should use dh_python2 instead. -override_dh_pysupport: +override_dh_pysupport override_dh_strip: |