Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
#!/bin/sh
|
2011-07-05 05:16:19 -04:00
|
|
|
# $OpenBSD: chrome,v 1.7 2011/07/05 09:16:19 halex Exp $
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
|
|
|
|
PROGDIR=TRUEPREFIX/chrome
|
2011-02-08 16:10:28 -05:00
|
|
|
FDS=400
|
2011-02-08 04:43:02 -05:00
|
|
|
|
2011-07-05 05:16:19 -04:00
|
|
|
[ `ulimit -Sn` -lt ${FDS} ] && ulimit -n ${FDS} 2>&-
|
2011-02-08 04:43:02 -05:00
|
|
|
if [ `ulimit -Sn` -lt ${FDS} ]; then
|
2011-02-08 16:10:28 -05:00
|
|
|
LMSG="${LMSG}- increase openfiles-max to at least ${FDS}.\n"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -z "${LMSG}" ]; then
|
|
|
|
[ -f /etc/login.conf.db ] && LOGINDB=" and rebuild login.conf.db"
|
|
|
|
MSG="${MSG}\nYou should make the following changes for your login class in /etc/login.conf${LOGINDB}\n"
|
|
|
|
MSG="${MSG}(you will need to logout and login for these to take effect).\n${LMSG}"
|
2011-02-08 04:43:02 -05:00
|
|
|
fi
|
|
|
|
|
2011-07-05 05:16:19 -04:00
|
|
|
if ! pgrep -f "^${PROGDIR}/chrome($| )" >&- && [ -n "${MSG}" ]; then
|
2011-02-08 16:10:28 -05:00
|
|
|
MSG="${MSG}\nDo you want to run Chromium anyway?"
|
|
|
|
MSG="${MSG}\n(If you don't increase these limits, Chromium might fail to work properly.)"
|
2011-02-08 04:43:02 -05:00
|
|
|
|
2011-07-05 05:16:19 -04:00
|
|
|
echo "${MSG}" | /usr/X11R6/bin/xmessage -file - -center -buttons yes:0,no:1 -default no || exit
|
2011-02-08 04:43:02 -05:00
|
|
|
fi
|
|
|
|
|
Initial import of Chromium for OpenBSD, a multi-month effort! :)
i386 and amd64 supported.
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web. http://www.chromium.org/
This is version 4.0.251.0 with a tarball already including hundreds
of patches by myself, Sprewell, Ben Laurie and others from the original
FreeBSD effort. See homepage for more details and known issue:
http://sightly.net/peter/openbsd/chromium/
(right now, there are i386 & amd64 -current packages there that can
be pkg_add'ed, links to the FreeBSD page for more info, etc)
The patches are being cleaned up and sent upstream in chunks, the
goal will be to have a clean tarball eventually. I _just_ got this
working earlier this week so it may crash and burn (especially on
amd64 as some parts do not appear 64-bit clean), let me know.
"commit it and let's work on it in-tree" espie@, robert@ & others
2009-12-18 17:25:56 -05:00
|
|
|
exec "${PROGDIR}/chrome" "$@"
|