mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add byobu.
* gnu/packages/screen.scm (byobu): New variable. * gnu/packages/patches/byobu-writable-status.patch: New patch. * gnu-system.am (dist_patch_DATA): Add it.
This commit is contained in:
parent
e5930e5a13
commit
b95bcb8ae0
3 changed files with 67 additions and 0 deletions
13
gnu/packages/patches/byobu-writable-status.patch
Normal file
13
gnu/packages/patches/byobu-writable-status.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Skeleton status files are installed read-only. When copying to the config dir
|
||||
upon initialization, make sure they end up writable.
|
||||
|
||||
--- byobu-5.98/usr/bin/byobu-janitor.in
|
||||
+++ byobu-5.98/usr/bin/byobu-janitor.in
|
||||
@@ -82,6 +82,7 @@
|
||||
if [ ! -r "$BYOBU_CONFIG_DIR/$f" ]; then
|
||||
# Copy from skeleton, if possible
|
||||
cp -f "$BYOBU_PREFIX/share/$PKG/status/$f" "$BYOBU_CONFIG_DIR/$f"
|
||||
+ chmod +w "$BYOBU_CONFIG_DIR/$f"
|
||||
# Enable ec2_cost, if we're in ec2 and seeding a new setup
|
||||
if metadata_available; then
|
||||
$BYOBU_SED_INLINE -e "s/#ec2_cost/ec2_cost/g" "$($BYOBU_READLINK -f $BYOBU_CONFIG_DIR/$f)"
|
Loading…
Add table
Add a link
Reference in a new issue