Browse Source

initial transfer

master
artoo 1 year ago
parent
commit
d5658be9d6
2 changed files with 82 additions and 0 deletions
  1. +41
    -0
      gpm-openrc/repos/core-any/PKGBUILD
  2. +41
    -0
      gpm-openrc/trunk/PKGBUILD

+ 41
- 0
gpm-openrc/repos/core-any/PKGBUILD View File

@@ -0,0 +1,41 @@
# Maintainer: artoo <artoo@artixlinux.org>

_url="https://raw.githubusercontent.com/gentoo/gentoo/master"

pkgname=gpm-openrc
pkgver=20180216
pkgrel=1
pkgdesc="OpenRC gpm init script"
arch=('any')
url="https://github.com/artix-linux/packages"
license=('GPL2')
groups=('openrc-system')
depends=('openrc' 'gpm')
conflicts=('systemd-sysvcompat')
backup=('etc/conf.d/gpm')
source=("gpm.confd::${_url}/sys-libs/gpm/files/gpm.conf.d"
"gpm.initd::${_url}/sys-libs/gpm/files/gpm.rc6-2")
sha256sums=('73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
'b48fd8ef0c4e64ca3f3ada72e8e2148a276f86bf3cbb1a165504058bd15385c1')

pkgver() {
date +%Y%m%d
}

_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1

sed -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
-e 's|/var/run|/run|g' \
-e 's|/usr/sbin|/usr/bin|g' \
-i ${pkgdir}/etc/init.d/$1
}

_inst_confd(){
install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
}

package() {
_inst_confd 'gpm'
_inst_initd 'gpm'
}

+ 41
- 0
gpm-openrc/trunk/PKGBUILD View File

@@ -0,0 +1,41 @@
# Maintainer: artoo <artoo@artixlinux.org>

_url="https://raw.githubusercontent.com/gentoo/gentoo/master"

pkgname=gpm-openrc
pkgver=20180216
pkgrel=1
pkgdesc="OpenRC gpm init script"
arch=('any')
url="https://github.com/artix-linux/packages"
license=('GPL2')
groups=('openrc-system')
depends=('openrc' 'gpm')
conflicts=('systemd-sysvcompat')
backup=('etc/conf.d/gpm')
source=("gpm.confd::${_url}/sys-libs/gpm/files/gpm.conf.d"
"gpm.initd::${_url}/sys-libs/gpm/files/gpm.rc6-2")
sha256sums=('73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
'b48fd8ef0c4e64ca3f3ada72e8e2148a276f86bf3cbb1a165504058bd15385c1')

pkgver() {
date +%Y%m%d
}

_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1

sed -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
-e 's|/var/run|/run|g' \
-e 's|/usr/sbin|/usr/bin|g' \
-i ${pkgdir}/etc/init.d/$1
}

_inst_confd(){
install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
}

package() {
_inst_confd 'gpm'
_inst_initd 'gpm'
}

Loading…
Cancel
Save