diff options
author | Aaron Ball <nullspoon@iohq.net> | 2016-01-25 21:10:28 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2016-01-25 21:10:28 -0700 |
commit | 4b8441b2dc44666ba5963bcf29939b74f6e48aed (patch) | |
tree | 04cc964b67102eaf9611956445c32b3ecf88591f /mkinitramfs | |
parent | 5dfc36da102cfc603ee9c6c637ab140b1939d6b4 (diff) | |
download | ports-4b8441b2dc44666ba5963bcf29939b74f6e48aed.tar.gz ports-4b8441b2dc44666ba5963bcf29939b74f6e48aed.tar.xz |
Initial mkinitramfs commit
Diffstat (limited to 'mkinitramfs')
-rw-r--r-- | mkinitramfs/Pkgfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mkinitramfs/Pkgfile b/mkinitramfs/Pkgfile new file mode 100644 index 0000000..a11cc93 --- /dev/null +++ b/mkinitramfs/Pkgfile @@ -0,0 +1,31 @@ +# Description: Initrd builder +# URL: https://oper.io/src/?p=nullspoon/mkinitramfs.git +# Maintainer: Aaron Ball <nullspoon at oper dot io> +# Depends on: cryptsetup + +name=mkinitramfs +version=v1.0 +source=() +gitsource=https://oper.io/src/nullspoon/mkinitramfs.git + +build() { + if [[ -d ${name} ]]; then + cd ${name} + git reset --hard + git pull ${gitsource} + else + git clone ${gitsource} ${name} + cd ${name} + fi + + git checkout ${version} + + cp mkinitramfs /usr/bin/ + + if [[ ! -d /usr/share/mkinitramfs ]]; then + mkdir /usr/share/mkinitramfs + fi + cp init /usr/share/mkinitramfs +} + +# vim: set ft=sh ts=2 et: |