Commit graph

8 commits

Author SHA1 Message Date
Boris Samorodov
d1fa573aad Welcome to the new emulation/linux_base-fc7 port.
Using: identical to emulation/linux_base-fc6.
2007-09-23 16:33:56 +00:00
Boris Samorodov
0b35a736d9 . de-rpmify the port (merged from linux_base-fc4);
. fix checksums for libtermcap sources (I had a broken tarball).
2007-09-17 16:26:37 +00:00
Boris Samorodov
34cba55d3c *** ATTENTION *** DANGER *** EXPERIMENTAL PORT *** YOU HAVE BEEN WARNED ***
1. Add a check if linuxulator is (kld)loaded. IGNORE otherwise.

Before this commit the port compared compat.linux.osrelease with 2.4.2
and was IGNOREd if those values are equal. In case linuxulator
is *not* loaded, the port proceeded to install, to load linuxulator and
to use... compat.linux.osrelease=2.4.2!

The port as is doesn't proceed (without linuxulator loaded or
if compat.linux.osrelease is equal to 2.4.2) even for "make fetch".
Imho that's OK, because it won't let automated tasks to load
unneccessary distros, while a human administrator should know
what to do by hand. ;-)

BTW, I'm not sure but may be it'a be a good idea to use IGNORE
if (FreeBSD) OSVERSION < (say) 700037...

2. Apply the same tests for packages.

3. Bump PORTREVISION.

Enjoy. ;-)
2007-04-11 11:42:34 +00:00
Boris Samorodov
ff30f4ff7a ATTENTION! The port is experimental for now. Use it at your own risk. This
port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16.

To use/test the port (along with linux FC4 infrastructure ports) you
should do:

0. Backup all your vital information!
1. Remove the current linux base port.
2. Add to your /etc/make.conf "OVERRIDE_LINUX_BASE_PORT=fc6".
3. Make sure no linux application is running.
4. Set apropriate sysctl (compat.linux.osrelease=2.6.16).
5. Install emulation/linux_base-fc6.
5a. Those who use linux ports with automatic plist building should
    apply the following patch:
    ftp://mail.ipt.ru/pub/FreeBSD/patches/bsd.linux-rpm.mk-autoplist.diff

That should be enough at most circumstances. If you have difficulties,
please be sure to expand item 1 to:

1a. Remove all ports which depends on linux base port.
1b. Remove linux base port.
1c. Clean /compat/linux/ directory.

In case you want to get rid of the port, deinstall it, then return
back compat.linux.osrelease to 2.4.2 (as usual make sure that no
linux application is running) and remove from /etc/make.conf the line
containing the OVERRIDE_LINUX_BASE_PORT variable.

All questions, reports, suggestions etc. please route to
freebsd-emulation@.

Fedora Core 6 ports (FC6 infrastructure ports) are coming soon... ;-)

This port would not appear without netchild's help.
Thank you, Alexander!
2007-03-27 20:04:44 +00:00
Jose Alonso Cardenas Marquez
181e760a0e - Integrate linux-krb5-libs and linux-e2fsprogs to linux_base-fc4
Reviewed by:	bsam
Approved by:	netchild, garga (mentor)
2006-08-12 07:00:35 +00:00
Boris Samorodov
7ecfed784d Prepare for linux infrostructure ports transition from FC3 to FC4:
o  move dealing with linux locale files (creating empty ones) for
   other linux ports to linux_base-fc4;
o  remove all empty directories creation from pkg-plist to pkg-install
   (which is executed when installing from ports tree and thus not only
   installing from a package will create empty directories);
o  substitute all @dirrmtry by @dirrm -- from package building point
   of view this package (linux_base) should be removed after all other
   linux ports. (approved in principle by mentor)

Approved by:	netchild (mentor, implicit)
2006-07-09 20:50:07 +00:00
Alexander Leidinger
9657b6671f - add conflict with linux-libgcc
- update bash, glibc, libgcc, libselinux, pcre, slang, termcap and zlib
- add SRPM of libgcc (gcc SRPM itself)
- parametize the glibc version number in the plist
- reword some parts in pkg-*install
2006-05-07 12:11:48 +00:00
Alexander Leidinger
affb190b16 The port is intended to become the new default linux_base port (replaces
the current linux_base-8 port).

You should only switch to this port if you know what you are doing.
You may or may not have problems with installing other linux related
ports after switching to it. Success or failure reports welcome.

To switch:
 - echo "OVERRIDE_LINUX_BASE_PORT=fc3" >> /etc/make.conf
 - portupgrade -fo emulators/linux_base-fc3 linux_base-8

News and changes (from submitter with some small changes by me):
 - based on linux_base-8 port;
 - don't use linux rpm binary to install. The whole source tree is
   created at ${WRKDIR} and then installed (using cpio);
 - removes some files and directories (etc/passwd, etc/group,
   usr/local, ...) to ensure using FreeBSD original files;
 - introduces etc/nsswitch.conf.dist and etc/yp.conf.sample files,
   uses correct install/deinstall behaviour with etc/nsswitch.conf
   and etc/yp.conf files;
 - doesn't do [u]mounting while install/deinstall process.
   Thus it is possible to use jails while building packages.
   But since linprocfs is not automounted, special measures should be
   taken at package building for those ports which need a mounted
   linprocfs (i.e. for linux JDK building);
 - uses linux ldconfig in the pkg-install file (as opposed to using in
   the Makefile). It is needed when upgrading (i.e. when other linux
   libraries are present in the system) and when installing by packages.

Submitted by:	Boris Samorodov <bsam@ipt.ru> (some small changes by me)
2006-03-18 19:07:04 +00:00