Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
anna petry
bitmask-vpn
Commits
78ee21c4
Unverified
Commit
78ee21c4
authored
5 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
[pkg] update debian template
parent
80db8766
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
branding/templates/debian/rules-template
+17
-3
17 additions, 3 deletions
branding/templates/debian/rules-template
branding/templates/makefile/Makefile
+1
-0
1 addition, 0 deletions
branding/templates/makefile/Makefile
with
18 additions
and
3 deletions
branding/templates/debian/rules-template
+
17
−
3
View file @
78ee21c4
...
...
@@ -3,9 +3,24 @@
# This has to be exported to make some magic below work.
export
DH_OPTIONS
export
GO111MODULE
=
on
export
GOCACHE
=
/tmp/gocache
export
DH_GOPKG
=
0xacab.org/leap/bitmask-vpn
export
DH_GOLANG_EXCLUDES
=
vendor
export
DH_GOLANG_EXCLUDES
:=
vendor packages tools cmd/bitmask-helper cmd/bitmask-connect
#dh_golang doesn't do this for you
ifeq
($(DEB_HOST_ARCH), i386)
export
GOARCH
:=
386
else
ifeq
($(DEB_HOST_ARCH), amd64)
export
GOARCH
:=
amd64
else
ifeq
($(DEB_HOST_ARCH), armhf)
export
GOARCH
:=
arm
else
ifeq
($(DEB_HOST_ARCH), arm64)
export
GOARCH
:=
arm64
endif
# TODO get the static version that gen_pkg generated instead??
VERSION
=
debian-
$(
shell git describe
--tags
--always
)
...
...
@@ -17,6 +32,7 @@ APPNAME = ${binaryName}
override_dh_auto_test
:
override_dh_auto_build
:
mkdir
-p
/tmp/gocache
rm
-rf
src/0xacab.org/leap/bitmask-vpn/tools/transifex
rm
-rf
obj-
$(
DEB_BUILD_GNU_TYPE
)
/src/0xacab.org/leap/bitmask-vpn/tools/transifex
rm
-rf
tools
...
...
@@ -29,8 +45,6 @@ override_dh_install:
cp
$(
CURDIR
)
/helpers/se.leap.bitmask.policy
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/share/polkit-1/actions
rm
-fr
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/share/gocode
strip
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/bin/bitmask-vpn
rm
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/bin/bitmask-helper
rm
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/bin/bitmask-connect
mv
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/bin/bitmask-vpn
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/bin/
${
APPNAME
}
mkdir
-p
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/share/
${
APPNAME
}
cp
$(
CURDIR
)
/debian/icons/scalable/icon.svg
$(
CURDIR
)
/debian/
${
APPNAME
}
/usr/share/
${
APPNAME
}
/icon.svg
...
...
This diff is collapsed.
Click to expand it.
branding/templates/makefile/Makefile
+
1
−
0
View file @
78ee21c4
...
...
@@ -97,6 +97,7 @@ pkg_deb:
# bitmask-vpn tar.gz should be placed in parent forlder after doing 'make prepare' with the
# bitmask-vpn topmost Makefile.
@
cp
../bitmask-vpn_
$(
VERSION
)
.tgz build/
$(
BINNAME
)
_
${
DEB_VERSION
}
.orig.tar.gz
@
rm
-rf
build/
${
BINNAME
}
_
${
DEB_VERSION
}
build/bitmask-vpn_
${
VERSION
}
-src
@
cd
build
&&
tar
xzf
$(
BINNAME
)
_
${
DEB_VERSION
}
.orig.tar.gz
&&
mv
bitmask-vpn_
${
VERSION
}
-src
${
BINNAME
}
_
${
DEB_VERSION
}
@
cp
-r
debian/ build/
$(
BINNAME
)
_
$(
DEB_VERSION
)
/
@
cd
build/
$(
BINNAME
)
_
$(
DEB_VERSION
)
&&
debuild
-us
-uc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment