Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
49bf9095
Commit
49bf9095
authored
Jul 06, 2017
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lsb_release package
parent
e816556e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
packages/lsb_release.rb
packages/lsb_release.rb
+38
-0
No files found.
packages/lsb_release.rb
0 → 100644
View file @
49bf9095
require
'package'
class
Lsb_release
<
Package
description
'Linux Standard Base'
homepage
'https://wiki.linuxfoundation.org/lsb/start'
version
'1.4'
source_url
'https://downloads.sourceforge.net/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz'
source_sha256
'99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172'
depends_on
'help2man'
def
self
.
build
system
"cp /etc/lsb-release /tmp"
system
'STR=$(grep ^CHROMEOS_RELEASE_NAME= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR,\'&\'," /tmp/lsb-release'
system
'STR=$(grep ^CHROMEOS_RELEASE_BUILD_TYPE= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR$,\'&\'," /tmp/lsb-release'
system
'STR=$(grep ^CHROMEOS_RELEASE_DESCRIPTION= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR,\'&\'," /tmp/lsb-release'
system
"sed -i 's,INFO_ROOT=
\"
/etc
\"
,INFO_ROOT=
\"
/usr/local/etc
\"
,' lsb_release"
system
"sed -i 's,LSB_VERSION=
\$
MSG_NA,LSB_VERSION=1.4,' lsb_release"
system
"sed -i 's,DISTRIB_ID,CHROMEOS_RELEASE_NAME,g' lsb_release"
system
"sed -i 's,DISTRIB_DESCRIPTION,CHROMEOS_RELEASE_DESCRIPTION,g' lsb_release"
system
"sed -i 's,DISTRIB_RELEASE,CHROMEOS_RELEASE_VERSION,g' lsb_release"
system
"sed -i 's,DISTRIB_CODENAME,CHROMEOS_RELEASE_BOARD,g' lsb_release"
system
"sed -i 's,echo -e,echo,g' lsb_release"
system
"sed -i 's,--include,-i,' Makefile"
system
"sed -i 's,./help2man,help2man,' Makefile"
system
"sed -i 's,--alt_version_key=program_version ,,' Makefile"
system
'make'
end
def
self
.
install
system
"mkdir -p
#{
CREW_DEST_DIR
}
/usr/local/bin"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/usr/local/etc"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/usr/local/man/man1"
system
"cp lsb_release
#{
CREW_DEST_DIR
}
/usr/local/bin"
system
"cp /tmp/lsb-release
#{
CREW_DEST_DIR
}
/usr/local/etc"
system
"cp lsb_release.1.gz
#{
CREW_DEST_DIR
}
/usr/local/man/man1"
end
end
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