summaryrefslogtreecommitdiff
path: root/old/strata/foundation
diff options
context:
space:
mode:
Diffstat (limited to 'old/strata/foundation')
-rw-r--r--old/strata/foundation/btrfs-progs.morph8
-rw-r--r--old/strata/foundation/dbus-pre.morph10
-rw-r--r--old/strata/foundation/dbus.morph10
-rw-r--r--old/strata/foundation/fuse.morph5
-rw-r--r--old/strata/foundation/groff.morph13
-rw-r--r--old/strata/foundation/kmod.morph23
-rw-r--r--old/strata/foundation/libarchive.morph6
-rw-r--r--old/strata/foundation/libgcrypt.morph10
-rw-r--r--old/strata/foundation/libgpg-error.morph7
-rw-r--r--old/strata/foundation/lzo.morph5
-rw-r--r--old/strata/foundation/openssh.morph32
-rw-r--r--old/strata/foundation/pciutils.morph11
-rw-r--r--old/strata/foundation/rsync.morph9
-rw-r--r--old/strata/foundation/systemd.morph31
-rw-r--r--old/strata/foundation/tbdiff.morph3
-rw-r--r--old/strata/foundation/time-zone-database.morph11
16 files changed, 194 insertions, 0 deletions
diff --git a/old/strata/foundation/btrfs-progs.morph b/old/strata/foundation/btrfs-progs.morph
new file mode 100644
index 00000000..807a115f
--- /dev/null
+++ b/old/strata/foundation/btrfs-progs.morph
@@ -0,0 +1,8 @@
+name: btrfs-progs
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- ./autogen.sh
+configure-commands:
+# The change in the CFLAGS is needed to make the compilation succeed in armv5l
+- export CFLAGS="-O2 $CFLAGS"; ./configure --prefix="$PREFIX" --disable-documentation
diff --git a/old/strata/foundation/dbus-pre.morph b/old/strata/foundation/dbus-pre.morph
new file mode 100644
index 00000000..3ec008bf
--- /dev/null
+++ b/old/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/old/strata/foundation/dbus.morph b/old/strata/foundation/dbus.morph
new file mode 100644
index 00000000..23840ce1
--- /dev/null
+++ b/old/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 --enable-user-session
+build-commands:
+- make XMLTO_OUTPUT=
+install-commands:
+- make XMLTO_OUTPUT= DESTDIR="$DESTDIR" install
diff --git a/old/strata/foundation/fuse.morph b/old/strata/foundation/fuse.morph
new file mode 100644
index 00000000..5d431307
--- /dev/null
+++ b/old/strata/foundation/fuse.morph
@@ -0,0 +1,5 @@
+name: fuse
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- ./makeconf.sh
diff --git a/old/strata/foundation/groff.morph b/old/strata/foundation/groff.morph
new file mode 100644
index 00000000..8380a9cc
--- /dev/null
+++ b/old/strata/foundation/groff.morph
@@ -0,0 +1,13 @@
+name: groff
+kind: chunk
+max-jobs: 1
+configure-commands:
+- PAGE=A4 ./configure --prefix="$PREFIX"
+build-commands:
+# hack to avoid a netpbm dependency
+- touch doc/gnu.eps
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" install
+- ln -s eqn "$DESTDIR$PREFIX/bin/geqn"
+- ln -s tbl "$DESTDIR$PREFIX/bin/gtbl"
diff --git a/old/strata/foundation/kmod.morph b/old/strata/foundation/kmod.morph
new file mode 100644
index 00000000..ee1b1254
--- /dev/null
+++ b/old/strata/foundation/kmod.morph
@@ -0,0 +1,23 @@
+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="$PREFIX" --bindir="$PREFIX"/bin \
+ --libdir="$PREFIX"/lib --sysconfdir=/etc \
+ --without-xz --with-zlib \
+ --disable-manpages --enable-python
+build-commands:
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" pkgconfigdir="$PREFIX"/lib/pkgconfig install
+post-install-commands:
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/modprobe
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/lsmod
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/rmmod
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/insmod
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/modinfo
+- ln -s kmod "$DESTDIR/$PREFIX"/bin/depmod
diff --git a/old/strata/foundation/libarchive.morph b/old/strata/foundation/libarchive.morph
new file mode 100644
index 00000000..bf840f58
--- /dev/null
+++ b/old/strata/foundation/libarchive.morph
@@ -0,0 +1,6 @@
+name: libarchive
+kind: chunk
+build-system: autotools
+configure-commands:
+- autoreconf -ivf
+- ./configure --prefix="$PREFIX" --disable-acl
diff --git a/old/strata/foundation/libgcrypt.morph b/old/strata/foundation/libgcrypt.morph
new file mode 100644
index 00000000..ccd5cb8a
--- /dev/null
+++ b/old/strata/foundation/libgcrypt.morph
@@ -0,0 +1,10 @@
+name: libgcrypt
+kind: chunk
+build-system: autotools
+
+pre-configure-commands:
+- autoreconf -fi
+
+configure-commands:
+# libgcrypt documentation requires fig2dev, which we don't have
+- ./configure --prefix="$PREFIX" --disable-doc
diff --git a/old/strata/foundation/libgpg-error.morph b/old/strata/foundation/libgpg-error.morph
new file mode 100644
index 00000000..bc8dcdab
--- /dev/null
+++ b/old/strata/foundation/libgpg-error.morph
@@ -0,0 +1,7 @@
+name: libgpg-error
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- autoreconf -fi
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-doc
diff --git a/old/strata/foundation/lzo.morph b/old/strata/foundation/lzo.morph
new file mode 100644
index 00000000..a1a7bbc7
--- /dev/null
+++ b/old/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/old/strata/foundation/openssh.morph b/old/strata/foundation/openssh.morph
new file mode 100644
index 00000000..7d38791f
--- /dev/null
+++ b/old/strata/foundation/openssh.morph
@@ -0,0 +1,32 @@
+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 \
+ --with-pam
+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$PREFIX/lib/systemd/system/"
+- install -m 644 opensshd.service "$DESTDIR$PREFIX/lib/systemd/system/opensshd.service"
+system-integration:
+ openssh-misc:
+ 00-enable-opensshd-unit:
+ - systemctl enable opensshd
diff --git a/old/strata/foundation/pciutils.morph b/old/strata/foundation/pciutils.morph
new file mode 100644
index 00000000..03bd4a23
--- /dev/null
+++ b/old/strata/foundation/pciutils.morph
@@ -0,0 +1,11 @@
+name: pciutils
+kind: chunk
+configure-commands:
+- make PREFIX="$PREFIX" ZLIB=no lib/config.mk
+- echo PREFIX="$PREFIX" >>lib/config.mk
+- echo MANDIR="$PREFIX/share/man" >>lib/config.mk # ensure manpages are always installed in share/man
+build-commands:
+- make PREFIX="$PREFIX"
+install-commands:
+- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install
+- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install-lib
diff --git a/old/strata/foundation/rsync.morph b/old/strata/foundation/rsync.morph
new file mode 100644
index 00000000..54337412
--- /dev/null
+++ b/old/strata/foundation/rsync.morph
@@ -0,0 +1,9 @@
+name: rsync
+kind: chunk
+build-system: autotools
+build-commands:
+- make proto
+- make
+install-commands:
+- make install
+- install -D -m 644 packaging/systemd/rsync.service "$DESTDIR$PREFIX"/lib/systemd/system/rsync.service
diff --git a/old/strata/foundation/systemd.morph b/old/strata/foundation/systemd.morph
new file mode 100644
index 00000000..d0f962a8
--- /dev/null
+++ b/old/strata/foundation/systemd.morph
@@ -0,0 +1,31 @@
+name: systemd
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./autogen.sh
+- ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var
+ --disable-manpages
+ --disable-tests
+ --libexecdir="$PREFIX/libexec"
+ --enable-split-usr
+post-install-commands:
+- mkdir -p "$DESTDIR"/sbin
+- ln -s "$PREFIX"/lib/systemd/systemd "$DESTDIR"/sbin/init
+- for f in telinit runlevel shutdown poweroff reboot halt; do ln -s "$PREFIX"/bin/systemctl
+ "$DESTDIR/sbin/$f"; done
+- touch "$DESTDIR/etc/machine-id"
+- |
+ cat > "$DESTDIR/etc/systemd/network/10-dhcp.network" << "EOF"
+ [Match]
+ Name=e*
+
+ [Network]
+ DHCP=yes
+ EOF
+# Use the pam config systemd provides
+- cp -a "$DESTDIR/$PREFIX"/share/factory/etc/pam.d/* "$DESTDIR/etc/pam.d"
+
+# Add pam_deny.so to the default systemd-auth pam.d config file. Without
+# it, if shadow is configured to use PAM, it would be possible to login
+# to a system with the wrong password.
+- echo 'auth requisite pam_deny.so' >> "$DESTDIR"/etc/pam.d/system-auth
diff --git a/old/strata/foundation/tbdiff.morph b/old/strata/foundation/tbdiff.morph
new file mode 100644
index 00000000..a907a109
--- /dev/null
+++ b/old/strata/foundation/tbdiff.morph
@@ -0,0 +1,3 @@
+name: tbdiff
+kind: chunk
+build-system: autotools
diff --git a/old/strata/foundation/time-zone-database.morph b/old/strata/foundation/time-zone-database.morph
new file mode 100644
index 00000000..701d781a
--- /dev/null
+++ b/old/strata/foundation/time-zone-database.morph
@@ -0,0 +1,11 @@
+name: time-zone-database
+kind: chunk
+description: |
+ Time zone database.
+build-system: manual
+install-commands:
+# ETCDIR is actually where the 'tzselect', 'zdump' and 'zic' commands get
+# installed. Note that tzselect from this chunk will overlap with and override
+# the tzselect binary from GLIBC.
+- make TOPDIR="$PREFIX" ETCDIR="$PREFIX/bin" TZDIR="$PREFIX/share/zoneinfo" DESTDIR="$DESTDIR"
+ install