summaryrefslogtreecommitdiff
path: root/foundation
diff options
context:
space:
mode:
Diffstat (limited to 'foundation')
-rw-r--r--foundation/attr.morph16
-rw-r--r--foundation/btrfs-progs.morph12
-rw-r--r--foundation/dbus-pre.morph14
-rw-r--r--foundation/dbus.morph15
-rw-r--r--foundation/glib.morph7
-rw-r--r--foundation/gobject-introspection.morph9
-rw-r--r--foundation/groff.morph13
-rw-r--r--foundation/help2man.morph11
-rw-r--r--foundation/kmod.morph21
-rw-r--r--foundation/libcap2.morph11
-rw-r--r--foundation/libffi.morph10
-rw-r--r--foundation/libusbx.morph5
-rw-r--r--foundation/libxslt.morph5
-rw-r--r--foundation/lzo.morph7
-rw-r--r--foundation/openssh.morph32
-rw-r--r--foundation/patch.morph11
-rw-r--r--foundation/pciutils.morph14
-rw-r--r--foundation/sqlite3.morph5
-rw-r--r--foundation/systemd.morph30
-rw-r--r--foundation/tbdiff.morph7
-rw-r--r--foundation/usbutils.morph7
21 files changed, 262 insertions, 0 deletions
diff --git a/foundation/attr.morph b/foundation/attr.morph
new file mode 100644
index 00000000..2fc622b7
--- /dev/null
+++ b/foundation/attr.morph
@@ -0,0 +1,16 @@
+name: foundation/attr.morph
+kind: chunk
+repo: upstream:attr
+ref: be4a3c1d50981d2cbbe2cfb55498cac51909c37f
+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
+comments:
+- 'The DESTDIR patch idea comes from: http://pkgs.fedoraproject.org/gitweb/?p=attr.git;a=blob_plain;f=attr-2.4.32-build.patch'
diff --git a/foundation/btrfs-progs.morph b/foundation/btrfs-progs.morph
new file mode 100644
index 00000000..5ce646f5
--- /dev/null
+++ b/foundation/btrfs-progs.morph
@@ -0,0 +1,12 @@
+name: foundation/btrfs-progs.morph
+kind: chunk
+repo: upstream:btrfs-progs
+ref: 304f215abb836811e6d78e0a3da53d48aa0e7ca7
+configure-commands: []
+build-commands:
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" prefix="$PREFIX" install
+build_depends:
+- foundation/attr.morph
+- foundation/lzo.morph
diff --git a/foundation/dbus-pre.morph b/foundation/dbus-pre.morph
new file mode 100644
index 00000000..798a74fe
--- /dev/null
+++ b/foundation/dbus-pre.morph
@@ -0,0 +1,14 @@
+name: foundation/dbus-pre.morph
+kind: chunk
+repo: upstream:dbus
+ref: f2e4718bf42f507684949ebf484aa94df42abbbe
+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
+build_depends:
+- foundation/glib.morph
diff --git a/foundation/dbus.morph b/foundation/dbus.morph
new file mode 100644
index 00000000..d3c1895e
--- /dev/null
+++ b/foundation/dbus.morph
@@ -0,0 +1,15 @@
+name: foundation/dbus.morph
+kind: chunk
+repo: upstream:dbus
+ref: f2e4718bf42f507684949ebf484aa94df42abbbe
+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
+build_depends:
+- foundation/glib.morph
+- foundation/systemd.morph
diff --git a/foundation/glib.morph b/foundation/glib.morph
new file mode 100644
index 00000000..9745ea78
--- /dev/null
+++ b/foundation/glib.morph
@@ -0,0 +1,7 @@
+name: foundation/glib.morph
+kind: chunk
+repo: upstream:glib
+ref: 980156c4cb4a8c29335de83bbf1ac05a9a1f01a9
+build-system: autotools
+build_depends:
+- foundation/libffi.morph
diff --git a/foundation/gobject-introspection.morph b/foundation/gobject-introspection.morph
new file mode 100644
index 00000000..d0148103
--- /dev/null
+++ b/foundation/gobject-introspection.morph
@@ -0,0 +1,9 @@
+name: foundation/gobject-introspection.morph
+kind: chunk
+repo: upstream:gobject-introspection
+ref: 8a2a9f9db169eaaf2a7eede18e0ceba0af44345f
+build-system: autotools
+configure-commands:
+- sh autogen.sh --prefix="$PREFIX" --disable-tests
+build_depends:
+- foundation/glib.morph
diff --git a/foundation/groff.morph b/foundation/groff.morph
new file mode 100644
index 00000000..b6143256
--- /dev/null
+++ b/foundation/groff.morph
@@ -0,0 +1,13 @@
+name: foundation/groff.morph
+kind: chunk
+repo: upstream:groff
+ref: c7017a099f954bb6de60e79c876935b1bf438b9a
+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/foundation/help2man.morph b/foundation/help2man.morph
new file mode 100644
index 00000000..543962f5
--- /dev/null
+++ b/foundation/help2man.morph
@@ -0,0 +1,11 @@
+name: foundation/help2man.morph
+kind: chunk
+repo: upstream:help2man
+ref: 0191a5f61525f8deea2ae8bdfea88190d85b6a71
+configure-commands:
+- autoreconf -i
+- ./configure --prefix=/usr
+build-commands:
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" install
diff --git a/foundation/kmod.morph b/foundation/kmod.morph
new file mode 100644
index 00000000..0405d185
--- /dev/null
+++ b/foundation/kmod.morph
@@ -0,0 +1,21 @@
+name: foundation/kmod.morph
+kind: chunk
+repo: upstream:kmod
+ref: 7f3b215d4e848afa74aea20a4c64f0cc1ef30eb4
+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/foundation/libcap2.morph b/foundation/libcap2.morph
new file mode 100644
index 00000000..7b55f47b
--- /dev/null
+++ b/foundation/libcap2.morph
@@ -0,0 +1,11 @@
+name: foundation/libcap2.morph
+kind: chunk
+repo: upstream:libcap2
+ref: 4f7cca1bc9c2a274edb39d351b65747010d3ba7b
+build-system: manual
+build-commands:
+- make prefix="$PREFIX"
+install-commands:
+- make prefix="$PREFIX" DESTDIR="$DESTDIR" RAISE_SETFCAP=no install lib=lib
+build_depends:
+- foundation/attr.morph
diff --git a/foundation/libffi.morph b/foundation/libffi.morph
new file mode 100644
index 00000000..405c04b9
--- /dev/null
+++ b/foundation/libffi.morph
@@ -0,0 +1,10 @@
+name: foundation/libffi.morph
+kind: chunk
+repo: upstream:libffi
+ref: 77d4586cc47e8f4c02278afbc220145bba0d442b
+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/foundation/libusbx.morph b/foundation/libusbx.morph
new file mode 100644
index 00000000..c4611751
--- /dev/null
+++ b/foundation/libusbx.morph
@@ -0,0 +1,5 @@
+name: foundation/libusbx.morph
+kind: chunk
+repo: upstream:libusbx
+ref: 7ec94a45ed8155e7a1d4d5d75575099b09c78834
+build-system: autotools
diff --git a/foundation/libxslt.morph b/foundation/libxslt.morph
new file mode 100644
index 00000000..2b066fb1
--- /dev/null
+++ b/foundation/libxslt.morph
@@ -0,0 +1,5 @@
+name: foundation/libxslt.morph
+kind: chunk
+repo: upstream:libxslt
+ref: 8785a2ffd0d146df0395ab71ce4734d0a8ba0f7e
+build-system: autotools
diff --git a/foundation/lzo.morph b/foundation/lzo.morph
new file mode 100644
index 00000000..5dbb1850
--- /dev/null
+++ b/foundation/lzo.morph
@@ -0,0 +1,7 @@
+name: foundation/lzo.morph
+kind: chunk
+repo: upstream:lzo
+ref: 2cdfe9375f1145603d002c12be950062ae54da21
+build-system: autotools
+configure-commands:
+- ./configure --enable-shared=yes --prefix="$PREFIX"
diff --git a/foundation/openssh.morph b/foundation/openssh.morph
new file mode 100644
index 00000000..90f850cc
--- /dev/null
+++ b/foundation/openssh.morph
@@ -0,0 +1,32 @@
+name: foundation/openssh.morph
+kind: chunk
+repo: upstream:openssh
+ref: 233514106dcde5ac61a70f1043de563122e2f1c9
+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"
+build_depends:
+- foundation/groff.morph
diff --git a/foundation/patch.morph b/foundation/patch.morph
new file mode 100644
index 00000000..7e24cd90
--- /dev/null
+++ b/foundation/patch.morph
@@ -0,0 +1,11 @@
+name: foundation/patch.morph
+kind: chunk
+repo: upstream:patch
+ref: 9a16dcb97aac1a26af4372d95bd62b84f3f1264a
+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/foundation/pciutils.morph b/foundation/pciutils.morph
new file mode 100644
index 00000000..3157b653
--- /dev/null
+++ b/foundation/pciutils.morph
@@ -0,0 +1,14 @@
+name: foundation/pciutils.morph
+kind: chunk
+repo: upstream:pciutils
+ref: bae04bd0473c68a2f21b7712a627abb08fd84b29
+build-system: manual
+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/foundation/sqlite3.morph b/foundation/sqlite3.morph
new file mode 100644
index 00000000..f5db9644
--- /dev/null
+++ b/foundation/sqlite3.morph
@@ -0,0 +1,5 @@
+name: foundation/sqlite3.morph
+kind: chunk
+repo: upstream:sqlite3
+ref: f6c2a9fe49d20654c2c41844d056033692a223b7
+build-system: autotools
diff --git a/foundation/systemd.morph b/foundation/systemd.morph
new file mode 100644
index 00000000..85214ca2
--- /dev/null
+++ b/foundation/systemd.morph
@@ -0,0 +1,30 @@
+name: foundation/systemd.morph
+kind: chunk
+repo: upstream:systemd
+ref: dc8ee9a30e2df2568f2b37e3fb61e4b0bb601b13
+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"
+build_depends:
+- foundation/dbus-pre.morph
+- foundation/gobject-introspection.morph
+- foundation/kmod.morph
+- foundation/libcap2.morph
+- foundation/pciutils.morph
+- foundation/usbutils.morph
diff --git a/foundation/tbdiff.morph b/foundation/tbdiff.morph
new file mode 100644
index 00000000..67010fc9
--- /dev/null
+++ b/foundation/tbdiff.morph
@@ -0,0 +1,7 @@
+name: foundation/tbdiff.morph
+kind: chunk
+repo: baserock:baserock/tbdiff
+ref: 485e76fea076b2a5f0efeab3ac7f98037f4e00c0
+build-system: autotools
+build_depends:
+- foundation/attr.morph
diff --git a/foundation/usbutils.morph b/foundation/usbutils.morph
new file mode 100644
index 00000000..e03e6107
--- /dev/null
+++ b/foundation/usbutils.morph
@@ -0,0 +1,7 @@
+name: foundation/usbutils.morph
+kind: chunk
+repo: upstream:usbutils
+ref: 410f1474af0ddb391bc6ec391777f116eee31569
+build-system: autotools
+build_depends:
+- foundation/libusbx.morph