From 2b10a9677817377618e33d2b07ab7caefe316633 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 18 Aug 2014 17:05:22 +0000 Subject: Re-organise definitions with scripts/organise-morphologies.py --- strata/foundation/attr.morph | 14 ++++++++++++++ strata/foundation/btrfs-progs.morph | 6 ++++++ strata/foundation/dbus-pre.morph | 10 ++++++++++ strata/foundation/dbus.morph | 10 ++++++++++ strata/foundation/fuse.morph | 6 ++++++ strata/foundation/groff.morph | 11 +++++++++++ strata/foundation/help2man.morph | 9 +++++++++ strata/foundation/kmod.morph | 19 +++++++++++++++++++ strata/foundation/libcap2.morph | 6 ++++++ strata/foundation/libffi.morph | 8 ++++++++ strata/foundation/lzo.morph | 5 +++++ strata/foundation/openssh.morph | 28 ++++++++++++++++++++++++++++ strata/foundation/patch.morph | 9 +++++++++ strata/foundation/pciutils.morph | 11 +++++++++++ strata/foundation/systemd.morph | 21 +++++++++++++++++++++ strata/foundation/tbdiff.morph | 3 +++ 16 files changed, 176 insertions(+) create mode 100644 strata/foundation/attr.morph create mode 100644 strata/foundation/btrfs-progs.morph create mode 100644 strata/foundation/dbus-pre.morph create mode 100644 strata/foundation/dbus.morph create mode 100644 strata/foundation/fuse.morph create mode 100644 strata/foundation/groff.morph create mode 100644 strata/foundation/help2man.morph create mode 100644 strata/foundation/kmod.morph create mode 100644 strata/foundation/libcap2.morph create mode 100644 strata/foundation/libffi.morph create mode 100644 strata/foundation/lzo.morph create mode 100644 strata/foundation/openssh.morph create mode 100644 strata/foundation/patch.morph create mode 100644 strata/foundation/pciutils.morph create mode 100644 strata/foundation/systemd.morph create mode 100644 strata/foundation/tbdiff.morph (limited to 'strata/foundation') diff --git a/strata/foundation/attr.morph b/strata/foundation/attr.morph new file mode 100644 index 00000000..59158a90 --- /dev/null +++ b/strata/foundation/attr.morph @@ -0,0 +1,14 @@ +name: attr +kind: chunk +description: +- 'The DESTDIR patch idea comes from: http://pkgs.fedoraproject.org/gitweb/?p=attr.git;a=blob_plain;f=attr-2.4.32-build.patch' +configure-commands: +- sed -i -e 's,PKG_\(.*\)_DIR\t= ,PKG_\1_DIR\t= \$(DESTDIR),g' include/builddefs.in +- sed -i -e 's,\$\$LOCAL_CONFIGURE_OPTIONS,\$(LOCAL_CONFIGURE_OPTIONS),g' Makefile +- make LOCAL_CONFIGURE_OPTIONS="--prefix=/usr --exec-prefix=/usr --sbindir=/usr/sbin + --bindir=/usr/bin --libdir=/usr/lib --libexecdir=/usr/lib --enable-lib64=yes --includedir=/usr/include + --mandir=/usr/share/man --datadir=/usr/share" configure +build-commands: +- make SHELL=/bin/bash +install-commands: +- make SHELL=/bin/bash DESTDIR="$DESTDIR" install-lib install-dev diff --git a/strata/foundation/btrfs-progs.morph b/strata/foundation/btrfs-progs.morph new file mode 100644 index 00000000..356c3f06 --- /dev/null +++ b/strata/foundation/btrfs-progs.morph @@ -0,0 +1,6 @@ +name: btrfs-progs +kind: chunk +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" prefix="$PREFIX" install diff --git a/strata/foundation/dbus-pre.morph b/strata/foundation/dbus-pre.morph new file mode 100644 index 00000000..3ec008bf --- /dev/null +++ b/strata/foundation/dbus-pre.morph @@ -0,0 +1,10 @@ +name: dbus-pre +kind: chunk +build-system: autotools +configure-commands: +- sh autogen.sh --no-configure +- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --disable-systemd +build-commands: +- make XMLTO_OUTPUT= +install-commands: +- make XMLTO_OUTPUT= DESTDIR="$DESTDIR" install diff --git a/strata/foundation/dbus.morph b/strata/foundation/dbus.morph new file mode 100644 index 00000000..255d2915 --- /dev/null +++ b/strata/foundation/dbus.morph @@ -0,0 +1,10 @@ +name: dbus +kind: chunk +build-system: autotools +configure-commands: +- sh autogen.sh --no-configure +- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc +build-commands: +- make XMLTO_OUTPUT= +install-commands: +- make XMLTO_OUTPUT= DESTDIR="$DESTDIR" install diff --git a/strata/foundation/fuse.morph b/strata/foundation/fuse.morph new file mode 100644 index 00000000..6f7fc170 --- /dev/null +++ b/strata/foundation/fuse.morph @@ -0,0 +1,6 @@ +name: fuse +kind: chunk +build-system: autotools +configure-commands: +- ./makeconf.sh +- ./configure --prefix="$PREFIX" diff --git a/strata/foundation/groff.morph b/strata/foundation/groff.morph new file mode 100644 index 00000000..fed35b7d --- /dev/null +++ b/strata/foundation/groff.morph @@ -0,0 +1,11 @@ +name: groff +kind: chunk +max-jobs: 1 +configure-commands: +- PAGE=A4 ./configure --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- ln -s eqn "$DESTDIR$PREFIX/bin/geqn" +- ln -s tbl "$DESTDIR$PREFIX/bin/gtbl" diff --git a/strata/foundation/help2man.morph b/strata/foundation/help2man.morph new file mode 100644 index 00000000..e25a8d8e --- /dev/null +++ b/strata/foundation/help2man.morph @@ -0,0 +1,9 @@ +name: help2man +kind: chunk +configure-commands: +- autoreconf -i +- ./configure --prefix=/usr +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/foundation/kmod.morph b/strata/foundation/kmod.morph new file mode 100644 index 00000000..12ac8692 --- /dev/null +++ b/strata/foundation/kmod.morph @@ -0,0 +1,19 @@ +name: kmod +kind: chunk +configure-commands: +- rm -rf libkmod/docs +- sed -i -e'/SUBDIRS/{s/\S*doc\S*//;s/\S*man\S*//}' Makefile.am +- sed -i -e'/AC_CONFIG_FILES(\[/,/])/{/docs/d}' configure.ac +- autoreconf -fiv +- ./configure --prefix=/usr --bindir=/bin --libdir=/lib --sysconfdir=/etc --without-xz + --with-zlib --disable-manpages +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" pkgconfigdir=/usr/lib/pkgconfig install +- ln -s kmod "$DESTDIR"/bin/modprobe +- ln -s kmod "$DESTDIR"/bin/lsmod +- ln -s kmod "$DESTDIR"/bin/rmmod +- ln -s kmod "$DESTDIR"/bin/insmod +- ln -s kmod "$DESTDIR"/bin/modinfo +- ln -s kmod "$DESTDIR"/bin/depmod diff --git a/strata/foundation/libcap2.morph b/strata/foundation/libcap2.morph new file mode 100644 index 00000000..3e4f205e --- /dev/null +++ b/strata/foundation/libcap2.morph @@ -0,0 +1,6 @@ +name: libcap2 +kind: chunk +build-commands: +- make prefix="$PREFIX" +install-commands: +- make prefix="$PREFIX" DESTDIR="$DESTDIR" RAISE_SETFCAP=no install lib=lib diff --git a/strata/foundation/libffi.morph b/strata/foundation/libffi.morph new file mode 100644 index 00000000..174477af --- /dev/null +++ b/strata/foundation/libffi.morph @@ -0,0 +1,8 @@ +name: libffi +kind: chunk +build-system: autotools +install-commands: +- make DESTDIR="$DESTDIR"/ install +- mkdir -p "$DESTDIR"/usr/include +- cp "$TARGET"/include/ffi.h "$DESTDIR"/usr/include/ +- cp "$TARGET"/include/ffitarget.h "$DESTDIR"/usr/include/ diff --git a/strata/foundation/lzo.morph b/strata/foundation/lzo.morph new file mode 100644 index 00000000..a1a7bbc7 --- /dev/null +++ b/strata/foundation/lzo.morph @@ -0,0 +1,5 @@ +name: lzo +kind: chunk +build-system: autotools +configure-commands: +- ./configure --enable-shared=yes --prefix="$PREFIX" diff --git a/strata/foundation/openssh.morph b/strata/foundation/openssh.morph new file mode 100644 index 00000000..6c759cb0 --- /dev/null +++ b/strata/foundation/openssh.morph @@ -0,0 +1,28 @@ +name: openssh +kind: chunk +configure-commands: +- autoreconf -if +- | + OPENSSL_SEEDS_ITSELF=yes ./configure \ + --prefix="$PREFIX" --sysconfdir=/etc/ssh \ + --datadir="$PREFIX/share/sshd" \ + --libexecdir="$PREFIX/lib/openssh" \ + --with-privsep-path=/var/lib/sshd +build-commands: +- make +- | + sed -e "s|@prefix@|$PREFIX|g" \ + -e 's|@STARTUP_SCRIPT_SHELL@|/bin/sh|g' \ + -e 's|@sysconfdir@|/etc/ssh|g' \ + -e 's|@COMMENT_OUT_ECC@||g' \ + sshd-keygen.in >sshd-keygen +- sed -e "s|@prefix@|$PREFIX|g" opensshd.service.in >opensshd.service +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR/$PREFIX/sbin" +- chmod go= "$DESTDIR"/var/lib/sshd +- install -m 744 sshd-keygen "$DESTDIR/$PREFIX/sbin/sshd-keygen" +- install -m 755 contrib/ssh-copy-id "$DESTDIR/$PREFIX/bin/ssh-copy-id" +- mkdir -p "$DESTDIR/lib/systemd/system/multi-user.target.wants" +- install -m 644 opensshd.service "$DESTDIR/lib/systemd/system/opensshd.service" +- ln -s ../opensshd.service "$DESTDIR/lib/systemd/system/multi-user.target.wants/opensshd.service" diff --git a/strata/foundation/patch.morph b/strata/foundation/patch.morph new file mode 100644 index 00000000..65e07e67 --- /dev/null +++ b/strata/foundation/patch.morph @@ -0,0 +1,9 @@ +name: patch +kind: chunk +configure-commands: +- bash bootstrap --skip-po +- ./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin --disable-nls +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/strata/foundation/pciutils.morph b/strata/foundation/pciutils.morph new file mode 100644 index 00000000..8ca13bad --- /dev/null +++ b/strata/foundation/pciutils.morph @@ -0,0 +1,11 @@ +name: pciutils +kind: chunk +configure-commands: +- make ZLIB=no lib/config.mk +- echo PREFIX=$PREFIX >>lib/config.mk +- echo MANDIR=$PREFIX/share/man >>lib/config.mk +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- make DESTDIR="$DESTDIR" install-lib diff --git a/strata/foundation/systemd.morph b/strata/foundation/systemd.morph new file mode 100644 index 00000000..2a1933d7 --- /dev/null +++ b/strata/foundation/systemd.morph @@ -0,0 +1,21 @@ +name: systemd +kind: chunk +max-jobs: 1 +build-system: autotools +configure-commands: +- sh autogen.sh +- ./configure --prefix="$PREFIX" --enable-xz --disable-manpages --sysconfdir=/etc + --localstatedir=/var --libdir="$PREFIX/lib" --libexecdir="$PREFIX/libexec" --with-rootprefix= + --with-rootlibdir=/lib --with-firmware-path=/lib/firmware/updates:/lib/firmware +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR"/sbin +- ln -s /lib/systemd/systemd "$DESTDIR"/sbin/init +- for f in telinit runlevel shutdown poweroff reboot halt; do ln -s /bin/systemctl + "$DESTDIR/sbin/$f"; done +- rm -f "$DESTDIR/etc/udev/rules.d/80-net-name-slot.rules" +- touch "$DESTDIR/etc/udev/rules.d/80-net-name-slot.rules" +- sed -e 's|@sushell@|/bin/sh|g' units/debug-shell.service.in >"$DESTDIR/etc/systemd/system/debug-shell.service" +- sed -r -e '/Options=/s/,?strictatime//' "$DESTDIR/lib/systemd/system/tmp.mount" + >"$DESTDIR/etc/systemd/system/tmp.mount" +- touch "$DESTDIR/etc/machine-id" diff --git a/strata/foundation/tbdiff.morph b/strata/foundation/tbdiff.morph new file mode 100644 index 00000000..a907a109 --- /dev/null +++ b/strata/foundation/tbdiff.morph @@ -0,0 +1,3 @@ +name: tbdiff +kind: chunk +build-system: autotools -- cgit v1.2.1