This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

669 lines
21 KiB

1 year ago
1 year ago
1 year ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #TARBALL:
  2. #MD5SUM:
  3. #-----------------------------------------------------------------------------
  4. Summary: Default file system
  5. Name: filesystem
  6. Version: 9.1
  7. Release: 1
  8. License: None
  9. Group: LFS/Base
  10. URL: http://www.linuxfromscratch.org
  11. %description
  12. The filesystem package is one of the basic packages that is installed
  13. on a Linux system. Filesystem contains the basic directory
  14. layout for a Linux operating system, including the correct permissions
  15. for the directories.
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. %build
  19. %install
  20. #-----------------------------------------------------------------------------
  21. # 6.5. Creating Directories
  22. #-----------------------------------------------------------------------------
  23. # root directories
  24. install -vdm 755 %{buildroot}/{bin,boot,dev,etc,home,lib,lib64,media,mnt,opt,proc,root,run,sbin,srv,sys,tmp,usr,var}
  25. # etc directories
  26. install -vdm 755 %{buildroot}/etc/{ld.so.conf.d,opt,profile.d,skel,sysconfig}
  27. # init script directories - this is for chkconfig
  28. install -vdm 755 %{buildroot}/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d,rc7.d}
  29. ln -vs rc7.d %{buildroot}/etc/rc.d/rcS.d
  30. # lib directories
  31. install -vdm 755 %{buildroot}/lib/firmware
  32. # media directories
  33. install -vdm 755 %{buildroot}/media/{floppy,cdrom}
  34. # usr directories
  35. install -vdm 755 %{buildroot}/usr/{,local/}{bin,include,lib,sbin,src}
  36. install -vdm 755 %{buildroot}/usr/{,local/}share/{color,dict,doc,info,locale,man}
  37. install -vdm 755 %{buildroot}/usr/{,local/}share/{misc,terminfo,zoneinfo}
  38. install -vdm 755 %{buildroot}/usr/libexec
  39. install -vdm 755 %{buildroot}/usr/{,local/}share/man/man{1..8}
  40. # var directories
  41. install -vdm 755 %{buildroot}/var/{log,mail,spool,tmp}
  42. install -vdm 755 %{buildroot}/var/{opt,cache,lib/{color,misc,locate,hwclock},local}
  43. # symlinks
  44. ln -sv /run %{buildroot}/var/run
  45. ln -sv /run/lock %{buildroot}/var/lock
  46. ln -sv /proc/self/mounts %{buildroot}/etc/mtab
  47. touch %{buildroot}/var/log/{btmp,lastlog,faillog,wtmp}
  48. chgrp -v 13 %{buildroot}/var/log/lastlog
  49. chmod -v 664 %{buildroot}/var/log/lastlog
  50. chmod -v 600 %{buildroot}/var/log/btmp
  51. #-----------------------------------------------------------------------------
  52. # 6.2. Preparing Virtual Kernel File Systems
  53. #-----------------------------------------------------------------------------
  54. mknod -m 600 %{buildroot}/dev/console c 5 1
  55. mknod -m 666 %{buildroot}/dev/null c 1 3
  56. #-----------------------------------------------------------------------------
  57. # 6.6. Creating Essential Files and Symlinks
  58. #-----------------------------------------------------------------------------
  59. cat > %{buildroot}/etc/passwd <<- EOF
  60. root:x:0:0:root:/root:/bin/bash
  61. bin:x:1:1:bin:/dev/null:/bin/false
  62. daemon:x:6:6:Daemon User:/dev/null:/bin/false
  63. messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false
  64. nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
  65. EOF
  66. cat > %{buildroot}/etc/group <<- EOF
  67. root:x:0:
  68. bin:x:1:daemon
  69. sys:x:2:
  70. kmem:x:3:
  71. tape:x:4:
  72. tty:x:5:
  73. daemon:x:6:
  74. floppy:x:7:
  75. disk:x:8:
  76. lp:x:9:
  77. dialout:x:10:
  78. audio:x:11:
  79. video:x:12:
  80. utmp:x:13:
  81. usb:x:14:
  82. cdrom:x:15:
  83. adm:x:16:
  84. messagebus:x:18:
  85. input:x:24:
  86. mail:x:34:
  87. kvm:x:61:
  88. wheel:x:97:
  89. nogroup:x:99:
  90. users:x:999:
  91. EOF
  92. #-----------------------------------------------------------------------------
  93. # 7.5.1. Creating Network Interface Configuration Files
  94. #-----------------------------------------------------------------------------
  95. cat > %{buildroot}/etc/sysconfig/ifconfig.eth0 <<- "EOF"
  96. ONBOOT=yes
  97. IFACE=enp7s0
  98. SERVICE=ipv4-static
  99. IP=192.168.1.2
  100. GATEWAY=192.168.1.1
  101. PREFIX=24
  102. BROADCAST=192.168.1.255
  103. EOF
  104. #-----------------------------------------------------------------------------
  105. # 7.5.2. Creating the /etc/resolv.conf File
  106. #-----------------------------------------------------------------------------
  107. cat > %{buildroot}/etc/resolv.conf <<- "EOF"
  108. # Begin /etc/resolv.conf
  109. domain example.org
  110. nameserver <IP address of your primary nameserver>
  111. nameserver <IP address of your secondary nameserver>
  112. # End /etc/resolv.conf
  113. EOF
  114. #-----------------------------------------------------------------------------
  115. # 7.5.3. Configuring the system hostname
  116. #-----------------------------------------------------------------------------
  117. echo "lfs.example.org" > %{buildroot}/etc/hostname
  118. #-----------------------------------------------------------------------------
  119. # 7.5.4. Customizing the /etc/hosts File
  120. #-----------------------------------------------------------------------------
  121. cat > %{buildroot}/etc/hosts <<- "EOF"
  122. # Begin /etc/hosts
  123. 127.0.0.1 localhost
  124. 192.168.1.2 lfs.example.org lfs
  125. ::1 localhost ip6-localhost ip6-loopback
  126. ff02::1 ip6-allnodes
  127. ff02::2 ip6-allrouters
  128. # End /etc/hosts
  129. EOF
  130. #-----------------------------------------------------------------------------
  131. # 7.6.2. Configuring Sysvinit
  132. #-----------------------------------------------------------------------------
  133. cat > %{buildroot}/etc/inittab <<- "EOF"
  134. # Begin /etc/inittab
  135. id:3:initdefault:
  136. si::sysinit:/etc/rc.d/init.d/rc S
  137. l0:0:wait:/etc/rc.d/init.d/rc 0
  138. l1:S1:wait:/etc/rc.d/init.d/rc 1
  139. l2:2:wait:/etc/rc.d/init.d/rc 2
  140. l3:3:wait:/etc/rc.d/init.d/rc 3
  141. l4:4:wait:/etc/rc.d/init.d/rc 4
  142. l5:5:wait:/etc/rc.d/init.d/rc 5
  143. l6:6:wait:/etc/rc.d/init.d/rc 6
  144. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
  145. su:S016:once:/sbin/sulogin
  146. 1:2345:respawn:/sbin/agetty --noclear tty1 9600
  147. 2:2345:respawn:/sbin/agetty tty2 9600
  148. 3:2345:respawn:/sbin/agetty tty3 9600
  149. 4:2345:respawn:/sbin/agetty tty4 9600
  150. 5:2345:respawn:/sbin/agetty tty5 9600
  151. 6:2345:respawn:/sbin/agetty tty6 9600
  152. # End /etc/inittab
  153. EOF
  154. #-----------------------------------------------------------------------------
  155. # 7.6.4. Configuring the System Clock
  156. #-----------------------------------------------------------------------------
  157. cat > %{buildroot}/etc/sysconfig/clock <<- "EOF"
  158. # Begin /etc/sysconfig/clock
  159. # Change the value of the UTC variable below to a value of
  160. # 0 (zero) if the hardware clock is not set to UTC time.
  161. UTC=1
  162. # Set this to any options you might need to give to hwclock,
  163. # such as machine hardware clock type for Alphas.
  164. CLOCKPARAMS=
  165. # End /etc/sysconfig/clock
  166. EOF
  167. #-----------------------------------------------------------------------------
  168. # 7.8. Creating the /etc/inputrc File
  169. #-----------------------------------------------------------------------------
  170. cat > %{buildroot}/etc/inputrc <<- "EOF"
  171. # Begin /etc/inputrc
  172. # Modified by Chris Lynn <roryo@roryo.dynup.net>
  173. # Allow the command prompt to wrap to the next line
  174. set horizontal-scroll-mode Off
  175. # Enable 8bit input
  176. set meta-flag On
  177. set input-meta On
  178. # Turns off 8th bit stripping
  179. set convert-meta Off
  180. # Keep the 8th bit for display
  181. set output-meta On
  182. # none, visible or audible
  183. set bell-style none
  184. # All of the following map the escape sequence of the value
  185. # contained in the 1st argument to the readline specific functions
  186. "\eOd": backward-word
  187. "\eOc": forward-word
  188. # for linux console
  189. "\e[1~": beginning-of-line
  190. "\e[4~": end-of-line
  191. "\e[5~": beginning-of-history
  192. "\e[6~": end-of-history
  193. "\e[3~": delete-char
  194. "\e[2~": quoted-insert
  195. # for xterm
  196. "\eOH": beginning-of-line
  197. "\eOF": end-of-line
  198. # for Konsole
  199. "\e[H": beginning-of-line
  200. "\e[F": end-of-line
  201. # End /etc/inputrc
  202. EOF
  203. #-----------------------------------------------------------------------------
  204. # 7.9. Creating the /etc/shells File
  205. #-----------------------------------------------------------------------------
  206. cat > %{buildroot}/etc/shells <<- "EOF"
  207. # Begin /etc/shells
  208. /bin/sh
  209. /bin/bash
  210. # End /etc/shells
  211. EOF
  212. #-----------------------------------------------------------------------------
  213. # 8.2. Creating the /etc/fstab File
  214. #-----------------------------------------------------------------------------
  215. cat > %{buildroot}/etc/fstab <<- "EOF"
  216. # Begin /etc/fstab
  217. # hdparm -I /dev/sda | grep NCQ --> can use barrier
  218. # file system mount-point type options dump fsck
  219. # order
  220. #/dev/sdxx / ext4 defaults,barrier,noatime,noacl,data=ordered 1 1
  221. #/dev/sdxx / ext4 defaults 1 1
  222. #/dev/sdxx /boot ext4 defaults 1 2
  223. /dev/<xxx> / ext4 defaults 1 1
  224. /dev/<yyy> swap swap pri=1 0 0
  225. proc /proc proc nosuid,noexec,nodev 0 0
  226. sysfs /sys sysfs nosuid,noexec,nodev 0 0
  227. devpts /dev/pts devpts gid=5,mode=620 0 0
  228. tmpfs /run tmpfs defaults 0 0
  229. devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
  230. #tmpfs /tmp tmpfs defaults 0 0
  231. # End /etc/fstab
  232. EOF
  233. #-----------------------------------------------------------------------------
  234. # 8.3.2. Configuring Linux Module Load Order
  235. #-----------------------------------------------------------------------------
  236. install -v -m755 -d %{buildroot}/etc/modprobe.d
  237. cat > %{buildroot}/etc/modprobe.d/usb.conf <<- "EOF"
  238. # Begin /etc/modprobe.d/usb.conf
  239. install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
  240. install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true
  241. # End /etc/modprobe.d/usb.conf
  242. EOF
  243. #-----------------------------------------------------------------------------
  244. # 9.1. The End
  245. #-----------------------------------------------------------------------------
  246. echo %{version} > %{buildroot}/etc/lfs-release
  247. cat > %{buildroot}/etc/lsb-release <<- "EOF"
  248. DISTRIB_ID="Linux From Scratch"
  249. DISTRIB_RELEASE=%{version}
  250. DISTRIB_CODENAME="Isabella"
  251. DISTRIB_DESCRIPTION="Linux From Scratch"
  252. EOF
  253. #-----------------------------------------------------------------------------
  254. # BLFS scripts - About System Users and Groups
  255. #-----------------------------------------------------------------------------
  256. cat > %{buildroot}/etc/profile <<- "EOF"
  257. # Begin /etc/profile
  258. # Written for Beyond Linux From Scratch
  259. # by James Robertson <jameswrobertson@earthlink.net>
  260. # modifications by Dagmar d'Surreal <rivyqntzne@pbzpnfg.arg>
  261. # System wide environment variables and startup programs.
  262. # System wide aliases and functions should go in /etc/bashrc. Personal
  263. # environment variables and startup programs should go into
  264. # ~/.bash_profile. Personal aliases and functions should go into
  265. # ~/.bashrc.
  266. # Functions to help us manage paths. Second argument is the name of the
  267. # path variable to be modified (default: PATH)
  268. pathremove () {
  269. local IFS=':'
  270. local NEWPATH
  271. local DIR
  272. local PATHVARIABLE=${2:-PATH}
  273. for DIR in ${!PATHVARIABLE} ; do
  274. if [ "$DIR" != "$1" ] ; then
  275. NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
  276. fi
  277. done
  278. export $PATHVARIABLE="$NEWPATH"
  279. }
  280. pathprepend () {
  281. pathremove $1 $2
  282. local PATHVARIABLE=${2:-PATH}
  283. export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
  284. }
  285. pathappend () {
  286. pathremove $1 $2
  287. local PATHVARIABLE=${2:-PATH}
  288. export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
  289. }
  290. export -f pathremove pathprepend pathappend
  291. # Set the initial path
  292. export PATH=/bin:/usr/bin
  293. if [ $EUID -eq 0 ] ; then
  294. pathappend /sbin:/usr/sbin
  295. unset HISTFILE
  296. fi
  297. # Setup some environment variables.
  298. export HISTSIZE=1000
  299. export HISTIGNORE="&:[bf]g:exit"
  300. # Set some defaults for graphical systems
  301. export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/share/}
  302. export XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS:-/etc/xdg/}
  303. export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/xdg-$USER}
  304. # Setup a red prompt for root and a green one for users.
  305. NORMAL="\[\e[0m\]"
  306. RED="\[\e[1;31m\]"
  307. GREEN="\[\e[1;32m\]"
  308. if [[ $EUID == 0 ]] ; then
  309. PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
  310. else
  311. PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
  312. fi
  313. for script in /etc/profile.d/*.sh ; do
  314. if [ -r $script ] ; then
  315. . $script
  316. fi
  317. done
  318. unset script RED GREEN NORMAL
  319. # End /etc/profile
  320. EOF
  321. cat > %{buildroot}/etc/profile.d/bash_completion.sh <<- "EOF"
  322. # Begin /etc/profile.d/bash_completion.sh
  323. # Import bash completion scripts
  324. for script in /etc/bash_completion.d/*.sh ; do
  325. if [ -r $script ] ; then
  326. . $script
  327. fi
  328. done
  329. # End /etc/profile.d/bash_completion.sh
  330. EOF
  331. cat > %{buildroot}/etc/profile.d/dircolors.sh <<- "EOF"
  332. # Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
  333. if [ -f "/etc/dircolors" ] ; then
  334. eval $(dircolors -b /etc/dircolors)
  335. fi
  336. if [ -f "$HOME/.dircolors" ] ; then
  337. eval $(dircolors -b $HOME/.dircolors)
  338. fi
  339. alias ls='ls --color=auto'
  340. alias grep='grep --color=auto'
  341. EOF
  342. cat > %{buildroot}/etc/profile.d/extrapaths.sh <<- "EOF"
  343. if [ -d /usr/local/lib/pkgconfig ] ; then
  344. pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
  345. fi
  346. if [ -d /usr/local/bin ]; then
  347. pathprepend /usr/local/bin
  348. fi
  349. if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
  350. pathprepend /usr/local/sbin
  351. fi
  352. # Set some defaults before other applications add to these paths.
  353. pathappend /usr/share/man MANPATH
  354. pathappend /usr/share/info INFOPATH
  355. EOF
  356. cat > %{buildroot}/etc/profile.d/readline.sh <<- "EOF"
  357. # Setup the INPUTRC environment variable.
  358. if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
  359. INPUTRC=/etc/inputrc
  360. fi
  361. export INPUTRC
  362. EOF
  363. cat > %{buildroot}/etc/profile.d/umask.sh <<- "EOF"
  364. # By default, the umask should be set.
  365. if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
  366. umask 002
  367. else
  368. umask 022
  369. fi
  370. EOF
  371. cat > %{buildroot}/etc/profile.d/i18n.sh <<- "EOF"
  372. # Set up i18n variables
  373. #export LANG=<ll>_<CC>.<charmap><@modifiers>
  374. EOF
  375. cat > %{buildroot}/etc/bashrc <<- "EOF"
  376. # Begin /etc/bashrc
  377. # Written for Beyond Linux From Scratch
  378. # by James Robertson <jameswrobertson@earthlink.net>
  379. # updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
  380. # System wide aliases and functions.
  381. # System wide environment variables and startup programs should go into
  382. # /etc/profile. Personal environment variables and startup programs
  383. # should go into ~/.bash_profile. Personal aliases and functions should
  384. # go into ~/.bashrc
  385. # Provides colored /bin/ls and /bin/grep commands. Used in conjunction
  386. # with code in /etc/profile.
  387. alias ls='ls --color=auto'
  388. alias grep='grep --color=auto'
  389. # Provides prompt for non-login shells, specifically shells started
  390. # in the X environment. [Review the LFS archive thread titled
  391. # PS1 Environment Variable for a great case study behind this script
  392. # addendum.]
  393. NORMAL="\[\e[0m\]"
  394. RED="\[\e[1;31m\]"
  395. GREEN="\[\e[1;32m\]"
  396. if [[ $EUID == 0 ]] ; then
  397. PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
  398. else
  399. PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
  400. fi
  401. unset RED GREEN NORMAL
  402. # End /etc/bashrc
  403. EOF
  404. cat > %{buildroot}/etc/vimrc <<- "EOF"
  405. " Begin .vimrc
  406. set columns=80
  407. set wrapmargin=8
  408. set ruler
  409. " End .vimrc
  410. EOF
  411. cat > %{buildroot}/etc/skel/.vimrc <<- "EOF"
  412. " Begin .vimrc
  413. set columns=80
  414. set wrapmargin=8
  415. set ruler
  416. " End .vimrc
  417. EOF
  418. cat > %{buildroot}/etc/skel/.bash_profile <<- "EOF"
  419. # Begin ~/.bash_profile
  420. # Written for Beyond Linux From Scratch
  421. # by James Robertson <jameswrobertson@earthlink.net>
  422. # updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
  423. # Personal environment variables and startup programs.
  424. # Personal aliases and functions should go in ~/.bashrc. System wide
  425. # environment variables and startup programs are in /etc/profile.
  426. # System wide aliases and functions are in /etc/bashrc.
  427. if [ -f "$HOME/.bashrc" ] ; then
  428. source $HOME/.bashrc
  429. fi
  430. if [ -d "$HOME/bin" ] ; then
  431. pathprepend $HOME/bin
  432. fi
  433. # Having . in the PATH is dangerous
  434. #if [ $EUID -gt 99 ]; then
  435. # pathappend .
  436. #fi
  437. # End ~/.bash_profile
  438. EOF
  439. cat > %{buildroot}/etc/skel/.profile <<- "EOF"
  440. # Begin ~/.profile
  441. # Personal environment variables and startup programs.
  442. if [ -d "$HOME/bin" ] ; then
  443. pathprepend $HOME/bin
  444. fi
  445. # Set up user specific i18n variables
  446. #export LANG=<ll>_<CC>.<charmap><@modifiers>
  447. # End ~/.profile
  448. EOF
  449. cat > %{buildroot}/etc/skel/.bashrc <<- "EOF"
  450. # Begin ~/.bashrc
  451. # Written for Beyond Linux From Scratch
  452. # by James Robertson <jameswrobertson@earthlink.net>
  453. # Personal aliases and functions.
  454. # Personal environment variables and startup programs should go in
  455. # ~/.bash_profile. System wide environment variables and startup
  456. # programs are in /etc/profile. System wide aliases and functions are
  457. # in /etc/bashrc.
  458. if [ -f "/etc/bashrc" ] ; then
  459. source /etc/bashrc
  460. fi
  461. # Set up user specific i18n variables
  462. #export LANG=<ll>_<CC>.<charmap><@modifiers>
  463. # End ~/.bashrc
  464. EOF
  465. cat > %{buildroot}/etc/skel/.bash_logout <<- "EOF"
  466. # Begin ~/.bash_logout
  467. # Written for Beyond Linux From Scratch
  468. # by James Robertson <jameswrobertson@earthlink.net>
  469. # Personal items to perform on logout.
  470. # End ~/.bash_logout
  471. EOF
  472. #----------------------------------------------------------------------------
  473. %files
  474. %defattr(-,root,root)
  475. %attr(600,root,root) /var/log/btmp
  476. %attr(664,root,utmp) /var/log/lastlog
  477. %attr(-,root,root) /var/log/wtmp
  478. %attr(750,root,root) /root
  479. %attr(1777,root,root) /tmp
  480. %attr(1777,root,root) /var/tmp
  481. # Directories
  482. %dir /home
  483. %dir /mnt
  484. %dir /boot
  485. %dir /var
  486. %dir /var/log
  487. %dir /var/mail
  488. %dir /var/local
  489. %dir /var/spool
  490. %dir /var/cache
  491. %dir /var/lib
  492. %dir /var/lib/locate
  493. %dir /var/lib/hwclock
  494. %dir /var/lib/misc
  495. %dir /var/lib/color
  496. %dir /var/opt
  497. %dir /etc
  498. # /etc init script directories
  499. %dir /etc/rc.d
  500. %dir /etc/rc.d/init.d
  501. %dir /etc/rc.d/rc0.d
  502. %dir /etc/rc.d/rc1.d
  503. %dir /etc/rc.d/rc2.d
  504. %dir /etc/rc.d/rc3.d
  505. %dir /etc/rc.d/rc4.d
  506. %dir /etc/rc.d/rc5.d
  507. %dir /etc/rc.d/rc6.d
  508. %dir /etc/rc.d/rc7.d
  509. /etc/rc.d/rcS.d
  510. %dir /etc/sysconfig
  511. %dir /etc/ld.so.conf.d
  512. %dir /etc/opt
  513. %dir /etc/profile.d
  514. %dir /lib64
  515. %dir /usr
  516. %dir /usr/src
  517. %dir /usr/local
  518. %dir /usr/local/src
  519. %dir /usr/local/bin
  520. %dir /usr/local/sbin
  521. %dir /usr/local/lib
  522. %dir /usr/local/share
  523. %dir /usr/local/share/misc
  524. %dir /usr/local/share/terminfo
  525. %dir /usr/local/share/doc
  526. %dir /usr/local/share/zoneinfo
  527. %dir /usr/local/share/man
  528. %dir /usr/local/share/man/man3
  529. %dir /usr/local/share/man/man4
  530. %dir /usr/local/share/man/man7
  531. %dir /usr/local/share/man/man1
  532. %dir /usr/local/share/man/man6
  533. %dir /usr/local/share/man/man8
  534. %dir /usr/local/share/man/man5
  535. %dir /usr/local/share/man/man2
  536. %dir /usr/local/share/locale
  537. %dir /usr/local/share/dict
  538. %dir /usr/local/share/color
  539. %dir /usr/local/share/info
  540. %dir /usr/local/include
  541. %dir /usr/bin
  542. %dir /usr/sbin
  543. %dir /usr/lib
  544. %dir /usr/libexec
  545. %dir /usr/share
  546. %dir /usr/share/misc
  547. %dir /usr/share/terminfo
  548. %dir /usr/share/doc
  549. %dir /usr/share/zoneinfo
  550. %dir /usr/share/man
  551. %dir /usr/share/man/man3
  552. %dir /usr/share/man/man4
  553. %dir /usr/share/man/man7
  554. %dir /usr/share/man/man1
  555. %dir /usr/share/man/man6
  556. %dir /usr/share/man/man8
  557. %dir /usr/share/man/man5
  558. %dir /usr/share/man/man2
  559. %dir /usr/share/locale
  560. %dir /usr/share/dict
  561. %dir /usr/share/color
  562. %dir /usr/share/info
  563. %dir /usr/include
  564. %dir /bin
  565. %dir /media
  566. %dir /media/floppy
  567. %dir /media/cdrom
  568. %dir /sbin
  569. %dir /srv
  570. %dir /lib
  571. %dir /lib/firmware
  572. %dir /dev
  573. %dir /opt
  574. %dir /sys
  575. %dir /proc
  576. %dir /run
  577. # Files
  578. %config(noreplace) /etc/group
  579. %config(noreplace) /etc/passwd
  580. %config(noreplace) /etc/fstab
  581. %config(noreplace) /etc/hostname
  582. %config(noreplace) /etc/hosts
  583. %config(noreplace) /etc/inittab
  584. %config(noreplace) /etc/inputrc
  585. %config(noreplace) /etc/lfs-release
  586. %config(noreplace) /etc/lsb-release
  587. %config(noreplace) /etc/modprobe.d/usb.conf
  588. %config(noreplace) /etc/resolv.conf
  589. %config(noreplace) /etc/shells
  590. %config(noreplace) /etc/sysconfig/clock
  591. %config(noreplace) /etc/sysconfig/ifconfig.eth0
  592. %config(noreplace) /etc/mtab
  593. %config(noreplace) /var/log/faillog
  594. %config(noreplace) /var/lock
  595. %config(noreplace) /var/run
  596. #-----------------------------------------------------------------------------
  597. # BLFS scripts - About System Users and Groups
  598. #-----------------------------------------------------------------------------
  599. %config(noreplace) /etc/bashrc
  600. %config(noreplace) /etc/profile
  601. %config(noreplace) /etc/vimrc
  602. %config(noreplace) /etc/profile.d/bash_completion.sh
  603. %config(noreplace) /etc/profile.d/dircolors.sh
  604. %config(noreplace) /etc/profile.d/extrapaths.sh
  605. %config(noreplace) /etc/profile.d/i18n.sh
  606. %config(noreplace) /etc/profile.d/readline.sh
  607. %config(noreplace) /etc/profile.d/umask.sh
  608. %config(noreplace) /etc/skel/.bash_logout
  609. %config(noreplace) /etc/skel/.bash_profile
  610. %config(noreplace) /etc/skel/.bashrc
  611. %config(noreplace) /etc/skel/.profile
  612. %config(noreplace) /etc/skel/.vimrc
  613. #-----------------------------------------------------------------------------
  614. %changelog
  615. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 9.1-1
  616. - Update to LFS-9.1
  617. * Thu Mar 14 2019 baho-utot <baho-utot@columbus.rr.com> 8.4-1
  618. * Sun Oct 28 2018 baho-utot <baho-utot@columbus.rr.com> 8.2-1
  619. * Tue Dec 12 2017 baho-utot <baho-utot@columbus.rr.com> 8.1-1
  620. - Update to LFS-8.1
  621. * Tue Jun 17 2014 baho-utot <baho-utot@columbus.rr.com> 7.5-1
  622. * Fri Apr 19 2013 baho-utot <baho-utot@columbus.rr.com> 20130401-1
  623. - Upgrade version