Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
216
Merge Requests
216
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
ebe560ea
Commit
ebe560ea
authored
Apr 23, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/busybox: provide subpackage with static binary
(cherry picked from commit
1577216a
)
parent
161481a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
main/busybox/APKBUILD
main/busybox/APKBUILD
+24
-8
No files found.
main/busybox/APKBUILD
View file @
ebe560ea
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
busybox
pkgver
=
1.16.1
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Size optimized toolbox of many common UNIX utilities"
url
=
http://busybox.net
license
=
"GPL-2"
depends
=
install
=
"
$pkgname
.post-install
$pkgname
.post-upgrade"
subpackages
=
"
$pkgname
-static"
triggers
=
"busybox.trigger:/bin /usr/bin /sbin /usr/sbin /lib/modules/*"
source
=
"http://busybox.net/downloads/
$pkgname
-
$pkgver
.tar.bz2
$pkgname
-1.11.1-bb.patch
...
...
@@ -18,6 +19,7 @@ source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
busyboxconfig"
_builddir
=
"
$srcdir
"
/
$pkgname
-
$pkgver
_config
=
"
$srcdir
"
/busyboxconfig
prepare
()
{
cd
"
$_builddir
"
#patches
...
...
@@ -32,29 +34,43 @@ prepare() {
sed
-i
-e
's/(ip, _BB_DIR_BIN/(ip, _BB_DIR_SBIN/'
\
-e
's/(vi, _BB_DIR_BIN/(vi, _BB_DIR_USR_BIN/'
\
include/applets.h
||
return
1
# we set the install prefix with sed since it might differ depending
# on abuild version
sed
-e
"s:^CONFIG_PREFIX=.*:CONFIG_PREFIX=
\"
$pkgdir
\"
:"
\
../busyboxconfig
>
.config
}
build
()
{
cd
"
$_builddir
"
msg
"Building static busybox"
sed
-e
"s/.*CONFIG_PIE.*/
\#
CONFIG_PIE is not set/"
\
-e
"s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/"
\
"
$_config
"
>
.config
make silentoldconfig
||
return
1
make
||
return
1
mv
busybox busybox.static
# build dynamic
msg
"Building dynamic busybox"
cp
"
$_config
"
.config
make silentoldconfig
||
return
1
make
||
return
1
}
package
()
{
cd
"
$_builddir
"
make
install
DESTDIR
=
"
$pkgdir
"
mkdir
-p
"
$pkgdir
"
/usr/sbin
"
$pkgdir
"
/usr/bin
"
$pkgdir
"
/tmp
\
"
$pkgdir
"
/var/cache/misc
"
$pkgdir
"
/var/cache/misc
"
$pkgdir
"
/bin
"
$pkgdir
"
/sbin
chmod
1777
"
$pkgdir
"
/tmp
install
-m755
busybox
"
$pkgdir
"
/bin/busybox
# we need /bin/sh to be able to execute post-install
ln
-s
/bin/busybox
"
$pkgdir
"
/bin/sh
}
static
()
{
triggers
=
mkdir
-p
"
$subpkgdir
"
/bin
install
-m755
"
$_builddir
"
/busybox.static
\
"
$subpkgdir
"
/bin/busybox.static
}
md5sums
=
"319486ec65078d07fde26eb620fecde7 busybox-1.16.1.tar.bz2
4c0f3b486eaa0674961b7ddcd0c60a9b busybox-1.11.1-bb.patch
20d9beea7d0c0aaca14553a8f98fee12 flock-bb.patch
...
...
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