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
Model registry
Monitor
Service Desk
Analyze
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
alpine
aports
Commits
c7688414
Commit
c7688414
authored
3 years ago
by
Stacy Harper
Committed by
alice
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
main/bash: add system bashrc
parent
a54b4169
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25253
Bash add system bashrc
Pipeline
#118243
canceled
2 years ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/bash/APKBUILD
+9
-2
9 additions, 2 deletions
main/bash/APKBUILD
main/bash/bashrc
+14
-0
14 additions, 0 deletions
main/bash/bashrc
with
23 additions
and
2 deletions
main/bash/APKBUILD
+
9
−
2
View file @
c7688414
...
...
@@ -6,7 +6,7 @@ pkgver=5.1.16
_patchlevel
=
${
pkgver
##*.
}
_myver
=
${
pkgver
%.*
}
_patchbase
=
${
_myver
/./
}
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"The GNU Bourne Again shell"
url
=
"https://www.gnu.org/software/bash/bash.html"
arch
=
"all"
...
...
@@ -16,6 +16,7 @@ makedepends_host="readline-dev>8 ncurses-dev"
install
=
"
$pkgname
.post-install
$pkgname
.post-upgrade
$pkgname
.pre-deinstall"
subpackages
=
"
$pkgname
-dbg
$pkgname
-dev
$pkgname
-doc"
source
=
"https://ftp.gnu.org/gnu/bash/bash-
$_myver
.tar.gz
bashrc
bash-noinfo.patch
"
# generate url's to patches. note: no forks allowed!
...
...
@@ -25,7 +26,7 @@ while [ $_i -le $_patchlevel ]; do
[
$_i
-ge
10
]
&&
_pad
=
"0"
[
$_i
-ge
100
]
&&
_pad
=
source
=
"
$source
https://ftp.gnu.org/gnu/bash/bash-
$_myver
-patches/bash
$_patchbase
-
$_pad$_i
"
_i
=
$((
$
_i
+
1
))
_i
=
$((
_i
+
1
))
done
# secfixes:
...
...
@@ -34,6 +35,8 @@ done
builddir
=
"
$srcdir
/
$pkgname
-
$_myver
"
export
CFLAGS
=
"
$CFLAGS
-DSYS_BASHRC='
\"
/etc/bash/bashrc
\"
'"
prepare
()
{
# NOTE: This section is for applying the vendor patches, which are required to fix
# security holes. `default_prepare` does *not* apply vendor patches in the format
...
...
@@ -78,6 +81,9 @@ check() {
}
package
()
{
mkdir
-p
"
$pkgdir
"
/etc/bash
mv
"
$srcdir
"
/bashrc
"
$pkgdir
"
/etc/bash/bashrc
make
DESTDIR
=
"
$pkgdir
"
install
rm
-rf
"
$pkgdir
"
/usr/share/locale
...
...
@@ -92,6 +98,7 @@ dev() {
sha512sums
=
"
c44a0ce381469219548a3a27589af3fea4f22eda1ca4e9434b59fc16da81b471c29ce18e31590e0860a6a251a664b68c2b45e3a17d22cfc02799ffd9a208390c bash-5.1.tar.gz
4542e19f2c6c31fff1f412379d5e36c65767cf2d91f1311e8d43f2566e2e50ab8dddff6045aec9b0272ed7387aa9b35daf6b0844478c0bda94d961efcf6f3ae3 bashrc
9d8845491d0fe335bdd8e9a2bd98bda54bfed2ae3c35b2196c6d5a38bdf96c4d97572ba7d6b19ab605ef4e8f001f64cf3312f87dedebb9e37a95ad2c44e33cdb bash-noinfo.patch
1cd86805a2639614372aec29a710bc456e330abcbbaa0867820c94f714a1fa5fb5c1b18aa2c10263ae0bce9dad7579c7af2f732282315c1c34bfd6a90777bfd2 bash51-001
923e7822a9629645347d3aea0058fb5e2d52223507159a62369309f264612df44a84931c19e0ccb3852e98ce672dfbd454477090b4041b5a0de477c94eb61088 bash51-002
...
...
This diff is collapsed.
Click to expand it.
main/bash/bashrc
0 → 100644
+
14
−
0
View file @
c7688414
# Do not edit this file.
# Place your readable configs in /etc/profile.d/*.sh
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
if [ -d /etc/profile.d/ ]; then
for f in /etc/profile.d/*.sh; do
[ -r "$f" ] && . "$f"
done
unset f
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