File tree 2 files changed +66
-4
lines changed
alpine/google-authenticator
2 files changed +66
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,21 @@ FROM alpine:3.4
5
5
6
6
MAINTAINER Kyle Manna <
[email protected] >
7
7
8
- RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && \
9
- echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
10
- apk add --update openvpn iptables bash easy-rsa openvpn-auth-pam google-authenticator pamtester && \
8
+ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
9
+ apk add --update openvpn iptables bash easy-rsa openvpn-auth-pam pamtester && \
11
10
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
12
- rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
11
+ rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
12
+
13
+ COPY alpine /tmp/local
14
+ RUN adduser -D -G abuild abuild && \
15
+ chown -R abuild:abuild /tmp/local && \
16
+ apk add --update alpine-sdk && \
17
+ su -s /bin/bash -c 'cd /tmp/local/google-authenticator && abuild-keygen -a && abuild -Fr' abuild && \
18
+ cp /home/abuild/.abuild/abuild*.pub /etc/apk/keys/ && \
19
+ apk add /home/abuild/packages/local/x86_64/google-authenticator-20160207-r1.apk && \
20
+ apk del --purge --rdepends alpine-sdk && rm -rf /home/abuild && \
21
+ rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
22
+
13
23
14
24
# Needed by scripts
15
25
ENV OPENVPN /etc/openvpn
Original file line number Diff line number Diff line change
1
+ # Contributor: Fabio Napoleoni <[email protected] >
2
+ # Maintainer:
3
+ pkgname=google-authenticator
4
+ pkgver=20160207
5
+ pkgrel=1
6
+ pkgdesc=" Google Authenticator PAM module"
7
+ url=" https://github.com/google/google-authenticator"
8
+ arch=" all"
9
+ license=" ASL 2.0"
10
+ depends=
11
+ depends_dev=
12
+ makedepends=" $depends_dev autoconf automake libtool linux-pam-dev m4 openssl-dev"
13
+ install=
14
+ subpackages=" $pkgname -doc"
15
+ source=" https://github.com/google/google-authenticator/archive/c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip"
16
+
17
+ _builddir=" $srcdir " /$pkgname -c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425/libpam
18
+
19
+ prepare () {
20
+ local i
21
+ cd " $_builddir "
22
+ for i in $source ; do
23
+ case $i in
24
+ * .patch) msg $i ; patch -p1 -i " $srcdir " /$i || return 1;;
25
+ esac
26
+ done
27
+ }
28
+
29
+ build () {
30
+ cd " $_builddir "
31
+ ./bootstrap.sh || return 1
32
+ ./configure \
33
+ --build=$CBUILD \
34
+ --host=$CHOST \
35
+ --prefix=/usr \
36
+ --libdir=/lib \
37
+ --sysconfdir=/etc \
38
+ --mandir=/usr/share/man \
39
+ --infodir=/usr/share/info \
40
+ || return 1
41
+
42
+ make || return 1
43
+ }
44
+
45
+ package () {
46
+ cd " $_builddir "
47
+ make DESTDIR=" $pkgdir " install || return 1
48
+ }
49
+
50
+ md5sums=" 33d3cbd0488bcb4f50b34b5670deffae c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip"
51
+ sha256sums=" e32abe693e54195bdb6aca52783e6e1c239e67296876ac59211a59e4608338b8 c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip"
52
+ sha512sums=" b44a626e6cc5d8e27685f5d39b5d33f49fc7070331db7b458d3ee40723972821bb8ed5458f27a287dc664d162acf1f8f9a36ca3b1bf767f2bbf27d4f538e9872 c0404dcdbda9ab9e4f0b8451ecdd44eee8db2425.zip"
You can’t perform that action at this time.
0 commit comments