Initialize for filesystem

This commit is contained in:
zyppe 2024-02-07 23:04:17 +08:00
commit 5c3016808b
9 changed files with 1422 additions and 0 deletions

17
LICENSE.txt Normal file
View file

@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

155
directory.list Normal file
View file

@ -0,0 +1,155 @@
0755 root root /bin
0755 root root /boot
0755 root root /dev
0755 root root /etc
0755 root root /etc/X11
0755 root root /etc/aliases.d
0755 root root /etc/cron.d
0755 root root /etc/cron.hourly
0755 root root /etc/cron.daily
0755 root root /etc/cron.weekly
0755 root root /etc/cron.monthly
0755 root root /etc/default
0755 root root /etc/init.d
0755 root root /etc/java
0755 root root /etc/ld.so.conf.d
0755 root root /etc/logrotate.d
0755 root root /etc/modprobe.d
0755 root root /etc/profile.d
0755 root root /etc/permissions.d
0755 root root /etc/skel
0755 root root /etc/skel/bin
0755 root root /etc/skel/.fonts
0700 root root /etc/skel/.cache
0700 root root /etc/skel/.config
0700 root root /etc/skel/.local
0755 root root /etc/sysconfig
0755 root root /etc/sysconfig/SuSEfirewall2.d
0755 root root /etc/sysconfig/SuSEfirewall2.d/services
0755 root root /etc/sysconfig/network
0755 root root /etc/sysconfig/network/if-down.d
0755 root root /etc/sysconfig/network/if-up.d
0700 root root /etc/sysconfig/network/providers
0755 root root /etc/sysconfig/network/scripts
0755 root root /etc/sysconfig/scripts
0755 root root /etc/sysctl.d
0755 root root /etc/tmpfiles.d
0755 root root /etc/opt
0755 root root /etc/xdg
0755 root root /etc/xdg/autostart
0755 root root /home
0755 root root /lib
0755 root root /lib/modules
0755 root root /lib/firmware
0755 root root /lib/modprobe.d
0755 root root /mnt
0755 root root /opt
0700 root root /root
0700 root root /root/.gnupg
0755 root root /root/bin
0755 root root /run
0755 root root /sbin
0755 root root /selinux
0755 root root /srv/www
0755 root root /srv/www/cgi-bin
0755 root root /srv/www/htdocs
1777 root root /tmp
0755 root root /usr
0755 root root /usr/bin
0755 root root /usr/include
0755 root root /usr/include/X11
0755 root root /usr/lib
0755 root root /usr/lib/X11
0755 root root /usr/lib/modprobe.d
0755 root root /usr/lib/pkgconfig
0755 root root /usr/lib/browser-plugins
0755 root root /usr/lib/restricted
0755 root root /usr/lib/restricted/bin
0755 root root /usr/lib/sysctl.d
0755 root root /usr/lib/systemd
0755 root root /usr/lib/systemd/system
0755 root root /usr/lib/systemd/system-preset
0755 root root /usr/lib/systemd/user
0755 root root /usr/lib/systemd/user-preset
0755 root root /usr/lib/sysusers.d
0755 root root /usr/lib/tmpfiles.d
0755 root root /usr/lib/udev
0755 root root /usr/lib/udev/rules.d
0755 root root /usr/local
0755 root root /usr/local/bin
0755 root root /usr/local/include
0755 root root /usr/local/lib
0755 root root /usr/local/man
0755 root root /usr/local/man/man1
0755 root root /usr/local/man/man2
0755 root root /usr/local/man/man3
0755 root root /usr/local/man/man4
0755 root root /usr/local/man/man5
0755 root root /usr/local/man/man6
0755 root root /usr/local/man/man7
0755 root root /usr/local/man/man8
0755 root root /usr/local/man/man9
0755 root root /usr/local/man/mann
0755 root root /usr/local/sbin
0755 root root /usr/local/share
0755 root root /usr/local/src
0755 root root /usr/sbin
0755 root root /usr/share
0755 root root /usr/share/appdata
0755 root root /usr/share/applications
0755 root root /usr/share/dict
0755 root root /usr/share/doc
0755 root root /usr/share/doc/packages
0755 root root /usr/share/fillup-templates
0755 root root /usr/share/help
0755 root root /usr/share/help/C
0755 root root /usr/share/locale
0755 root root /usr/share/licenses
0755 root root /usr/share/man
0755 root root /usr/share/man/man1
0755 root root /usr/share/man/man2
0755 root root /usr/share/man/man3
0755 root root /usr/share/man/man4
0755 root root /usr/share/man/man5
0755 root root /usr/share/man/man6
0755 root root /usr/share/man/man7
0755 root root /usr/share/man/man8
0755 root root /usr/share/man/man9
0755 root root /usr/share/man/mann
0755 root root /usr/share/metainfo
0755 root root /usr/share/mime
0755 root root /usr/share/mime/packages
0755 root root /usr/share/misc
0755 root root /usr/share/icons
0755 root root /usr/share/info
0755 root root /usr/share/java
0755 root root /usr/share/fonts
0755 root root /usr/share/games
0755 root root /usr/share/pixmaps
0755 root root /usr/share/pkgconfig
0755 root root /usr/share/sgml
0755 root root /usr/share/sgml/docbook
0755 root root /usr/share/sounds
0755 root root /usr/share/omc
0755 root root /usr/share/omc/svcinfo.d
0755 root root /usr/share/themes
0755 root root /usr/share/xml
0755 root root /usr/share/xml/docbook
0755 root root /usr/share/xsessions
0755 root root /usr/src
0755 root root /usr/src/packages
0755 root root /var
0755 root root /var/adm
0700 root root /var/adm/backup
0755 root root /var/cache
0755 root root /var/crash
0755 root root /var/lib
0755 root root /var/lib/empty
0755 root root /var/lib/misc
0755 root root /var/spool
1777 root root /var/spool/mail
1777 root root /var/tmp
0755 root root /var/log
0755 root root /var/opt
0700 root root /var/adm/update-scripts
0700 root root /var/adm/update-messages

5
directory.list64 Normal file
View file

@ -0,0 +1,5 @@
0755 root root /lib64
0755 root root /usr/lib64
0755 root root /usr/lib64/pkgconfig
0755 root root /usr/lib64/browser-plugins
0755 root root /usr/local/lib64

844
filesystem.changes Normal file
View file

@ -0,0 +1,844 @@
* Wed Mar 9 2022 gmbr3@opensuse.org
- Add /lib/modprobe.d (bsc#1196275, jsc#SLE-20639)
* Tue Feb 9 2021 kukuk@suse.com
- Remove duplicate line due to merge error
* Mon Feb 1 2021 ro@suse.de
- add /etc/skel/.cache with perm 0700 (bsc#1181011)
* Fri Jan 29 2021 lnussel@suse.de
- Set correct permissions when creating /proc and /sys
* Fri Jan 29 2021 kukuk@suse.com
- Ignore postfix user (pulled in from buildsystem)
* Mon Nov 16 2020 lnussel@suse.de
- /proc and /sys should be %%ghost to allow filesystem package updates in
rootless container environments (rh#1548403) (bsc#1146705)
* Fri Sep 4 2020 kukuk@suse.com
- Split /var/tmp out of fs-var.conf, new file is fs-var-tmp.conf.
Allows to override config to add cleanup options of /var/tmp
[bsc#1078466]
- Create fs-tmp.conf to cleanup /tmp regular (required with tmpfs)
[bsc#1175519]
- Fix bug about missing group in tmpfiles.d files
- Generic cleanup:
- Remove /usr/local/games
* Thu May 17 2018 ro@suse.de
- pretrans lua script: try to move away /var/run and /var/lock
unless they are already symlinks (bsc#1084119)
* Tue Mar 27 2018 msuchanek@suse.com
- Add /etc/modprobe.d and /usr/lib/modprobe.d (bsc#1082050).
* Fri Mar 16 2018 ro@suse.de
- drop /etc/xinetd.d (bsc#1084457)
* Fri Mar 2 2018 dimstar@opensuse.org
- Handle aaa_base moving the license files to /usr/share/licenses.
* Wed Feb 14 2018 schwab@suse.de
- Use lib64 filelist on riscv64
* Thu Feb 8 2018 kukuk@suse.de
- Exclude some directories from fs-var.conf which are already part
of systemd [bsc#1078466].
- Remove obsolete, outdated or duplicate directories:
/lib/YaST, /lib/lsb, /srv/ftp, /usr/lib/lsb, /usr/share/nls and
/usr/share/tmac.
* Tue Feb 6 2018 kukuk@suse.de
- Adjust aaa_base test for latest aaa_base changes
* Mon Feb 5 2018 rbrown@suse.com
- Remove /var/adm/fillup-templates, already prohibited by rpmlint
* Mon Feb 5 2018 kukuk@suse.de
- Remove /var/adm/backup/{rpmdb,sysconfig}, they belong to
aaa_base-extras only.
* Wed Nov 22 2017 kukuk@suse.de
- Fix incomplete /usr/X11R6 drop from 2013
* Tue Nov 21 2017 kukuk@suse.de
- Create fs-var.conf for systemd-tmpfiles, which contains all
directories and links below /var. This is needed for systems,
which use transactional update, read-only root filesystem, or
other things, where either /var is not available during upgrade
or does not survive a reboot. So that systemd-tmpfiles could
create them at next boot.
- Drop deprecated /usr/tmp compat link
* Wed Nov 8 2017 rbrown@suse.com
- Add /usr/share/fillup-templates: this is the new location for
fillup-templates
* Wed Nov 1 2017 dimstar@opensuse.org
- Add /usr/share/metainfo: this is the new location defined by
AppStream to replace /usr/share/appdata.
* Fri Jun 9 2017 kukuk@suse.de
- Remove /etc/ppp and subdirectories, the current, full list of
directories is part of the sysconfig package
* Thu Jun 8 2017 kukuk@suse.de
- Require user root and group root
* Thu Jun 8 2017 kukuk@suse.de
- Remove /etc/susehelp.d and subdirectories, susehelp is gone
- Remove /etc/tmpdirs.d, support was removed 2011 and migrated
to tmpfiles.d
- Remove /var/adm/perl-modules (support was removed with 11.4)
* Thu Jun 8 2017 kukuk@suse.de
- Get ride of the last non-root group. /run/lock is created by
systemd, not filesystem, so remove it from here.
* Tue Jun 6 2017 kukuk@suse.de
- Change ownership of /etc/ppp, group dialout has meanwhile another
meaning and there are no setgid dialout binaries who could need
that.
* Mon Apr 17 2017 kukuk@suse.de
- Remove home directories for wwwrun, lp, mail and nobody.
They are now part of the corresponding system-user-* RPMs.
* Wed Mar 29 2017 kukuk@suse.de
- Move /etc/init.d hiearchy to insserv-compat
- Move /etc/cups to cups-libs [bsc#1025689]
* Fri Feb 10 2017 kukuk@suse.de
- Remove /usr/games (finally everything is moved to /usr/bin)
* Sat Jan 21 2017 kukuk@suse.de
- Remove /*/news, now part of system-user-news
* Fri Jan 20 2017 kukuk@suse.de
- Remove /var/cache/man, now part of system-user-man
* Tue Dec 20 2016 kukuk@suse.de
- Remove /var/games, now part of system-user-games
* Tue Dec 20 2016 kukuk@suse.de
- Add /usr/lib/sysusers.d
- Remove uucp directories, moved to system-user-uucp
* Mon Dec 5 2016 lnussel@suse.de
- change /etc/cups to mode 0755 by cherry-picking SLE change
* Wed Nov 25 2015 lnussel@suse.de
- own /usr/share/licenses to support %%license tags in rpm, see
http://rpm.org/wiki/Releases/4.11.0
* Fri Aug 7 2015 dimstar@opensuse.org
- Add /usr/lib/udev/rules.d: packages installing rules don't really
have to build depend on udev, it only increases their build time.
* Wed Jul 1 2015 jengelh@inai.de
- Add some systemd directories so that uuidd does not have to own
them and still succeeds building in a systemd-less root.
* Fri May 29 2015 dimstar@opensuse.org
- Add /usr/lib/tmpfiles.d, which can well be considered a base
system directory by now.
* Thu Sep 11 2014 ro@suse.de
- add /usr/share/appdata (bnc#893441)
* Wed Sep 3 2014 ro@suse.de
- drop /media directory (bnc#890198)
* Fri Aug 29 2014 lnussel@suse.de
- make /run/lock %%ghost to fix build failure
* Wed Apr 23 2014 ro@suse.de
- make /var/run and /var/lock just ghost entries and create them
if they do not exist at all and rely on dracut hooks to
actually replace directories with symlinks there (bnc#874748)
* Mon Apr 21 2014 ro@suse.de
- add vscan user to ignore home list
* Fri Apr 11 2014 ro@suse.de
- change /etc/cups to mode 0755 (bnc#871640) for new cups version
* Fri Apr 11 2014 ro@suse.de
- change /sys to mode 0555 (bnc#871640)
* Wed Mar 12 2014 ro@suse.de
- make /var/lock a symlink to /run/lock (bnc#867873)
* Fri Mar 7 2014 ro@suse.de
- use lazy umount
* Thu Mar 6 2014 ro@suse.de
- use os.execute("umount ...") instead of posix.umount("...")
bnc#866964
* Mon Mar 3 2014 ro@suse.de
- change pre to pretrans for directory/symlink conversion
* Fri Feb 28 2014 ro@suse.de
- drop /var/lib/pam_devperm (bnc#866234)
* Thu Feb 27 2014 ro@suse.de
- replace /var/run by symlink to /run
- try to handle case where /var/run is a bind-mount
- extend lua script in preinstall to handle this transition
- bnc#865893
* Mon Jan 6 2014 dmueller@suse.com
- bump version to 13.2
* Mon Dec 9 2013 speilicke@suse.com
- Drop /usr/X11R6, /usr/X11R6/bin, /usr/X11R6/lib, /var/X11R6
* Wed Dec 4 2013 adrian@suse.de
- add ppc64le definition
* Mon Sep 30 2013 speilicke@suse.com
- Drop /lib/systemd and /lib/systemd/system, everything is now in
/usr/lib/systemd...
* Tue Jul 16 2013 mls@suse.de
- do not put dir modifiers on symlinks
* Thu Jul 4 2013 lnussel@suse.de
- change license to MIT as GPL doesn't make sense for a package that
only contains directories. Also include a LICENSE.txt with the
sources (bnc#822602).
* Fri Jun 28 2013 dmueller@suse.com
- bump version to 13.1
* Tue Jun 18 2013 mhrusecky@suse.cz
- Add systemd %%_unitdir
* Mon Jun 17 2013 coolo@suse.com
- move sysctl directories here
* Thu Jan 31 2013 guillaume@opensuse.org
- Add directory.list64 for aarch64
* Tue Nov 6 2012 fcrozat@suse.com
- Revert /var/run and /var/lock being symlinks for now.
* Sat Oct 20 2012 coolo@suse.com
- remove get_version_number.sh, it's unused since ages
* Mon Oct 15 2012 aj@suse.de
- Revert last change since aaa_base removed /usr/lib/tmpfiles.d.
* Fri Oct 12 2012 coolo@suse.com
- own /usr/lib/tmpfiles.d
* Tue Sep 25 2012 aj@suse.de
- Remove also /sbin/conf.d/ (SuSEconfig directory).
* Tue Sep 25 2012 fcrozat@suse.com
- replace /var/run and /var/lock directories with symlinks to
/run and /run/lock (respectively).
* Thu Sep 20 2012 kukuk@suse.de
- Remove SuSEconfig directories [FATE#100011]
* Tue Sep 4 2012 coolo@suse.com
- move directories for man page translations from man package to
filesystem
* Thu Jul 12 2012 lnussel@suse.de
- remove /var/run/vi.recover (bnc#765288)
- remove /media/floppy and /media/cdrom ghost entries, they are not
used anywhere since years either
* Fri Jun 1 2012 lnussel@suse.de
- remove /var/cache/fonts (bnc#764885)
* Tue Mar 13 2012 vuntz@opensuse.org
- Also create /usr/share/help/$LOCALE for each LOCALE defined in
the languages file. This will allow our packages to have
translations for the XDG help system.
* Mon Jan 9 2012 dmueller@suse.de
- bump version to 12.2
* Tue Oct 25 2011 coolo@suse.com
- digged through logs to find more languages that have >45000 strings
* Tue Sep 20 2011 lnussel@suse.de
- remove world writeable /var/crash again (bnc#438041)
* Sun Sep 18 2011 jengelh@medozas.de
- Apply packaging guidelines (remove redundant/obsolete
tags/sections from specfile, etc.)
* Mon Sep 5 2011 vuntz@opensuse.org
- Add /usr/share/help and /usr/share/help/C: this is the directory
used by the XDG help system specification, and the subdirectory
for the english docs there.
* Mon Aug 22 2011 dmueller@suse.de
- remove dirs that are clearly aaa_base specific
* Thu Aug 4 2011 lnussel@suse.de
- remove /var/lock/subsys as /var/lock is on tmpfs now
* Mon Jul 25 2011 aj@suse.de
- Really add language zh.
* Tue Jul 12 2011 aj@suse.de
- Add languages ga, ia, kk, km, kn, mai, nds, wa (from kde4-l10n) and
zh (from cups).
* Thu Jul 7 2011 lnussel@suse.de
- add /etc/skel/{.local,.config} to make sure they have correct
permissions for new users (bnc#676468)
* Thu Jun 30 2011 aj@suse.de
- Bump version number.
- Remove /etc/skel/.mozilla, it's not needed to have this by default.
* Mon Jun 6 2011 aj@suse.de
- Increase version number to 12.1.
- Add missing directories from aaa_base: /usr/share/doc/packages/aaa_base,
/lib/aaa_base
* Wed Mar 30 2011 ro@suse.de
- add /run directory (mode 0755,root,root)
* Wed Mar 9 2011 coolo@novell.com
- reset list of languages to only contain what's translated with
more than 45.000. we might add big ones later if they become popular
to translate
* Mon Mar 7 2011 ro@suse.de
- bump version to 11.5
* Wed Feb 16 2011 ro@suse.de
- fix build whitelisting /lib/udev/devices
* Fri Jan 14 2011 coolo@novell.com
- add new locales (bnc#659001)
* Sun Dec 12 2010 dimstar@opensuse.org
- Add the new locale for "Congo", kg (iso 639-1).
* Wed Nov 10 2010 coolo@novell.com
- add an locale for "Aragonese Spanish"
* Tue Nov 9 2010 lnussel@suse.de
- add /lib/systemd and /lib/systemd/system to avoid systemd
dependencies in lots of packages that merely install a text file
there.
* Fri Nov 5 2010 lnussel@suse.de
- add /etc/tmpfiles.d
* Wed Apr 28 2010 ro@suse.de
- add ghost.list with directories only listed in this package
as ghost files, move /tmp/.X11-unix, /tmp/.ICE-unix
and /var/tmp/vi.recover to that list
- also move /media/cdrom and /media/floppy to that list
they were done manually as ghosts in the specfile before
- add /etc/tmpdirs.d (see aaa_base)
* Tue Apr 27 2010 aj@suse.de
- Set version number to 11.3
* Tue Mar 9 2010 lnussel@suse.de
- change group of /var/lock to 'lock' (bnc#552095, FATE#308360)
* Wed Dec 9 2009 ro@suse.de
- added ms_my (bnc#561174)
* Tue Dec 8 2009 jengelh@medozas.de
- Add /usr/$march directories for SPARC. Will be packaging both
sparc-suse-linux and sparc64-suse-linux because the compiler
suite is usually configured with the latter on this arch.
* Fri Dec 4 2009 ro@suse.de
- minor change for sparc in specfile (bnc#558343)
* Tue Dec 1 2009 ro@suse.de
- added en@shaw (bnc#559206)
* Fri Aug 7 2009 jansimon.moeller@opensuse.org
- add arm gnueabi folders
* Wed Aug 5 2009 thomas@novell.com
- added /selinux (fate#305557)
* Wed Jul 15 2009 ro@suse.de
- added fil (filipino) to the list of languages (bnc#513962)
* Fri Jul 3 2009 lrupp@suse.de
- add bem (Bemba) (fix bnc#501080)
* Sun Apr 19 2009 ro@suse.de
- fix build (ignore /lib/mkinitrd/scripts for now)
* Thu Apr 16 2009 dmueller@suse.de
- add hne (Chhattisgarhi)
* Tue Apr 14 2009 ro@suse.de
- added jbo (bnc#485455)
* Mon Feb 23 2009 ro@suse.de
- added ha and ig (bnc#470409)
* Mon Feb 9 2009 ro@suse.de
- added af_ZA and fa_IR (bnc#470781)
* Mon Jan 26 2009 ro@suse.de
- drop sr@Latn (please use sr@latin instead) (bnc#469183)
* Wed Jan 21 2009 ro@suse.de
- added la and tr_TR to list of languages (bnc#462486)
* Thu Nov 27 2008 dmueller@suse.de
- add directory for update-scripts/update-messages
* Sat Oct 4 2008 aj@suse.de
- Add ckb as language (bnc#432200).
* Thu Sep 25 2008 lnussel@suse.de
- change /var/games to 755 to prevent ill-considered maneuvers there
(bnc#429882)
* Mon Sep 15 2008 jpr@suse.de
- Add nds_DE to the locale list
* Fri Sep 12 2008 aj@suse.de
- Add en_NZ to the locale list.
* Fri Sep 5 2008 mrueckert@suse.de
- add sr@latin to the locale list
* Tue Sep 2 2008 ajorgensen@novell.com
- Add the Asturia (ast) locale
* Thu Aug 28 2008 maw@suse.de
- Add the Crimean Tatar (crh) locale.
* Wed Aug 20 2008 jblunck@suse.de
- Add /var/crash. This directory holds system crash dumps.
* Fri Aug 15 2008 maw@suse.de
- Add the Kashmiri (ks) locale.
* Wed Jul 16 2008 mrueckert@suse.de
- added "mus" locale (bnc#405874)
* Thu Jul 3 2008 kssingvo@suse.de
- changed /etc/cups to have owner root now
* Fri Jun 27 2008 maw@suse.de
- Add Malay, Baba (bal).
* Tue Apr 1 2008 mrueckert@suse.de
- removed uz@Cyrl and uz@Latn
- added uz@cyrillic instead
* Tue Apr 1 2008 mkoenig@suse.de
- add /usr/share/omc and /usr/share/omc/svcinfo.d
* Sun Mar 16 2008 ro@suse.de
- added Mandingo (md)
* Fri Mar 14 2008 maw@suse.de
- Add Pakistani Urdu (ur_PK)
* Tue Mar 4 2008 maw@suse.de
- Add Maithili (mai)
* Mon Feb 18 2008 maw@suse.de
- Add Friulian (fur)
* Mon Dec 17 2007 maw@suse.de
- Add Ido (io)
* Mon Dec 10 2007 ro@suse.de
- added /etc/skel/bin , .fonts and .mozilla (from aaa_skel)
* Fri Aug 24 2007 dmueller@suse.de
- add Kashubian (csb)
* Fri Jul 27 2007 werner@suse.de
- Add /usr/lib/restricted and /usr/lib/restricted/bin (bug #293038)
* Thu Jun 21 2007 dmueller@suse.de
- remove compat locale 'gr', 'el' is the replacement
* Thu Mar 15 2007 lnussel@suse.de
- add /lib/firmware
* Tue Mar 6 2007 rguenther@suse.de
- Fix order of changelog entries.
* Thu Mar 1 2007 lnussel@suse.de
- /usr/share/SuSEfirewall2/services ->
/usr/sysconfig/SuSEfirewall2.d/services (#247352)
* Thu Mar 1 2007 sbrabec@suse.cz
- Added ca@valencia for valencian dialectal verb forms and wording.
* Wed Feb 28 2007 sbrabec@suse.cz
- Added /etc/xdg/autostart (#229171) and
/usr/share/xsessions (#229172).
* Tue Feb 27 2007 sbrabec@suse.cz
- Added be@latin for Belarusian written with Latin (#248753).
* Thu Feb 22 2007 sbrabec@suse.cz
- Added /usr/share/SuSEfirewall2/services (#247435).
* Thu Jan 25 2007 sndirsch@suse.de
- get rid of /usr/X11R6/{man,share}
* Wed Jan 24 2007 ro@suse.de
- added sq_AL to languages
* Wed Jan 24 2007 sndirsch@suse.de
- get rid of /usr/X11R6/include/{,net,sys,rpcsvc} (Bug #223524,
comment #5)
* Mon Jan 8 2007 sbrabec@suse.cz
- Added /usr/share/xml and /usr/share/xml/docbook.
- Added languages for iso-codes: aa, byn, dv, gez, haw, iu, kk, kl,
kok, kw, om, ps sa, sid, so, sw, syr, ti, tig, ve, wal and wo.
* Fri Jan 5 2007 sbrabec@suse.cz
- Added languages ang, as, az_IR, bo, de_CH, dz, es_CL, es_CO,
es_CR, es_DO, es_EC, es_GT, es_HN, es_NI, es_PA, es_PE, es_PR,
es_SV, es_UY, es_VE, fr_CA, fr_CH, gd, gn, gv, hy, ky, mg, my,
nl_BE, or, rm, si, sr@ije, st, tk, tl, ug, ur, urd, uz@Latn and
yo to the list.
* Thu Oct 19 2006 ro@suse.de
- added language ne to list
* Sun Aug 13 2006 ro@suse.de
- remove /usr/X11R6/lib/X11
* Wed Aug 9 2006 ro@suse.de
- remove usr/include/X11 and usr/lib/X11 if symlinks (or empty)
in prescript using rpm-builtin lua interpreter
* Wed Aug 9 2006 ro@suse.de
- drop the prereq again and test if bin/rm is available
(otherwise this is not an update and no action needed)
- the prereq for /bin/sh is autogenerated by rpm anyway
* Wed Aug 9 2006 sndirsch@suse.de
- added "Prereq: /bin/sh /usr/bin/test /bin/rm" to make sure
/usr/lib/X11,usr/include/X11 symlinks can be removed in %%pre;
this requires bash and coreutils installed *before* filesystem
* Tue Aug 8 2006 dmueller@suse.de
- Add /usr/share/fonts and remove /usr/X11R6/lib/X11/fonts
* Mon Aug 7 2006 kukuk@suse.de
- Remove /var/lib/update-message and /usr/share/update-message
[Fate#300893]
* Tue Aug 1 2006 sndirsch@suse.de
- removed /usr/X11R6/lib/X11/app-defaults, which has been added to
blacklist
* Fri Jul 28 2006 ro@suse.de
- change var/adm/backup permissions to 700
* Thu Jul 27 2006 sndirsch@suse.de
- changed /usr/include/X11 from symlink to directory; remove
existing symlink in %%pre
- removed /var/X11R6/lib symlink, which pointed to /usr/X11R6/lib/X11
* Mon Jul 24 2006 ro@suse.de
- added var/adm/backup/{rpmdb,sysconfig} (#190597)
* Thu Jul 20 2006 sndirsch@suse.de
- changed /usr/lib/X11 from symlink to directory; remove existing
symlink in %%pre
* Sat Mar 4 2006 aj@suse.de
- added fy and tt to languages.
* Mon Jan 30 2006 ro@suse.de
- added km to languages
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 ro@suse.de
- added languages fo,ku,lo,nds,se,ss
* Tue Dec 20 2005 kukuk@suse.de
- Don't check mode for /media/*
* Mon Dec 19 2005 ro@suse.de
- added /dev
* Thu Dec 8 2005 ro@suse.de
- added /usr/share/mime and /usr/share/mime/packages
* Fri Sep 30 2005 lnussel@suse.de
- change /var/games to games:games 775 again (#103186)
* Mon Aug 15 2005 pth@suse.de
- Add zh_HK and it_IT to locale
* Fri Aug 12 2005 ro@suse.de
- changed /var/games to root:root/0755
* Tue Aug 2 2005 cthiel@suse.de
- added te to language list
* Tue Jun 21 2005 gekker@suse.de
- added mi, mt, nso, oc, ven, xh, zu to language list
* Thu Jun 9 2005 ro@suse.de
- add /usr/share/pkgconfig
* Wed May 18 2005 cthiel@suse.de
- added bn_IN and mr to language list
* Tue Apr 12 2005 ro@suse.de
- added ar to language list
* Wed Apr 6 2005 kukuk@suse.de
- Add rw to language list (gcc4)
* Fri Jan 28 2005 gekker@suse.de
- add gu and pa to language list
* Thu Jan 27 2005 gekker@suse.de
- add en_CA to language list
* Wed Nov 10 2004 ro@suse.de
- /var/cache/fonts to 1777 (was set this way in tetex perms)
* Mon Oct 18 2004 ro@suse.de
- remove no from language list (nb,nn now)
* Tue Sep 28 2004 uli@suse.de
- really enable /media on s390* (was missing in directory.list)
* Tue Aug 31 2004 ro@suse.de
- ignore icecream home-dir (might be forced into buildsystem)
* Thu Aug 26 2004 kukuk@suse.de
- removed /etc/httpd tree (Apache1 was dropped)
* Fri Aug 20 2004 ro@suse.de
- removed /var/adm/notify tree (obsolete now)
* Tue Aug 17 2004 ro@suse.de
- added /var/lib/update-messages
and /usr/share/update-messages (lang subdirs to be done)
* Thu Aug 5 2004 ro@suse.de
- added es_ES to languages
* Thu Jun 24 2004 kukuk@suse.de
- Enable /media on s390/s390x [Bug #42411]
* Thu Apr 15 2004 kukuk@suse.de
- Add /etc/ld.so.conf.d
* Sun Apr 4 2004 mls@suse.de
- made /usr/lib/news owned by root:root as /usr/lib/news/bin
contains a suid-root program
* Thu Apr 1 2004 kukuk@suse.de
- Add sticky bit to /var/lock
- Change permissions of /var/lock/subsys to root:root, mode 755
* Wed Mar 31 2004 ro@suse.de
- package /media/{cdrom,floppy} as %%ghost (not on s390*)
* Mon Feb 23 2004 ro@suse.de
- ignore missing HOME for abuild user
* Mon Feb 23 2004 ro@suse.de
- /root/.gnupg: mode 700 now (#31982)
* Wed Feb 18 2004 kukuk@suse.de
- Remove ca_ES again
* Mon Feb 16 2004 kukuk@suse.de
- added lang ca_ES
* Mon Feb 9 2004 ro@suse.de
- added /usr/share/java
* Fri Jan 30 2004 schwab@suse.de
- Add /emul/ia32-linux on ia64.
* Tue Nov 18 2003 ro@suse.de
- added lang pt_PT
* Thu Nov 6 2003 olh@suse.de
- add /sys
* Mon Oct 20 2003 ro@suse.de
- fixed leftover permissions from previous change
* Mon Oct 20 2003 ro@suse.de
- adapt to current permissions files
- don't build as root
* Tue Oct 14 2003 meissner@suse.de
- ppc has also lib64 directories (coming from biarch gcc build).
* Thu Sep 25 2003 mmj@suse.de
- Add /etc/xdg and /usr/share/themes according to the new standards
on freedesktop.org
* Tue Sep 9 2003 kukuk@suse.de
- Add bs, ka, uz and uz@Cyrl to languages
* Fri Aug 29 2003 kukuk@suse.de
- adjust /etc/cups permissions to cups need (make it 0775)
* Tue Aug 26 2003 kssingvo@suse.de
- changed group ownership of /etc/cups (bugzilla#28736)
* Wed Aug 20 2003 ro@suse.de
- added br to languages
* Wed Jul 30 2003 adrian@suse.de
- add ee and es_MX to languages
* Mon Jul 28 2003 adrian@suse.de
- add /usr/share/applications directory
* Mon Jun 23 2003 kukuk@suse.de
- Fix /usr/alpha-suse-linux directory
* Thu Jun 19 2003 mmj@suse.de
- Add missing directories on lib64 platforms
* Fri Jun 13 2003 kukuk@suse.de
- Fix permissions of /etc/uucp
* Fri Jun 13 2003 kukuk@suse.de
- Add /usr/X11R6/share/locale
* Thu Jun 12 2003 kukuk@suse.de
- Add /usr/share/dict
* Thu Jun 12 2003 kukuk@suse.de
- Add new locale directories: kn, li, ml, sr@Latn and yi
* Thu Jun 12 2003 kukuk@suse.de
- Rename i486-suse-linux to i586-suse-linux
* Thu Jun 12 2003 kukuk@suse.de
- Fix permissions of /etc/cups
* Thu Jun 12 2003 kukuk@suse.de
- Add /usr/X11R6/share and /usr/X11R6/share/icons
* Wed Jun 11 2003 ro@suse.de
- added usr/lib*/browser-plugins and usr/share/pixmaps
* Wed Jun 11 2003 kukuk@suse.de
- Add /etc/sysconfig/network and /etc/ppp subdirectories
* Wed Jun 11 2003 kukuk@suse.de
- Add /var/adm/SuSEconfig/{bin,md5}
* Wed Jun 11 2003 kukuk@suse.de
- Add /etc/X11
* Wed Jun 11 2003 kukuk@suse.de
- Add /usr/X11R6/lib/X11/fonts
* Wed Jun 11 2003 kukuk@suse.de
- Add /usr/share/doc/packages with correct permissions
* Tue Jun 10 2003 kukuk@suse.de
- Add usr/share/locale and subdirectories
- Remove usr/share/doc/packages/aaa_base, not needed any longer
* Thu May 15 2003 kukuk@suse.de
- Add include/net, include/sys, include/rpcsvc
* Fri Apr 4 2003 ro@suse.de
- added /etc/skel
* Fri Apr 4 2003 kukuk@suse.de
- changed version to BUILD_DISTRIBUTION_VERSION
* Thu Feb 27 2003 kukuk@suse.de
- Remove /var/named from filelist [Bug #24387]
* Thu Feb 13 2003 mmj@suse.de
- Make filesystem own /etc/cron.d* since we might want to use
other cron versions.
* Wed Feb 12 2003 mmj@suse.de
- Do not own /etc/cron.daily -- it's owned by cron already
* Tue Jan 14 2003 kukuk@suse.de
- Add /etc/xinetd.d
* Tue Nov 5 2002 ro@suse.de
- removed /var/lib/YaST
- removed /var/adm/current_package_descr (#19665)
* Mon Sep 2 2002 ro@suse.de
- added /var/lib/empty
* Sun Aug 4 2002 ro@suse.de
- added /etc/java
* Thu Aug 1 2002 poeml@suse.de
- move Apache's ServerRoot from /usr/local/httpd to /srv/www
- move homedir of ftp user from /usr/local/ftp to /srv/ftp
* Tue Jul 30 2002 kukuk@suse.de
- use changes and not spec file for version number calculating
* Wed Jul 17 2002 kukuk@suse.de
- Rename package to filesystem
* Thu Jul 11 2002 kukuk@suse.de
- Add /etc/aliases.d (partial fix for Bug #15921)
* Mon Jul 8 2002 kukuk@suse.de
- Remove home dirs for user removed from aaa_base
* Fri Jul 5 2002 kukuk@suse.de
- Use %%ix86 macro
* Tue Jul 2 2002 ro@suse.de
- removed ircd,squid home dirs
* Tue Jul 2 2002 ro@suse.de
- removed home dirs for dpbox,vscan,wnn,perforce,db4web
* Mon Jun 17 2002 ro@suse.de
- removed pop home
* Fri Jun 7 2002 ro@suse.de
- removed zope home
* Mon Jun 3 2002 ro@suse.de
- removed /usr/share/doc/support
* Sun May 26 2002 ro@suse.de
- removed ingres home dir
* Fri May 24 2002 kukuk@suse.de
- Remove /usr/lib/cyrus and /var/spool/postfix (should be moved
to postfix and cyrus-imapd)
* Wed May 22 2002 kukuk@suse.de
- Move /var/spool/atjobs to at package
* Tue May 21 2002 ro@suse.de
- no 64bit dirs for "normal" ppc
* Sun May 19 2002 olh@suse.de
- fix specfile
* Sat May 18 2002 olh@suse.de
- add directories for ppc64
* Wed Apr 17 2002 kukuk@suse.de
- x86_64 is 64bit arch
* Wed Apr 10 2002 kukuk@suse.de
- Change i486-linux -> i486-suse-linux
* Wed Mar 27 2002 ihno@suse.de
- removed directories /media/floppy and /media/cdrom
for s390 and s390x
- removed links /floppy and /cdrom to these directories
for s390 and s390x
* Wed Mar 13 2002 kukuk@suse.de
- Add more /var/adm subdirectories
* Sat Mar 9 2002 kukuk@suse.de
- Add /etc/httpd and /etc/httpd/modules (needed by more packages
than only apache).
* Sat Mar 9 2002 kukuk@suse.de
- Add /usr/share/sgml and /usr/share/sgml/docbook
* Fri Mar 8 2002 kukuk@suse.de
- Add /usr/share/sounds and /usr/share/icons
* Fri Mar 8 2002 kukuk@suse.de
- Add /usr/lib/pkgconfig to filelist
* Mon Feb 25 2002 schwab@suse.de
- Don't add lib64 on ia64.
* Wed Feb 20 2002 froh@suse.de
- added {,/usr,/usr/local,/usr/X11R6}/lib64 for s390x, ia64 and sparc64
* Sun Feb 17 2002 kukuk@suse.de
- Add /usr/local/httpd hierachy
* Thu Feb 14 2002 draht@suse.de
- added dir /tmp/.ICE-unix root.root 1777 (#13261)
* Fri Jan 18 2002 ro@suse.de
- added /var/spool/clientmqueue as home for mail user
* Wed Jan 16 2002 ro@suse.de
- moved /usr/cyrus to /usr/lib/cyrus
* Thu Jan 10 2002 ro@suse.de
- removed /etc/rc.config.d
- removed /usr/games/{bin,lib} (#7788)
* Fri Jan 4 2002 olh@suse.de
- remove /macboot and /macos
* Wed Dec 12 2001 ro@suse.de
- added /etc/sysconfig
* Wed Dec 12 2001 ro@suse.de
- added /etc/logrotate.d
* Fri Nov 30 2001 kukuk@suse.de
- remove compat cdrom and floppy link (will be created by YaST2)
- remove /usr/etc and /usr/man (obsolete)
- remove /usr/spool (obsolete)
* Thu Nov 22 2001 ro@suse.de
- removed openwin dirs and fsuite dirs
* Wed Oct 17 2001 ro@suse.de
- removed Provides for package name
* Sat Sep 22 2001 kukuk@suse.de
- Add /var/adm/SuSEconfig to file list
* Fri Sep 7 2001 ro@suse.de
- added homedir for db4web user
* Mon Aug 20 2001 ro@suse.de
- added /etc/profile.d and /etc/permissions.d to dirlist
- removed homedirs for dropped users: lnx, yard, ixess, virtuoso,
nps, skyrix, dbmaker, fixadm, fib, fixlohn, codadmin
* Thu Jul 12 2001 ro@suse.de
- move skyrix home to /opt/skyrix
* Wed Jul 11 2001 ro@suse.de
- removed informix home dir (#9136)
* Wed May 2 2001 kukuk@suse.de
- Use _target_cpu, not RPM_ARCH
* Mon Apr 30 2001 ro@suse.de
- added sapdb home /var/opt/sapdb
* Wed Apr 25 2001 ro@suse.de
- moved /cdrom and /floppy to /media and added links
* Tue Apr 3 2001 kukuk@suse.de
- Remove i486-linux-libc6 -> not used
i486-linux-libc5 -> is in shlibs5
i486-linuxaout -> not used any longer
i486-sysv -> is in ibcs2
* Fri Mar 16 2001 kukuk@suse.de
- remove rwho spool directory, it is in the rwho package
* Wed Jan 17 2001 ro@suse.de
- deleted db2 home dirs (/usr/lib/db2 and below)
* Tue Jan 9 2001 ro@suse.de
- added /tmp/.X11-unix mode 1777
* Mon Jan 8 2001 ro@suse.de
- added perforce home-dir
* Wed Dec 20 2000 bk@suse.de
- make /var/run constistent with perms change in /etc/permissions:
root.root 755, fix for bug #3857
* Tue Dec 19 2000 ro@suse.de
- added new dirs from aaa_base
* Mon Dec 18 2000 ro@suse.de
- changed mysql to /var/lib/mysql
* Thu Dec 14 2000 ro@suse.de
- added usr/local/etc
* Wed Dec 13 2000 kukuk@suse.de
- Fix etc/rc.d link [Bug 4627]
* Mon Dec 11 2000 ro@suse.de
- added susehelp dirs
* Wed Dec 6 2000 bk@suse.de
- Add /usr/share/misc (used by util-linux, file, more and ncurses)
* Wed Nov 29 2000 kukuk@suse.de
- Add /var/lib/pam_devperm
* Mon Nov 27 2000 ro@suse.de
- fixes for /sbin/init.d -> /etc/init.d
* Thu Nov 16 2000 ro@suse.de
- added /etc/init.d
* Thu Nov 2 2000 ro@suse.de
- added pop home dir
* Fri Oct 27 2000 ro@suse.de
- added wnn home dir
* Wed Sep 6 2000 ro@suse.de
- added usr/src/packages
* Wed Aug 23 2000 ro@suse.de
- added home dir for vscan user
* Sat Jul 29 2000 kukuk@suse.de
- change /etc/news to 0750 news.news [Bug #3661]
* Fri Jul 21 2000 kukuk@suse.de
- Follow aaa_base change and rename skyrix32 to skyrix36
* Fri Jul 21 2000 kukuk@suse.de
- Remove user empress home directory [Bug #3464]
* Sat Jul 15 2000 kukuk@suse.de
- Rename /var/catman -> /var/cache/man
* Sun Jun 25 2000 kukuk@suse.de
- Add /usr/src
* Thu Jun 22 2000 kukuk@suse.de
- Remove /usr/info (same reasons as for /usr/doc)
* Tue May 30 2000 kukuk@suse.de
- Add /usr/share/{nls,tmac} for FHS 2.1
* Sat May 27 2000 kukuk@suse.de
- Add group tag
* Wed May 17 2000 kukuk@suse.de
- Make /var/games a directory
* Tue May 16 2000 kukuk@suse.de
- Add /etc/opt and /var/cache (used but no owner)
- Add /usr/share/games, /var/cache/fonts and /var/lib/misc for FHS
- Add Link /var/mail -> /var/spool/mail for FHS 2.1
- Add Link /var/games -> /var/lib/games (FHS)
* Thu May 11 2000 ro@suse.de
- added home dir for zope /var/lib/zope
* Tue May 9 2000 ro@suse.de
- added home dir for codadmin /var/lib/codadmin
* Thu Apr 27 2000 ro@suse.de
- added /var/lib/{games,wwwrun,firewall,nobody}
* Mon Apr 17 2000 ro@suse.de
- added /usr/local/{games,sbin,share,src},/usr/share/doc (#2748)
- added /var/opt (#2744)
* Mon Apr 3 2000 ro@suse.de
- fixed for other archs
* Thu Mar 2 2000 schwab@suse.de
- Add arch directory for ia64
* Tue Feb 22 2000 ro@suse.de
- added ingres home-directory
* Mon Feb 21 2000 ro@suse.de
- fixed skyrix-home
* Tue Feb 15 2000 ro@suse.de
- rebuilt specfile: don't use a tar but a list of directories to
generate
* Sun Jan 30 2000 olh@suse.de
- add the directories /macboot /macos
remove them in %%post on an none PowerMac machine
* Wed Jan 19 2000 ro@suse.de
- added usr/share/{info,man} and usr/share/man/man[1-9n]
- removed usr/i486* on non-x86 and added corresponding dirs
for alpha,ppc,sparc
- added /etc/uucp
* Mon Dec 6 1999 ro@suse.de
- moved uucp-home to /var/spool/uucp
* Fri Nov 12 1999 bs@suse.de
- fixed ownership of ibmdb2 home directories.
* Mon Nov 1 1999 ro@suse.de
- moved oracle-home to /opt/oracle
* Wed Oct 27 1999 ro@suse.de
- added ~ for dpbox
- removed / from rpm-filelist
* Mon Oct 25 1999 ro@suse.de
- added ~ for mysql
* Tue Sep 21 1999 bs@suse.de
- added ~ for oracle.
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Aug 27 1999 ro@suse.de
- added home directories for fixlohn, fixadm and fib
* Thu Jul 29 1999 bs@suse.de
- added home dirs of nps, skyrix and dbmaker
- added the directories /etc/cron.daily /etc/ppp
/usr/doc/packages/aaa_base /usr/doc/support
* Mon Jul 12 1999 bs@suse.de
- added var/adm/notify/*
* Thu Jul 1 1999 ro@suse.de
- removed /var/texfonts from package (closing bug 20)
* Tue Jun 1 1999 ro@suse.de
- added cyrus home dir
* Fri May 21 1999 ro@suse.de
- added postfix home dir
* Tue Apr 20 1999 ro@suse.de
- set gdm-home /var/lib/gdm to mode 750
* Mon Apr 19 1999 ro@suse.de
- added home dir for gdm user
* Tue Mar 30 1999 bs@suse.de
- set permissions of /floppy and /cdrom back to 755 (000 leads to
massive problems with nfsd)
* Tue Mar 23 1999 bs@suse.de
- added home dir for fnet user.
* Mon Mar 22 1999 bs@suse.de
- set permissions of /mnt to 755 (a lot of people mount things not on
but under /mnt - e.g. /mnt/disk1)
* Tue Mar 9 1999 ro@suse.de
- added home directories for ibmdb2 users: db2inst1, db2fenc1 and db2as
* Thu Jan 7 1999 bs@suse.de
- added /etc/news
* Sat Dec 12 1998 bs@suse.de
- added /opt/virtuoso-lite
* Fri Dec 11 1998 bs@suse.de
- set standard mount points (/cdrom, /floppy, /mnt) to 000.
* Sun Dec 6 1998 bs@suse.de
- added directories /usr/i486-*
* Fri Nov 27 1998 bs@suse.de
- added symlink /usr/lib/X11
* Thu Nov 26 1998 bs@suse.de
- added /floppy
* Wed Nov 18 1998 bs@suse.de
- added rc.config.d
* Fri Oct 23 1998 ro@suse.de
- added home directory for the user named
* Thu Aug 13 1998 bs@suse.de
- added home directories for the users news, uucp, amanda, ixware
and informix.
- added a check, if all home directories do exist.
* Wed May 27 1998 bs@suse.de
- added home /usr/lib/ircd for system user irc.
* Fri Apr 17 1998 bs@suse.de
- added /boot
* Fri Apr 3 1998 bs@suse.de
- fixed ownership od /usr/empress
* Thu Mar 26 1998 bs@suse.de
- added some symlinks to directories (/usr/tmp, /usr/spool, ...)
- added /var/spool/rwho
* Mon Feb 9 1998 bs@suse.de
- deleted /usr/postgres
- added /usr/X11R6/lib/X11/app-defaults
* Fri Nov 28 1997 bs@suse.de
- changed /usr/local/ftp to root.root
* Tue Nov 18 1997 bs@suse.de
- added /var/lock/subsys
* Mon Nov 17 1997 bs@suse.de
- added postgress home dir (/var/lib/pgsql)
* Sun Nov 16 1997 bs@suse.de
- ready for autobuild

6
filesystem.links Normal file
View file

@ -0,0 +1,6 @@
# links to be created
# Required for FHS 2.1
spool/mail /var/mail
# systemd
../run /var/run

242
filesystem.spec Normal file
View file

@ -0,0 +1,242 @@
#
# spec file for package filesystem
#
# Copyright (c) 2022-2023 ZhuningOS
#
Name: filesystem
Summary: Basic Directory Layout
License: MIT
Group: System/Fhs
Version: %(echo %suse_version | cut -b-2).%(echo %suse_version | cut -b3)
Release: 11.8.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: aaa_dir < %version-%release
Provides: aaa_dir = %version-%release
Requires: group(root)
Requires: user(root)
Url: https://build.opensuse.org/package/show/openSUSE:Factory/filesystem
Source0: directory.list
Source1: filesystem.links
Source2: languages
Source3: ghost.list
Source4: languages.man
Source64: directory.list64
Source99: LICENSE.txt
%description
This package installs the basic directory structure. It also includes
the home directories of system users.
%prep
%setup -c -n filesystem -T
%build
%install
function create_dir () {
local MODE=$1
case "$MODE" in
\#*) return ;;
esac
local OWNR=$2
local GRUP=$3
local NAME=$4
local XTRA=$5
local BDIR=`dirname $NAME`
test -d "$RPM_BUILD_ROOT/$NAME" && { echo "dir $NAME does already exist" ; echo "input out of sequence ?" ; exit 1 ; }
test -n "$BDIR" -a ! -d $RPM_BUILD_ROOT$BDIR && create_dir 0755 root root $BDIR
mkdir -m $MODE $RPM_BUILD_ROOT/$NAME
echo "$XTRA%%dir %%attr($MODE,$OWNR,$GRUP) $NAME" >> filesystem.list
case "$NAME" in
/tmp)
echo "q $NAME $MODE $OWNR $GRUP -" >> fs-tmp.conf
;;
/var/tmp)
echo "d $NAME $MODE $OWNR $GRUP -" >> fs-var-tmp.conf
;;
/var/*)
echo "d $NAME $MODE $OWNR $GRUP -" >> fs-var.conf
;;
esac
}
mkdir -p $RPM_BUILD_ROOT
# generic directories first
echo "%%defattr(-,root,root)" > filesystem.list
{
cat %{SOURCE0}
%ifarch s390x %sparc x86_64 ppc64 ppc aarch64 ppc64le riscv64
cat %{SOURCE64}
%endif
} | while read MOD OWN GRP NAME ; do
create_dir $MOD $OWN $GRP $NAME
done
# ghost files next
cat %{SOURCE3} | while read MOD OWN GRP NAME ; do
%ifarch s390 s390x
case $NAME in
/media/floppy|/media/cdrom) continue ;;
esac
%endif
create_dir $MOD $OWN $GRP $NAME "%%verify(not mode) %%ghost "
done
# arch specific leftovers
for march in \
%ifarch %ix86
i586-suse-linux \
%else
%ifarch %sparc
sparc-suse-linux sparc64-suse-linux \
%else
%ifarch ppc
powerpc-suse-linux \
%else
%ifarch ppc64
powerpc64-suse-linux \
%else
%ifarch ppc64le
powerpc64le-suse-linux \
%else
%ifarch %arm
%{_target_cpu}-suse-linux-gnueabi \
%else
%{_target_cpu}-suse-linux \
%endif
%endif
%endif
%endif
%endif
%endif
; do
create_dir 0755 root root /usr/$march
for xdir in bin include lib ; do
create_dir 0755 root root /usr/$march/$xdir
done
done
%ifarch ia64
create_dir 0755 root root /emul/ia32-linux
%endif
# now do the links
while read SRC DEST ; do
case $SRC in
"") continue ;;
\#*) echo "comment: $SRC $DEST" ;;
*)
case $SRC in
/*) test -d $RPM_BUILD_ROOT/$SRC || { echo "link src does not exist" ; exit 1 ; }
;;
*) test -d $RPM_BUILD_ROOT/`dirname $DEST`/$SRC || { echo "link src does not exist" ; exit 1 ; }
;;
esac
ln -sf $SRC $RPM_BUILD_ROOT$DEST
case $DEST in
/var/run|/var/lock) echo "%ghost $DEST" >> filesystem.list ;;
*) echo "$DEST" >> filesystem.list ;;
esac
# for tmpfiles.d
case $DEST in
/var/*) echo "L $DEST - - - - $SRC" >> fs-var.conf ;;
esac
;;
esac
done < %{SOURCE1}
# Create the locale directories:
while read LANG ; do
create_dir 0755 root root /usr/share/locale/$LANG/LC_MESSAGES
create_dir 0755 root root /usr/share/help/$LANG
done < %{SOURCE2}
# Create the locale directories for man:
while read LANG ; do
create_dir 0755 root root /usr/share/man/$LANG
for sec in 1 2 3 4 5 6 7 8 9 n; do
create_dir 0755 root root /usr/share/man/$LANG/man$sec
done
done < %{SOURCE4}
RPM_INSTALL_PREFIX=$RPM_BUILD_ROOT
export RPM_BUILD_ROOT
# check, if all home directories are present.
UNFOUND=false
UNFOUND_DIRS=
OLDIFS="$IFS"
IFS=":"
while read LOGIN PASSWD UID_T GID_T NAME HOME_DIR SHELL_T ; do
test "$LOGIN" = "abuild" && continue
test "$LOGIN" = "icecream" && continue
test "$LOGIN" = "vscan" && continue
test "$LOGIN" = "postfix" && continue
test -n "$HOME_DIR" || continue
test "$UID_T" -gt 100 && continue
test -d $RPM_BUILD_ROOT/$HOME_DIR && continue
echo $HOME_DIR does not exist.
UNFOUND=true
UNFOUND_DIRS="$UNFOUND_DIRS $HOME_DIR"
done < /etc/passwd
IFS=$OLDIFS
if test "$UNFOUND" = true ; then
echo There are home directories defined, which are not present.
echo Unfound: $UNFOUND_DIRS
exit 1
fi
#
# now check, if all files of aaa_base have a directory in this package
#
NON_EXISTING_DIR=
for FILE in `rpm -ql aaa_base` ; do
test -d $FILE && continue
case $FILE in
/sbin/init.d*|/usr/share/doc/support/*|/lib/mkinitrd/scripts/*)
continue
;;
/usr/share/doc/packages/aaa_base/*|/usr/share/licenses/aaa_base/*|/lib/aaa_base/*|/usr/lib/base-scripts/*)
continue
;;
esac
test -d $RPM_BUILD_ROOT/`dirname $FILE` || {
echo `dirname $FILE` for $FILE is not in filesystem.
NON_EXISTING_DIR="$NON_EXISTING_DIR `dirname $FILE`"
}
done
test -n "$NON_EXISTING_DIR" && {
echo NON_EXISTING_DIR=$NON_EXISTING_DIR
exit 1
}
install -m 0644 fs-tmp.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-tmp.conf
install -m 0644 fs-var.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-var.conf
install -m 0644 fs-var-tmp.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/fs-var-tmp.conf
%pretrans -p <lua>
os.remove ("/usr/include/X11")
os.remove ("/usr/lib/X11")
if not posix.readlink("/var/run") then
os.rename("/var/run","/var/run.rpmsave.tmpx")
end
if not posix.readlink("/var/lock") then
os.rename("/var/lock","/var/lock.rpmsave.tmpx")
end
if not posix.stat("/var/run") then
posix.symlink("/run","/var/run")
end
if not posix.stat("/var/lock") then
posix.symlink("/run/lock","/var/lock")
end
if posix.stat("/var/run.rpmsave.tmpx") then
os.execute("mv /var/run.rpmsave.tmpx/* /var/run")
os.remove("/var/run.rpmsave.tmpx")
end
if posix.stat("/var/lock.rpmsave.tmpx") then
os.execute("mv /var/lock.rpmsave.tmpx/* /var/lock")
os.remove("/var/lock.rpmsave.tmpx")
end
posix.mkdir("/proc")
posix.chmod("/proc", 0555)
posix.mkdir("/sys")
posix.chmod("/sys", 0555)
%files -f filesystem.list
/usr/lib/tmpfiles.d/fs-tmp.conf
/usr/lib/tmpfiles.d/fs-var.conf
/usr/lib/tmpfiles.d/fs-var-tmp.conf
%changelog

4
ghost.list Normal file
View file

@ -0,0 +1,4 @@
0555 root root /proc
0555 root root /sys
1777 root root /tmp/.X11-unix
1777 root root /tmp/.ICE-unix

128
languages Normal file
View file

@ -0,0 +1,128 @@
ar
as
ast
be
be@latin
bg
bn
bn_IN
ca
ca@valencia
cs
cs_CZ
da
de
de_AT
de_CH
de_DE
dz
el
el_GR
en
en@IPA
en@boldquot
en@quot
en@shaw
en_AU
en_CA
en_GB
en_NZ
en_US
eo
es
es_AR
es_CL
es_CO
es_CR
es_DO
es_EC
es_ES
es_GT
es_HN
es_MX
es_NI
es_PA
es_PE
es_PR
es_SV
es_UY
es_VE
et
et_EE
eu
fa
fi
fi_FI
fr
fr_CA
fr_CH
fr_FR
ga
gl
gu
he
hi
hr
hu
ia
id
is
it
it_CH
it_IT
ja
ja_JP.EUC
ja_JP.SJIS
ja_JP.eucJP
kk
km
kn
ko
lt
lv
mai
mk
ml
mr
nb
nb_NO
nds
nds_DE
ne
nl
nl_BE
nn
nn_NO
or
pa
pl
pl_PL
pt
pt_BR
pt_PT
ro
ru
ru_RU
ru_UA.koi8u
sk
sl
sl_SI
sq
sr
sr@ije
sr@latin
sv
ta
te
th
tr
tr_TR
ug
uk
uk_UA
vi
wa
zh
zh_CN
zh_HK
zh_TW

21
languages.man Normal file
View file

@ -0,0 +1,21 @@
ca
cs
da
de
el
eo
es
fr
hu
it
ja
nl
pl
pt
pt_BR
ru
sk
sv
zh
zh_CN
zh_TW