diff options
author | Mauro Santos | 2015-07-14 22:11:46 +0100 |
---|---|---|
committer | Mauro Santos | 2015-07-14 22:11:46 +0100 |
commit | 9417c8d00684008592a6ff5d277a5cd0050f646c (patch) | |
tree | 7c601c18a85e0f0b91a7c7d3b1f3919edfed8158 | |
download | aur-9417c8d00684008592a6ff5d277a5cd0050f646c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | ckboot.install | 21 |
4 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6dbdb15387bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = systemd-ckboot + pkgdesc = Checks boot files and MBR for changes + pkgver = 1.2 + pkgrel = 1 + url = https://sourceforge.net/projects/ckboot + install = ckboot.install + arch = any + license = GPL + depends = zenity + depends = systemd + backup = etc/ckboot.conf + source = https://downloads.sourceforge.net/project/ckboot/ckboot-1.2.tar.gz + md5sums = b59dac8618371ec58ad9da192e5fbd7c + +pkgname = systemd-ckboot + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..027271b9b22c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +files diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eff8c3543295 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Mauro Santos <registo.mailling@gmail.com> + +pkgname=systemd-ckboot +pkgver=1.2 +pkgrel=1 +pkgdesc="Checks boot files and MBR for changes" +arch=('any') +url="https://sourceforge.net/projects/ckboot" +license=('GPL') +depends=('zenity' 'systemd') +backup=('etc/ckboot.conf') +install='ckboot.install' +source=("https://downloads.sourceforge.net/project/ckboot/ckboot-${pkgver}.tar.gz") +md5sums=('b59dac8618371ec58ad9da192e5fbd7c') + +package() { + # Install files + install -Dm755 "${srcdir}/ckboot" "${pkgdir}/usr/bin/ckboot" + mkdir -p "${pkgdir}/etc/profile.d" + ln -s /usr/bin/ckboot "${pkgdir}/etc/profile.d/ckboot.sh" + install -Dm755 "${srcdir}/ckboot-check" "${pkgdir}/usr/bin/ckboot-check" + install -Dm755 "${srcdir}/ckboot-init" "${pkgdir}/usr/bin/ckboot-init" + install -Dm644 "${srcdir}/ckboot.service" "${pkgdir}/usr/lib/systemd/system/ckboot.service" + install -Dm644 "${srcdir}/ckboot.conf" "${pkgdir}/etc/ckboot.conf" + install -Dm644 "${srcdir}/ckboot.desktop" "${pkgdir}/etc/xdg/autostart/ckboot.desktop" + + # Enable unit + mkdir "${pkgdir}/usr/lib/systemd/system/basic.target.wants" + ln -s ../ckboot.service "${pkgdir}/usr/lib/systemd/system/basic.target.wants/ckboot.service" +} diff --git a/ckboot.install b/ckboot.install new file mode 100644 index 000000000000..015681cc4bfd --- /dev/null +++ b/ckboot.install @@ -0,0 +1,21 @@ +post_install() { +cat << EOF + +/boot should be mounted on boot for proper operation, do not +use options such as noauto,x-systemd.automount in /etc/fstab + +EOF +/usr/bin/ckboot-init +} + +post_remove() { +/usr/bin/rm /tmp/ckboot /var/ckboot/{boothash,mbrhash} &> /dev/null +/usr/bin/rmdir /var/ckboot &> /dev/null +} + +post_upgrade() { +if [[ -e /var/ckboot/filehash ]] +then +/usr/bin/mv /var/ckboot/filehash /var/ckboot/boothash +fi +} |