Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
David Philipe Gil
package-helpers
Commits
6cd93a43
Commit
6cd93a43
authored
5 years ago
by
David Philipe Gil
Browse files
Options
Downloads
Patches
Plain Diff
changed keyserver urls to work on my computer
parent
91bb6793
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/config
+15
-8
15 additions, 8 deletions
helpers/config
with
15 additions
and
8 deletions
helpers/config
+
15
−
8
View file @
6cd93a43
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#
#
# Copyright (C) 2008-2010 Rubén Rodríguez <ruben@trisquel.info>
# Copyright (C) 2008-2010 Rubén Rodríguez <ruben@trisquel.info>
# Copyright (C) 2014 Santiago Rodriguez <santi@trisquel.info>
# Copyright (C) 2014 Santiago Rodriguez <santi@trisquel.info>
# Copyright (C) 2019 David Trudgian <dave@trudgian.net>
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -19,12 +20,14 @@
...
@@ -19,12 +20,14 @@
#
#
set
-e
set
-e
set
-o
pipefail
export
LANG
=
C
LC_TIME
=
C
export
LANG
=
C
LC_TIME
=
C
PACKAGE
=
$(
echo
$0
|/bin/sed s/make-//g
)
PACKAGE
=
$(
echo
$0
|/bin/sed s/make-//g
)
export
DATE
=
$(
date
+
'%a, %d %b %Y %T %z'
)
export
DATE
=
$(
date
+
'%a, %d %b %Y %T %z'
)
export
DATA
=
$PWD
/DATA/
$PACKAGE
export
DATA
=
"
$PWD
/DATA/
$PACKAGE
"
if
!
[
1
$COMPONENT
=
"1main"
]
if
!
[
1
$COMPONENT
=
"1main"
]
then
then
COMPONENT
=
${
COMPONENT
:-
universe
}
COMPONENT
=
${
COMPONENT
:-
universe
}
...
@@ -36,20 +39,20 @@ fi
...
@@ -36,20 +39,20 @@ fi
export
DEBIAN_FRONTEND
=
noninteractive
export
DEBIAN_FRONTEND
=
noninteractive
export
DEBEMAIL
=
trisquel-devel@listas.trisquel.info
export
DEBEMAIL
=
trisquel-devel@listas.trisquel.info
export
DEBFULLNAME
=
"Trisquel GNU/Linux developers"
export
DEBFULLNAME
=
"Trisquel GNU/Linux developers"
export
CODENAME
=
flidas
export
CODENAME
=
etiona
export
REVISION
=
8
.0
export
REVISION
=
9
.0
export
RELEASE
=
trisquel
export
RELEASE
=
trisquel
export
DOMAIN
=
trisquel.info
export
DOMAIN
=
trisquel.info
export
UPSTREAM
=
xenial
export
UPSTREAM
=
bionic
export
UPSTREAMRELEASE
=
1
6
.04
export
UPSTREAMRELEASE
=
1
8
.04
MIRROR
=
http://archive.ubuntu.com/ubuntu
MIRROR
=
http://archive.ubuntu.com/ubuntu
DEVELMIRROR
=
http://devel.trisquel.info/trisquel/
$CODENAME
DEVELMIRROR
=
http://devel.trisquel.info/trisquel/
$CODENAME
LOCALMIRROR
=
http://archive.trisquel.info/trisquel
LOCALMIRROR
=
http://archive.trisquel.info/trisquel
LOCAL_APT
=
`
mktemp
-d
`
LOCAL_APT
=
`
mktemp
-d
`
export
RPL
=
$PWD
/DATA/rpl
export
RPL
=
"
$PWD
/DATA/rpl
"
rpl
(){
rpl
(){
$RPL
$@
$RPL
"
$@
"
}
}
pkgversion
(){
pkgversion
(){
...
@@ -84,6 +87,7 @@ cat << EOF > ${LOCAL_APT}/etc/apt.conf
...
@@ -84,6 +87,7 @@ cat << EOF > ${LOCAL_APT}/etc/apt.conf
Dir::State "
${
LOCAL_APT
}
/var/lib/apt";
Dir::State "
${
LOCAL_APT
}
/var/lib/apt";
Dir::State::status "
${
LOCAL_APT
}
/var/lib/dpkg/status";
Dir::State::status "
${
LOCAL_APT
}
/var/lib/dpkg/status";
Dir::Etc::SourceList "
${
LOCAL_APT
}
/etc/apt.sources.list";
Dir::Etc::SourceList "
${
LOCAL_APT
}
/etc/apt.sources.list";
Dir::Etc::SourceParts "";
Dir::Cache "
${
LOCAL_APT
}
/var/cache/apt";
Dir::Cache "
${
LOCAL_APT
}
/var/cache/apt";
pkgCacheGen::Essential "none";
pkgCacheGen::Essential "none";
Dir::Etc::Trusted "
${
LOCAL_APT
}
/etc/trusted.gpg";
Dir::Etc::Trusted "
${
LOCAL_APT
}
/etc/trusted.gpg";
...
@@ -104,6 +108,8 @@ apt-key --keyring ${LOCAL_APT}/etc/trusted.gpg adv --keyserver keyserver.ubuntu.
...
@@ -104,6 +108,8 @@ apt-key --keyring ${LOCAL_APT}/etc/trusted.gpg adv --keyserver keyserver.ubuntu.
# Debian gpg keys
# Debian gpg keys
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
9D6D8F6BC857C906
>
/dev/null
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
9D6D8F6BC857C906
>
/dev/null
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
8B48AD6246925553
>
/dev/null
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
8B48AD6246925553
>
/dev/null
# Tor gpg key
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--import
DATA/tor/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc
fi
fi
# Also import the repository key optionally listed in the helper
# Also import the repository key optionally listed in the helper
...
@@ -131,7 +137,7 @@ apt-get source $PACKAGE --download-only -c ${LOCAL_APT}/etc/apt.conf
...
@@ -131,7 +137,7 @@ apt-get source $PACKAGE --download-only -c ${LOCAL_APT}/etc/apt.conf
if
grep
-q
"BEGIN PGP SIGNATURE"
*
.dsc
;
then
if
grep
-q
"BEGIN PGP SIGNATURE"
*
.dsc
;
then
KEY
=
$(
gpg2
--keyid-format
0xlong
--verify
*
.dsc 2>&1 |
grep
0x |
sed
's/.*0x//'
||
true
)
KEY
=
$(
gpg2
--keyid-format
0xlong
--verify
*
.dsc 2>&1 |
grep
0x |
sed
's/.*0x//'
||
true
)
[
-z
"
$KEY
"
]
&&
KEY
=
$(
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc 2>&1 | egrep
".SA key"
|
sed
's/.*.SA key //'
||
true
)
[
-z
"
$KEY
"
]
&&
KEY
=
$(
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc 2>&1 | egrep
".SA key"
|
sed
's/.*.SA key //'
||
true
)
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
hkps://
keyserver.ubuntu.com
:443
$KEY
>
/dev/null
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
keyserver.ubuntu.com
$KEY
>
/dev/null
touch
${
LOCAL_APT
}
/keyring.gpg
touch
${
LOCAL_APT
}
/keyring.gpg
gpg2
--keyring
${
LOCAL_APT
}
/keyring.gpg
--import
${
LOCAL_APT
}
/etc/trusted.gpg
gpg2
--keyring
${
LOCAL_APT
}
/keyring.gpg
--import
${
LOCAL_APT
}
/etc/trusted.gpg
gpg2
--verify
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc
gpg2
--verify
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc
...
@@ -231,3 +237,4 @@ fi
...
@@ -231,3 +237,4 @@ fi
}
}
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