Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
ed0613ad
Commit
ed0613ad
authored
14 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
abuild: rename apkcache to abuildrepo
To avoid confusing with the /etc/apk/cache
parent
5a3bb638
No related branches found
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
Makefile
+2
-2
2 additions, 2 deletions
Makefile
abuild.in
+14
-14
14 additions, 14 deletions
abuild.in
with
16 additions
and
16 deletions
Makefile
+
2
−
2
View file @
ed0613ad
...
@@ -5,7 +5,7 @@ VERSION := 2.2
...
@@ -5,7 +5,7 @@ VERSION := 2.2
prefix
?=
/usr
prefix
?=
/usr
sysconfdir
?=
/etc
sysconfdir
?=
/etc
datadir
?=
$(
prefix
)
/share/
$(
PACKAGE
)
datadir
?=
$(
prefix
)
/share/
$(
PACKAGE
)
a
pkcache
?=
~/.cache/apks
a
buildrepo
?=
~/.cache/apks
SCRIPTS
:=
abuild devbuild mkalpine buildrepo abuild-keygen
\
SCRIPTS
:=
abuild devbuild mkalpine buildrepo abuild-keygen
\
abuild-sign newapkbuild
abuild-sign newapkbuild
...
@@ -33,7 +33,7 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
...
@@ -33,7 +33,7 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
-e
's:@prefix@:
$(
prefix
)
:g'
\
-e
's:@prefix@:
$(
prefix
)
:g'
\
-e
's:@sysconfdir@:
$(
sysconfdir
)
:g'
\
-e
's:@sysconfdir@:
$(
sysconfdir
)
:g'
\
-e
's:@datadir@:
$(
datadir
)
:g'
\
-e
's:@datadir@:
$(
datadir
)
:g'
\
-e
's:@a
pkcache@:
$(
apkcache
)
:g'
-e
's:@a
buildrepo@:
$(
abuildrepo
)
:g'
SSL_LIBS
:=
$(
shell pkg-config
--libs
openssl
)
SSL_LIBS
:=
$(
shell pkg-config
--libs
openssl
)
...
...
This diff is collapsed.
Click to expand it.
abuild.in
+
14
−
14
View file @
ed0613ad
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
abuild_ver
=
@VERSION@
abuild_ver
=
@VERSION@
sysconfdir
=
@sysconfdir@
sysconfdir
=
@sysconfdir@
a
pkcache
=
@apkcache
@
a
buildrepo
=
@abuildrepo
@
datadir
=
@datadir@
datadir
=
@datadir@
program
=
${
0
##*/
}
program
=
${
0
##*/
}
...
@@ -259,7 +259,7 @@ cleanpkg() {
...
@@ -259,7 +259,7 @@ cleanpkg() {
for
i
in
$pkgname
$subpackages
;
do
for
i
in
$pkgname
$subpackages
;
do
local
p
=
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
"
local
p
=
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
"
rm
-f
"
$PKGDEST
/
$p
.apk"
"
$PKGDEST
/
$p
.src.tar.gz"
\
rm
-f
"
$PKGDEST
/
$p
.apk"
"
$PKGDEST
/
$p
.src.tar.gz"
\
"
$a
pkcache
"
/
$p
.apk
"
$a
buildrepo
"
/
$p
.apk
done
done
# remove given packages from index
# remove given packages from index
}
}
...
@@ -535,15 +535,15 @@ create_apks() {
...
@@ -535,15 +535,15 @@ create_apks() {
done
done
}
}
a
pkcache
()
{
a
buildrepo
()
{
if
!
apk_up2date
||
[
-n
"
$force
"
]
;
then
if
!
apk_up2date
||
[
-n
"
$force
"
]
;
then
sanitycheck
&&
builddeps
&&
clean
&&
fetch
&&
unpack
\
sanitycheck
&&
builddeps
&&
clean
&&
fetch
&&
unpack
\
&&
prepare
&&
mkusers
&&
rootpkg
||
return
1
&&
prepare
&&
mkusers
&&
rootpkg
||
return
1
fi
fi
local
apk
local
apk
mkdir
-p
"
$a
pkcache
"
||
return
1
mkdir
-p
"
$a
buildrepo
"
||
return
1
cd
"
$a
pkcache
"
cd
"
$a
buildrepo
"
# remove broken links
# remove broken links
for
apk
in
*
.apk
;
do
for
apk
in
*
.apk
;
do
...
@@ -554,7 +554,7 @@ apkcache() {
...
@@ -554,7 +554,7 @@ apkcache() {
# create links for this package
# create links for this package
for
apk
in
$(
listpkg
)
;
do
for
apk
in
$(
listpkg
)
;
do
ln
-sf
"
$PKGDEST
"
/
$apk
"
$a
pkcache
"
/
$apk
ln
-sf
"
$PKGDEST
"
/
$apk
"
$a
buildrepo
"
/
$apk
done
done
msg
"Updating the cached abuild repository index..."
msg
"Updating the cached abuild repository index..."
...
@@ -712,7 +712,7 @@ cache_up2date() {
...
@@ -712,7 +712,7 @@ cache_up2date() {
getpkgver
||
return
1
getpkgver
||
return
1
for
i
in
$pkgname
$subpackages
;
do
for
i
in
$pkgname
$subpackages
;
do
apk
=
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
apk
=
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
[
"
$a
pkcache
"
/APKINDEX.tar.gz
-nt
"
$a
pkcache
"
/
$apk
]
||
return
1
[
"
$a
buildrepo
"
/APKINDEX.tar.gz
-nt
"
$a
buildrepo
"
/
$apk
]
||
return
1
done
done
return
0
return
0
}
}
...
@@ -829,10 +829,10 @@ builddeps() {
...
@@ -829,10 +829,10 @@ builddeps() {
if
[
-n
"
$install_deps
"
]
&&
[
-z
"
$recursive
"
]
;
then
if
[
-n
"
$install_deps
"
]
&&
[
-z
"
$recursive
"
]
;
then
# make a --simluate run first to detect missing deps
# make a --simluate run first to detect missing deps
# apk-tools --virtual is no goot at reporting those.
# apk-tools --virtual is no goot at reporting those.
$SUDO
$APK
add
--repository
"
$a
pkcache
"
\
$SUDO
$APK
add
--repository
"
$a
buildrepo
"
\
--wait
30
\
--wait
30
\
--simulate
--quiet
$deps
||
return
1
--simulate
--quiet
$deps
||
return
1
$SUDO
$APK
add
--repository
"
$a
pkcache
"
\
$SUDO
$APK
add
--repository
"
$a
buildrepo
"
\
--wait
30
\
--wait
30
\
--virtual
.makedepends-
$pkgname
$deps
\
--virtual
.makedepends-
$pkgname
$deps
\
&&
return
0
&&
return
0
...
@@ -842,7 +842,7 @@ builddeps() {
...
@@ -842,7 +842,7 @@ builddeps() {
# find dependencies that are installed but missing in repo.
# find dependencies that are installed but missing in repo.
for
i
in
$deps
;
do
for
i
in
$deps
;
do
local
m
=
$(
$APK
search
--repository
"
$a
pkcache
"
${
i
%[<>=]*
}
)
local
m
=
$(
$APK
search
--repository
"
$a
buildrepo
"
${
i
%[<>=]*
}
)
if
[
-z
"
$m
"
]
;
then
if
[
-z
"
$m
"
]
;
then
missing
=
"
$missing
$i
"
missing
=
"
$missing
$i
"
fi
fi
...
@@ -854,10 +854,10 @@ builddeps() {
...
@@ -854,10 +854,10 @@ builddeps() {
local
pkg
=
${
i
%
:
*
}
local
pkg
=
${
i
%
:
*
}
if
[
-d
"
$dir
"
]
;
then
if
[
-d
"
$dir
"
]
;
then
msg
"Entering
$dir
"
msg
"Entering
$dir
"
cd
"
$dir
"
&&
$0
-k
-r
a
pkcache
||
return
1
cd
"
$dir
"
&&
$0
-k
-r
a
buildrepo
||
return
1
fi
fi
done
done
$SUDO
$APK
add
-u
--repository
"
$a
pkcache
"
\
$SUDO
$APK
add
-u
--repository
"
$a
buildrepo
"
\
--wait
30
\
--wait
30
\
--virtual
.makedepends-
$pkgname
$deps
--virtual
.makedepends-
$pkgname
$deps
}
}
...
@@ -975,7 +975,7 @@ post_add() {
...
@@ -975,7 +975,7 @@ post_add() {
installdeps
()
{
installdeps
()
{
local
deps i
local
deps i
sudo
$APK
add
--wait
30
--repository
"
$a
pkcache
"
\
sudo
$APK
add
--wait
30
--repository
"
$a
buildrepo
"
\
--virtual
.makedepends-
$pkgname
\
--virtual
.makedepends-
$pkgname
\
$makedepends
$makedepends
}
}
...
@@ -988,7 +988,7 @@ all() {
...
@@ -988,7 +988,7 @@ all() {
if
up2date
&&
[
-z
"
$force
"
]
;
then
if
up2date
&&
[
-z
"
$force
"
]
;
then
msg
"Package is up to date"
msg
"Package is up to date"
else
else
a
pkcache
a
buildrepo
fi
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