Commit c7b950c1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add portmaster

parent 22ac3a6f
#!/bin/sh
PKGNAME=portmaster
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Portmaster from the official site"
URL="https://safing.io/"
. $(dirname $0)/common.sh
repack=''
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm|deb)
;;
*)
pkgtype="deb"
;;
esac
if [ "$(epm print info -s)" = "alt" ] ; then
repack="--repack"
fi
PKGURL="https://updates.safing.io/latest/linux_amd64/packages/portmaster-installer.$pkgtype"
epm install $prepack "$PKGURL"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=portmaster
PRODUCTDIR=/opt/safing/portmaster
. $(dirname $0)/common-chromium-browser.sh
install -D -m644 .$PRODUCTDIR/portmaster.service ./lib/systemd/system/portmaster.service
install -D -m644 .$PRODUCTDIR/portmaster.desktop ./usr/share/applications/portmaster.desktop
install -D -m644 .$PRODUCTDIR/portmaster_notifier.desktop ./usr/share/applications/portmaster_notifier.desktop
mkdir -p $BUILDROOT/usr/bin/
cat <<EOF >$BUILDROOT/usr/bin/$PRODUCT
#!/bin/sh
$PRODUCTDIR/portmaster-start app --data=$PRODUCTDIR "\$@"
EOF
chmod a+x $BUILDROOT/usr/bin/$PRODUCT
pack_file /usr/bin/$PRODUCT
echo "Dowloading ... "
.$PRODUCTDIR/portmaster-start --data $BUILDROOT$PRODUCTDIR update || fatal
pack_file $PRODUCTDIR/updates
install_deps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment