diff options
author | Aaron Ball <nullspoon@iohq.net> | 2016-01-31 02:07:05 +0000 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2016-01-31 02:07:05 +0000 |
commit | d9826cea8d4f429dca2562d9b7c0993f0aea6f52 (patch) | |
tree | ee6fbbdefda0d9bbde6602666f7c61d871379d2e | |
parent | e6440449aa3145319c884c4c33dd685580abf97a (diff) | |
download | ports-d9826cea8d4f429dca2562d9b7c0993f0aea6f52.tar.gz ports-d9826cea8d4f429dca2562d9b7c0993f0aea6f52.tar.xz |
mkinitramfs:Fixed build
-rw-r--r-- | mkinitramfs/.footprint | 6 | ||||
-rw-r--r-- | mkinitramfs/Pkgfile | 23 |
2 files changed, 22 insertions, 7 deletions
diff --git a/mkinitramfs/.footprint b/mkinitramfs/.footprint new file mode 100644 index 0000000..7411ba9 --- /dev/null +++ b/mkinitramfs/.footprint @@ -0,0 +1,6 @@ +drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/ +drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/bin/ +drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/share/ +drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/share/mkinitramfs/ +-rw-r--r-- 0 root root 3214 Jan 31 02:06 usr/share/mkinitramfs/init +-rw-r--r-- 0 root root 3247 Jan 31 02:06 usr/bin/mkinitramfs diff --git a/mkinitramfs/Pkgfile b/mkinitramfs/Pkgfile index e01e022..a07c046 100644 --- a/mkinitramfs/Pkgfile +++ b/mkinitramfs/Pkgfile @@ -4,12 +4,12 @@ # Depends on: cryptsetup name=mkinitramfs -version=v1.0 +version=1.0 release=1 source=() gitsource=https://oper.io/src/nullspoon/mkinitramfs.git -build() { +gitsetup() { if [[ -d ${name} ]]; then cd ${name} git reset --hard @@ -19,14 +19,23 @@ build() { cd ${name} fi - git checkout ${version} + git checkout v${version} +} + + - cp mkinitramfs /usr/bin/ +build() { + gitsetup + + if [[ ! -d ${PKG}/usr/bin ]]; then + mkdir -p ${PKG}/usr/bin + fi + cp mkinitramfs ${PKG}/usr/bin/ - if [[ ! -d /usr/share/mkinitramfs ]]; then - mkdir /usr/share/mkinitramfs + if [[ ! -d ${PKG}/usr/share/mkinitramfs ]]; then + mkdir -p ${PKG}/usr/share/mkinitramfs fi - cp init /usr/share/mkinitramfs + cp init ${PKG}/usr/share/mkinitramfs/ } # vim: set ft=sh ts=2 et: |