Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions recipes/core/acpid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
inherit: [autotools]

metaEnvironment:
PKG_VERSION: "2.0.34"
PKG_LICENSE: "GPL-2.0+"

checkoutSCM:
scm: url
url: ${SOURCEFORGE_MIRROR}/project/acpid2/acpid-${PKG_VERSION}.tar.xz
digestSHA1: 9322112027e4aa5a8d1b97ec64ef1d150ff0f4fc
stripComponents: 1

buildScript: |
autotoolsBuild $1

# Add default action for the poweroff event
mkdir -p install/etc/acpi/events
printf 'event=button[ /]power\naction=%s\n' '/sbin/poweroff' \
> install/etc/acpi/events/powerbtn

packageScript: |
autotoolsPackageTgt
43 changes: 43 additions & 0 deletions recipes/net/chrony.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
inherit: [cpackage, pkg-config, make, install]

metaEnvironment:
PKG_VERSION: "4.6.1"
PKG_LICENSE: "GPL-2.0"

checkoutSCM:
scm: url
url: https://chrony-project.org/releases/chrony-${PKG_VERSION}.tar.gz
digestSHA1: 35b070fdd446080232844ac9f70f84ca1823206f
stripComponents: 1

depends:
- libs::libcap-dev

- use: []
depends:
- libs::libcap-tgt

buildVars: [CC, CFLAGS, CPPFLAGS, LDFLAGS]
buildScript: |
cp -afs $1/ build/

pushd build
./configure \
--prefix=/usr \
--without-tomcrypt \
--with-user=chrony

makeParallel \
DESTDIR="$BOB_CWD/install" \
install
popd

mkdir -p install/.bob
cat >install/.bob/chrony.user-table <<EOF
chrony -1 chrony -1 * /run/chrony - - Time daemon
EOF

cp $1/examples/chrony.conf.example1 install/etc/chrony.conf

packageScript: installCopy "$1/install/"
provideDeps: [ "*-tgt" ]
32 changes: 32 additions & 0 deletions recipes/net/socat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
inherit: [autotools]

metaEnvironment:
PKG_VERSION: "1.8.0.3"
PKG_LICENSE: "GPL-2.0 with OpenSSL exception"

depends:
- libs::readline-dev
- libs::openssl-dev

- use: []
depends:
- libs::readline-tgt
- libs::openssl-tgt

checkoutSCM:
scm: url
url: http://www.dest-unreach.org/socat/download/socat-${PKG_VERSION}.tar.bz2
digestSHA1: 3bb44ae67b846dc76a3fe717ef3380928c9ee340
stripComponents: 1

buildVars: [AR]
buildScript: |
mkdir -p build
# install is broken for the scripts for out of tree builds; link them so
# make install finds them
ln -s $1/{socat-chain.sh,socat-mux.sh,socat-broker.sh} build/
autotoolsBuild $1

packageScript: |
autotoolsPackageTgt
provideDeps: [ "*-tgt" ]