From 3c593ca316edd87e442cfc72b8c4a99dac2fe9ff Mon Sep 17 00:00:00 2001 From: Arinerron Date: Sat, 20 Jul 2019 10:43:55 -0700 Subject: [PATCH] Add lazypkg files --- install/build.sh | 3 +++ install/post_install.sh | 5 ++++ install/pre_install.sh | 3 +++ onionr.yml | 54 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100755 install/build.sh create mode 100755 install/post_install.sh create mode 100755 install/pre_install.sh create mode 100644 onionr.yml diff --git a/install/build.sh b/install/build.sh new file mode 100755 index 00000000..34202065 --- /dev/null +++ b/install/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +make plugins-reset diff --git a/install/post_install.sh b/install/post_install.sh new file mode 100755 index 00000000..afcf1489 --- /dev/null +++ b/install/post_install.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +systemctl daemon-reload +systemctl enable onionr +systemctl start onionr diff --git a/install/pre_install.sh b/install/pre_install.sh new file mode 100755 index 00000000..f7f5ccbc --- /dev/null +++ b/install/pre_install.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +pip3 install --no-input -r "$OUTPUT_DIR/requirements.txt" --require-hashes > /dev/null diff --git a/onionr.yml b/onionr.yml new file mode 100644 index 00000000..e7f1e45c --- /dev/null +++ b/onionr.yml @@ -0,0 +1,54 @@ +name: onionr +version: 0.1 +release: 1 +summary: anonymous P2P communication platform +description: Onionr is a decentralized, peer-to-peer communication network, designed + to be anonymous and resistant to (meta)data analysis, spam, and corruption. +license: GPL +website: https://onionr.net/ +contact: contact@onionr.net +maintainer: Kevin Froman + +relationships: +- conflicts: onionr2 + +sources: +- git: https://gitlab.com/beardog/onionr.git + branch: master + +dependencies: +- deb: git + required: true +- deb: curl + required: true +- deb: tor + required: true +- deb: python3.7 + pkgbuild: python + build: true + required: true +- deb: python3-setuptools + pkgbuild: python-setuptools + build: true + required: true +- deb: python3-pip + pkgbuild: python-pip + build: true + required: true + +movements: +- install/onionr: /usr/bin/ + chown: root:root + chmod: 755 +- install/onionr.service: /etc/systemd/system/ + chown: root:root + chmod: 644 +- '.': /usr/share/onionr + chown: root:root + chmod: 755 + +scripts: +- build: install/build.sh +- pre_install: install/pre_install.sh +- post_install: install/post_install.sh +