Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
c7b950c1
Commit
c7b950c1
authored
Jul 07, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add portmaster
parent
22ac3a6f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
portmaster.sh
play.d/portmaster.sh
+28
-0
portmaster.sh
repack.d/portmaster.sh
+27
-0
No files found.
play.d/portmaster.sh
0 → 100755
View file @
c7b950c1
#!/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
"
repack.d/portmaster.sh
0 → 100755
View file @
c7b950c1
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment