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
2cceb278
Commit
2cceb278
authored
Jul 04, 2017
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mandb to get apropos working
parent
a12b300c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
packages/mandb.rb
packages/mandb.rb
+22
-4
No files found.
packages/mandb.rb
View file @
2cceb278
...
...
@@ -24,12 +24,30 @@ class Mandb < Package
end
def
self
.
install
system
"mkdir -p
#{
CREW_DEST_DIR
}
/usr/local/cache/man"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' include/manconfig.h.in"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/manp.c"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/tests/mandb-7"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/man_db.conf.in"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' init/systemd/man-db.conf"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' manual/db.me"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' manual/files.me"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/whatis.man1"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/apropos.man1"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/man.man1"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man8/accessdb.man8"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man8/mandb.man8"
system
"sed -i 's,/usr/share/man,/usr/local/share/man,g' tools/chconfig"
system
"sed -i 's,/var/cache/man,/usr/local/cache/man,g' tools/chconfig"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
puts
""
puts
"You will have to change the default PAGER environment variable to be able to use mandb:"
puts
"echo
\"
export PAGER=/usr/local/bin/less
\"
>> ~/.bashrc && . ~/.bashrc"
puts
"You will have to change the default PAGER environment variable to be able to use mandb:"
.
lightblue
puts
"echo
\"
export PAGER=/usr/local/bin/less
\"
>> ~/.bashrc && . ~/.bashrc"
.
lightblue
puts
""
puts
"You will also have to set the MANPATH environment variable:"
.
lightblue
puts
"echo
\"
export MANPATH=/usr/local/man:$MANPATH
\"
>> ~/.bashrc && . ~/.bashrc"
.
lightblue
puts
""
puts
"To create the man databases and get apropos working, type 'mandb -c'."
.
lightblue
puts
""
puts
"You will also have to set the MANPATH environment variable:"
puts
"echo
\"
export MANPATH=/usr/local/man:$MANPATH
\"
>> ~/.bashrc && . ~/.bashrc"
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