Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
86
Issues
86
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
32
Merge Requests
32
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chakra
Packages
core
Commits
386fc897
Commit
386fc897
authored
Jul 20, 2013
by
Fabian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openssl group: updated openvpn
parent
fe469407
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
openvpn/PKGBUILD
openvpn/PKGBUILD
+23
-18
openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch
openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch
+11
-0
No files found.
openvpn/PKGBUILD
View file @
386fc897
#
# Core packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
# maintainer <inkane@chakra-project.org>
# contributor <abveritas[at]chakra-project[dot]org>
pkgname
=
openvpn
pkgver
=
2.
2
.2
pkgver
=
2.
3
.2
pkgrel
=
1
pkgdesc
=
"An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
arch
=(
'x86_64'
)
url
=
"http://openvpn.net/index.php/open-source.html"
depends
=(
'openssl'
'lzo2'
'iproute2'
)
makedepends
=(
'systemd'
)
license
=(
'custom'
)
backup
=(
usr/share/openvpn/easy-rsa/vars
usr/share/openvpn/easy-rsa/openssl.cnf
etc/conf.d/openvpn-tapdev
)
source
=(
"http://swupdate.openvpn.net/community/releases/openvpn-
${
pkgver
}
.tar.gz"
source
=(
http://swupdate.openvpn.net/community/releases/openvpn-
${
pkgver
}
.tar.gz
{
,.asc
}
http://build.openvpn.net/downloads/releases/easy-rsa-2.2.0_master.tar.gz
{
,.asc
}
"openvpn-2.3.0-fix-systemd-ask-password-path.patch"
'openvpn@.service'
)
md5sums
=(
'c5181e27b7945fa6276d21873329c5c7'
md5sums
=(
'06e5f93dbf13f2c19647ca15ffc23ac1'
'7203a3f37b9a4351411429c96a3b089b'
'fbf818b6e1f212e77b9ce0e6d92584a1'
'46df49b85f9850fec287e311279bdbef'
'e1bd1523e38745e948c710db1a330bb1'
'44047df812a3fcd57a7e36a61732a9b9'
)
build
()
{
cd
$srcdir
/
$pkgname
-
$pkgver
patch
-p0
-i
$srcdir
/openvpn-2.3.0-fix-systemd-ask-password-path.patch
# Build openvpn
CFLAGS
=
"
$CFLAGS
-DPLUGIN_LIBDIR=
\\\"
/usr/lib/openvpn
\\\"
"
./configure
--prefix
=
/usr
\
--enable-password-save
\
--mandir
=
/usr/share/man
\
--enable-iproute2
--enable-iproute2
\
--enable-systemd
make
# Build plugins
for
plug
in
auth-pam down-root
;
do
cd
$srcdir
/
$pkgname
-
$pkgver
/plugin/
$plug
make
done
# Build easy-rsa
cd
$srcdir
/easy-rsa-2.2.0_master
./configure
--prefix
=
/usr
--with-easyrsadir
=
/usr/share/openvpn/easy-rsa
make
}
package
()
{
...
...
@@ -43,19 +52,15 @@ package() {
install
-d
-m755
$pkgdir
/etc/openvpn
# Install examples
install
-d
-m755
$pkgdir
/usr/share/openvpn
cp
-r
sample-config-files
$pkgdir
/usr/share/openvpn/examples
cp
-r
sample
/sample
-config-files
$pkgdir
/usr/share/openvpn/examples
find
$pkgdir
/usr/share/openvpn
-type
f
-exec
chmod
644
{}
\;
find
$pkgdir
/usr/share/openvpn
-type
d
-exec
chmod
755
{}
\;
# Install license
install
-D
-m644
COPYING
$pkgdir
/usr/share/licenses/
$pkgname
/COPYING
# Install plugins
for
plug
in
auth-pam down-root
;
do
cd
$srcdir
/
$pkgname
-
$pkgver
/plugin/
$plug
install
-D
-m755
openvpn-
$plug
.so
$pkgdir
/usr/lib/openvpn/openvpn-
$plug
.so
done
# Install easy-rsa
cd
$srcdir
/
$pkgname
-
$pkgver
make
-C
easy-rsa/2.0
install
DESTDIR
=
$pkgdir
PREFIX
=
usr/share/openvpn/easy-rsa
cd
$srcdir
/easy-rsa-2.2.0_master
make
install
DESTDIR
=
$pkgdir
rm
-f
${
pkgdir
}
/usr/share/ope
# install systemd units
install
-Dm644
"
$srcdir
/openvpn@.service"
"
$pkgdir
/usr/lib/systemd/system/openvpn@.service"
...
...
openvpn/openvpn-2.3.0-fix-systemd-ask-password-path.patch
0 → 100644
View file @
386fc897
--- src/openvpn/console.c.orig 2013-01-30 09:42:57.480257300 +0100
+++ src/openvpn/console.c 2013-01-30 09:43:07.446179811 +0100
@@ -162,7 +162,7 @@
get_console_input_systemd (const char *p
struct argv argv;
argv_init (&argv);
- argv_printf (&argv, "/bin/systemd-ask-password");
+ argv_printf (&argv, "/usr/bin/systemd-ask-password");
argv_printf_cat (&argv, "%s", prompt);
if ((std_out = openvpn_popen (&argv, NULL)) < 0) {
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