📄 readme
字号:
ttylinux source and build script(C) 2005 Pascal Schmidt <ttylinux@ewetel.net>INTRODUCTION============This package contains the source code and build script used tobuild the ttylinux GNU/Linux distribution. You can use it tobuild your own binary ttylinux package.LICENSES========The makedist.sh script, the contents of the docs directory, andthe basesystem package are all licensed under the GNU GeneralPublic License (GPL), a copy of which you can find in the filedocs/COPYING.The other packages are licensed under a number of differentlicenses. A quick overview can be found in the filedocs/user_guide.html, in the "License" section. For moredetails, please look inside the source packages.REQUIREMENTS============To build ttylinux, you need the build system (which containsthis README file, so you already have it) and the individualsource packages that need to be stored in the packages/src/directory.The basesystem package which contains the basic directorystructure and configuration files for ttylinux is includedwith the build script package. The others can be downloadedseperately from the ttylinux homepage. http://www.minimalinux.org/ttylinux/Since the build process needs to be able to create device nodesand mount loopback filesystem images, you need to be logged inas root when running the build. To start the build, go to thedirectory with makedist.sh in it and run: ./makedist.shWhen the build completes without errors, the last messageon the screen will be "BUILD COMPLETED". This will leave you witha couple of files: "filesys", which is a 4M ext2 filesystem imagewith ttylinux installed on it, and "ttylinux-<version>.tar.gz",a binary distribution tarball as can be downloaded from thettylinux website. The directory packages/bin/ will contain binarypackages created from all the source packages. These can be usedto later reinstall packages on a ttylinux system where packageswere removed by use of the "pacman -e" command.You will need about 400 MB of free disk space to completethe build. This is because the build process builds a fullglibc.On a 3.2 GHz Pentium 4 with 2 GB of RAM, the build takes about18 minutes.REQUIREMENTS -- SOFTWARE========================The build script is meant to run under Slackware 10.0. It mayor may not work under other distributions. On Slackware, youneed the following packages to be installed (at least). Theversions given here are the versions with which the scriptwas tested. Basic system packages are not listed. bin86 0.16.15 binutils 2.15.90.0.3 bison 1.35 flex 2.5.4a gawk 3.1.3 gcc 3.3.4 gettext-tools 0.14.1 gzip 1.3.3 make 3.80 nasm 0.98.38 perl 5.8.4 sed 4.0.9 tar 1.14 texinfo 4.7If you have the above packages with roughly the same versionsinstalled on a distribution different from Slackware, the buildscript should work for you. YMMV.What version of glibc is installed on your system should notmatter, unless it is a newer version than glibc-2.3.6.PACKAGES========Source packages are stored in the packages/src/ directory. Eachpackage is a bzip2 compressed tar archive. Each archive containstwo directories -- one is the source code for the package andthe other is called "control" and contains additional filesneeded to build a package. When a package is being build, thearchive file is unpacked into the build/ directory. The buildsystem then changes into that directory and includes the file"control/build". This file must be a bash script defining theshell functions "name()" and "build()". The "name" functionmust just echo the package name when called, while the "build"function is expected to compile the package and install theresulting binary files under the directory $DISTDIR.There must be a file called "control/files" that lists allthe files that the "build()" shell function will installinto $DISTDIR. The file listing is used to create the binaryversion of the package and must use relative pathnames.The "control" directory may also contain files named like"patch-*" which contain source patches that need to be appliedbefore calling the "build()" shell function. The build systemwill apply those automatically, by using a "patch -p0" command.You can store an executable (most likely you want this to bea shell script) in the file "control/install" that will becopied into the binary package and run whenever the packageis installed on a ttylinux system.Any other files inside the "control" directory are ignoredby the build system, but can be used from within the "build()"shell function defined by the package.Take a look at the existing packages that are part of ttylinuxfor examples of how a "control/build" shell script should looklike. The following shell variables are available to the script: TTYVERSION version of ttylinux being built TOPDIR directory that contains "makedist.sh" DISTDIR directory root for binary distribution CFLAGS flags for C compiler INSTALL default install command and flags PACKAGES space-delimited list of packages to buildIf you want to add your own package to the build or remove astandard package, all you need to do is change the PACKAGESvariable in the top section of the "makedist.sh" script.BUG REPORTS===========Should the build script not work on a Slackware 10.0 system,a bug report to Pascal Schmidt <ttylinux@ewetel.net> is appreciated. It should include a log of the failed build.A report is also welcome if you spot an error in the aboveinstructions or required software list.If the build script fails on a non-Slackware system, thensorry, but I cannot support such use (for now).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -