summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
Commit message (Expand)AuthorAgeFilesLines
* add functions to_devfs and from_devfs. These only work for devices entriesPascal Rigaux2002-07-191-0/+35
* use c::total_sectors() instead of BLKGETSIZEPascal Rigaux2002-07-071-2/+3
* (find_free_loop): fixPascal Rigaux2002-03-061-6/+4
* (devices::make): following a good advice from Andrej Borsenkow, return thePascal Rigaux2002-02-231-1/+3
* devices::make doesn't mknod with devfsPascal Rigaux2002-02-231-0/+5
* add atibm (thanks to Robin Pollard)Pascal Rigaux2002-02-221-0/+1
* i prefer /(.*?)(\d+)$/ to /(.*\D)(\d+)$/Pascal Rigaux2002-02-121-1/+1
* Fixes on device auto-detection:Till Kamppeter2002-02-121-1/+1
* encrypted filesystem handling:Pascal Rigaux2002-01-151-7/+28
* return value at end of moduleDaouda Lo2001-10-271-3/+2
* ataraid devices supportPascal Rigaux2001-10-021-0/+5
* (make): ensure it never returns a non-absolute namePascal Rigaux2001-09-161-2/+2
* fix mtab reading and pseudo-device usePascal Rigaux2001-09-031-1/+1
* remove fd0H1440 and fd1H1440Pascal Rigaux2001-08-291-2/+0
* add number-only device-name handling (eg: "801" is "sda1")Pascal Rigaux2001-08-141-1/+4
* add /dev/hd[mt] handlingPascal Rigaux2001-08-131-0/+4
* move to MDK::Common, bool->to_boolPascal Rigaux2001-07-241-1/+1
* added input/event class of devices (necessary for usb wacom at install)Francois Pons2001-04-101-9/+10
* (entry): add hd[ijkl]*Pascal Rigaux2001-04-091-0/+2
* * perl-install/devices.pm - add adbmouseStew Benedict2001-03-071-0/+1
* (make): better caller in errorPascal Rigaux2001-03-031-1/+2
* add handling for cciss (compaq smart array alike)Pascal Rigaux2001-03-011-3/+3
* (entry): add fd0H1440 and fd1H1440Pascal Rigaux2001-02-271-0/+2
* no_commentPascal Rigaux2000-09-141-1/+1
* no_commentPascal Rigaux2000-08-181-1/+1
* no_commentPascal Rigaux2000-08-061-3/+1
* no_commentPascal Rigaux2000-08-061-1/+2
* no_commentPascal Rigaux2000-05-091-2/+2
* no_commentPascal Rigaux2000-05-091-3/+3
* no_commentPascal Rigaux2000-05-071-2/+2
* *** empty log message ***Francois Pons2000-05-051-0/+1
* no_commentPascal Rigaux2000-05-041-1/+2
* no_commentPascal Rigaux2000-04-171-10/+18
* *** empty log message ***Francois Pons2000-03-311-0/+1
* no_commentPascal Rigaux2000-03-111-2/+3
* *** empty log message ***Francois Pons2000-03-101-1/+1
* no_commentPascal Rigaux2000-03-091-0/+13
* no_commentPascal Rigaux2000-02-271-5/+2
* no_commentPascal Rigaux2000-01-241-1/+1
* *** empty log message ***Francois Pons2000-01-071-2/+5
* no_commentPascal Rigaux1999-11-071-6/+5
* no_commentPascal Rigaux1999-11-071-1/+4
* *** empty log message ***Francois Pons1999-11-061-0/+1
* no_commentPascal Rigaux1999-11-021-0/+4
* *** empty log message ***Francois Pons1999-10-291-1/+1
* no_commentPascal Rigaux1999-10-281-15/+15
* no_commentPascal Rigaux1999-10-251-0/+1
* no_commentPascal Rigaux1999-09-191-6/+6
* no_commentPascal Rigaux1999-09-131-1/+1
* no_commentPascal Rigaux1999-09-091-5/+5
CH/$(ARCH)/g ; s/PERL_VERSION/$$version/g ; s|/LIB/|/$(LIB)/|g " | \ perl -lpe '@l = glob; !m|\*.*/| || @l == 1 and $$_ = join("\n", @l)' > /tmp/list rpm -ql perl-Gtk2 perl-Glib | grep '^/usr/lib/perl5' | grep -v '\.pod$$' >> /tmp/list @missing=`perl -lne 'print if !-e $$_' /tmp/list`; [ -z "$$missing" ] || { echo "missing or multiple files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$missing" ; echo "missing or multiple files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; } find auto -follow -name "*.so" >> /tmp/list for i in $(LOCALFILES) `cat /tmp/list` ; do \ ldd $$i 2>/dev/null | grep "=>" | perl -pe 's/.*=> //; s/ .*//; s,^/lib/.*?/,/lib/,' | sort | uniq >> /tmp/list; \ done perl -Mlang -I. -e 'print "$$_\n" foreach lang::console_font_files()' >> /tmp/list install -d $(DEST)/etc install -d $(DEST)/etc/sysconfig/network-scripts install -d $(DEST)/lib install -d $(DEST)/$(LIB) install -d $(DEST)/bin install -d $(DEST)/usr/bin install -d $(DEST)/usr/lib install -d $(DEST)/usr/$(LIB) install -d $(DEST)/usr/share install -d $(DEST)/usr/share/gtk install -d $(DEST)/usr/share/xmodmap install -d $(DEST)/usr/X11R6/lib/X11 install -d $(ROOTDEST)/Mandrake/base install -s $(LOCALFILES) $(DEST)/usr/bin # cp -f $(LOCALFILES2) $(DEST)/usr/bin ln -s ../X11R6/lib/X11 $(DEST)/usr/lib/X11 ifeq (sparc,$(ARCH)) cp -a /usr/X11R6/lib/X11/xkb $(DEST)/usr/X11R6/lib/X11 rm -f $(DEST)/usr/X11R6/lib/X11/xkb/compiled ln -s /tmp $(DEST)/usr/X11R6/lib/X11/xkb/compiled ln -s /usr/X11R6/lib/X11/xkb/xkbcomp $(DEST)/usr/bin/xkbcomp endif ifeq (i386,$(ARCH)) install -s /sbin/cardmgr $(DEST)/usr/bin endif for i in `cat /tmp/list`; do \ if (echo $$i | grep -q "lib/[^/]*\.so"); then \ install -s $$i $(DEST)/lib; \ elif (echo $$i | grep -q "lib64/[^/]*\.so"); then \ install -s $$i $(DEST)/lib64; \ else \ d=$$i; \ (echo $$d | grep -q "^[^/]") && d="$(REP4PMS)/$$d"; \ d=`echo $(DEST)/$$d | sed 's/\/usr\/local\//\/usr\//'`; \ install -d `dirname $$d` && \ if (echo $$i | grep -q "\.pm"); then \ perl -pe '$$_ =~ /^__END__/ and exit(0);' $$i > $$d; \ elif (echo $$i | grep -q "\.so"); then \ install -s $$i $$d; \ else \ cp -f $$i $$d; \ fi; \ fi; \ done perl -pi -e 's/\s*use\s+(warnings|diagnostics|strict|vars|warnings).*//g' $(DEST)/usr/*/*/*/utf8_heavy.pl mv -f $(DEST)/bin/* $(DEST)/sbin/* $(DEST)/usr/bin cd $(DEST)/usr/bin ; mv insmod insmod_ rmdir $(DEST)/bin $(DEST)/sbin perl -ane 'symlink "$$F[1]", "$(DEST)/usr/bin/$$F[0]"' share/aliases ifeq (i386,$(ARCH)) cp ../tools/i386/busybox $(DEST)/usr/bin endif ifeq (x86_64,$(ARCH)) cp ../tools/x86_64/busybox $(DEST)/usr/bin/ endif ifeq (ia64,$(ARCH)) ln -sf bash $(DEST)/usr/bin/sh else ln -sf ash $(DEST)/usr/bin/sh endif for i in fonts keyboards locales keymaps; do tar xfj `../tools/specific_arch share/$$i.tar.bz2` -C $(DEST); done grep ChangeLog CVS/Entries > $(DEST)/usr/share/VERSION gzip -9f $(DEST)/usr/share/ldetect-lst/* cd share ; cp -a consolefonts devices symlinks $(DEST)/usr/share -cd share ; cp -f *.png $(DEST)/usr/share -cd pixmaps ; cp -af *.png *.xpm langs $(DEST)/usr/share ; rm -f $(DEST)/usr/share/wiz_* unneeded=`perl -I. -Mlang -e 'lang::get_unneeded_png_lang_files'`; cd $(DEST)/usr/share; rm -f $$unneeded cd share ; cp compssUsers compssUsers.* rpmsrate $(ROOTDEST)/Mandrake/base clean-rpmsrate $(ROOTDEST)/Mandrake/base/rpmsrate $(ROOTDEST)/Mandrake/RPMS* for i in ../kernel/modules.description ../kernel/all.modules/modules.cz*; do cp -f $$i $(DEST)/lib/; done $(MAKE) -C share/po install SUDO= NAME=libDrakX LOCALEDIR=$(DEST)/usr/share/locale_special # ar and fa are disabled as arabic font doesn't work on install # ga and sl are disabled because too few messages are translated rm -rf $(DEST)/usr/share/locale_special/{ar,fa,ga,sl} ifeq (i386,$(ARCH)) cp -a /etc/pcmcia $(DEST)/etc ../tools/patch_pcmcia_config.pl $(DEST)/etc/pcmcia/config ../kernel/all.modules/`cat ../kernel/all.kernels/.main`/modules.dep endif cp -f $(STAGE1)/init-stage2 $(DEST)/usr/bin/init find $(DEST) -name CVS | xargs rm -rf full_stage2: $(MAKE) stage2 $(ROOTDEST)/misc/make_mdkinst_stage2 $(DEST) $(ROOTDEST)/Mandrake/base/mdkinst_stage2 stage2: if [ `id -u` = 0 ]; then rm -rf $(DEST); else $(SUDO) rm -rf $(DEST); fi mkdir -p $(DEST) $(MAKE) get_needed_files $(MAKE) install_pms find $(DEST)/usr -name "*.pm" | xargs gzip -9f cd $(DEST)/usr/lib/perl5 ; gunzip 5.*/{PerlIO,Exporter}.pm.gz 5.*/*-linux-thread-multi/{XSLoader,lib}.pm.gz vendor_perl/*/*-linux-thread-multi/PerlIO/gzip.pm.gz # rules to build a test rpm localrpm: localdist buildrpm localsrpm: spec_test localdist buildsrpm srpm: spec_test cvstag localsrpm localdist: cleandist localcopy tar cleandist: rm -rf ../$(PACKAGE)-$(PKGVERSION) ../$(PACKAGE)-$(PKGVERSION).tar.bz2 spec_test: @if [[ -z "$(PKGVERSION)" ]]; then echo "unable to get spec version"; exit 3;fi @if [[ -z "$(RELEASE)" ]]; then echo "unable to get spec release"; exit 2;fi tar: cd ../$(PACKAGE)-$(PKGVERSION) && perl -pi -e 's/^C_RPM.*/C_RPM=0/; s/^C_DRAKX.*/C_DRAKX=0/' c/Makefile cd ../$(PACKAGE)-$(PKGVERSION) && perl -pi -e 's/^all: help/all:/' share/po/Makefile cd ../$(PACKAGE)-$(PKGVERSION) && rm -rf install* pkgs.pm help.pm ftp.pm http.pm crypto.pm t.pm debug.log `find -name CVS` cd ../$(PACKAGE)-$(PKGVERSION) && mv -f Makefile.drakxtools Makefile cd ../$(PACKAGE)-$(PKGVERSION) && rm -f list_modules.pm && cp -f ../kernel/list_modules.pm . cd ..; tar cfj $(PACKAGE)-$(PKGVERSION).tar.bz2 $(patsubst %,$(PACKAGE)-$(PKGVERSION)/%,$(DISTFILES)) cd ..; rm -rf $(PACKAGE)-$(PKGVERSION) buildrpm: rpm -ta ../$(PACKAGE)-$(PKGVERSION).tar.bz2 buildsrpm: rpm -ts --nodeps ../$(PACKAGE)-$(PKGVERSION).tar.bz2 # rules to build a distributable rpm rpm: cvstag dist buildrpm slowsrpm: spec_test cvstag dist buildsrpm dist: cleandist export tar export: cd ..; cvs export -d $(PACKAGE)-$(PKGVERSION) -r $(TAG) $(PACKAGE) cd ../$(PACKAGE)-$(PKGVERSION) && rm -rf $(OTHERDIRS) && set -x && for f in $(OTHERDIRS); do cvs -d `cat ../CVS/Root` export -r $(TAG) -d `basename $$f` gi/$$f; done cd ..; set -x && for f in $(OTHERFILES); do cvs -d `cat ../CVS/Root` export -r $(TAG) -d $(PACKAGE)-$(PKGVERSION) gi/$$f; done @make nuke_perl cvstag: cvs tag $(CVSTAGOPT) $(TAG) cd ..; cvs tag $(CVSTAGOPT) $(TAG) $(OTHERS) nuke_perl: find ../$(PACKAGE)-$(PKGVERSION) -name '*.pm' | xargs perl -pi -e 's/\s*use\s+(diagnostics|strict|vars|warnings).*//g' find ../$(PACKAGE)-$(PKGVERSION)/standalone -type f | xargs perl -pi -e 's/\s*use\s+(diagnostics|strict|vars|warnings).*//g' dont_run_directly_stage2: rm -f $(DEST)/usr/bin/runinstall2 echo -e '#!/bin/sh\n\nexec /usr/bin/busybox sh' > $(DEST)/usr/bin/runinstall2 chmod a+x $(DEST)/usr/bin/runinstall2