def install(): autotools.rawInstall("-f client.mk DESTDIR=%s" % get.installDIR()) # Any reason to do this renaming ? pisitools.rename("/usr/lib/%s-%s" % (get.srcNAME(), get.srcVERSION()), "MozillaFirefox") pisitools.remove("/usr/bin/firefox") # new Additional File will replace that #install locales for locale in locales: pisitools.insinto("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]" % locale, "%s/dist/xpi-stage/locale-%s/*" % (ObjDir, locale), sym=False) pisitools.removeDir("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/defaults" % locale) pisitools.remove("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale)) pisitools.dosym("../../../../../../browserconfig.properties", "/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale)) pisitools.dodir("/usr/lib/MozillaFirefox/dictionaries") shelltools.touch("%s%s/dictionaries/tr-TR.aff" % (get.installDIR(), "/usr/lib/MozillaFirefox")) shelltools.touch("%s%s/dictionaries/tr-TR.dic" % (get.installDIR(), "/usr/lib/MozillaFirefox")) # Install fix language packs pisitools.insinto("/usr/lib/MozillaFirefox/extensions", "./fixlang-ff/*") # Create profile dir, we'll copy bookmarks.html in post-install script pisitools.dodir("/usr/lib/MozillaFirefox/defaults/profile") # Install branding icon pisitools.insinto("/usr/share/pixmaps", "browser/branding/official/default256.png", "firefox.png") # Install docs pisitools.dodoc("LEGAL", "LICENSE")
def setup(): options = "--disable-dependency-tracking \ --disable-static \ --enable-gif \ --enable-jpg \ --enable-tif \ --enable-png \ --enable-pnm \ --enable-bmp \ --enable-xcf \ --enable-xpm \ --enable-tga \ --enable-lbm \ --enable-pcx \ --disable-jpg-shared \ --disable-png-shared \ --disable-tif-shared" if get.buildTYPE() == "emul32": options += " --includedir=/usr/include \ --libdir=/usr/lib32" shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) for i in ["NEWS", "AUTHORS", "ChangeLog"]: shelltools.touch(i) autotools.autoreconf("-vfi") autotools.configure(options)
def install(): autotools.rawInstall("-f client.mk DESTDIR=%s" % get.installDIR()) # Any reason to do this renaming ? # realdir = shelltools.ls("%s/usr/lib/firefox-?.?.?" % get.installDIR())[0].replace(get.installDIR(), "") # realdir = shelltools.ls("%s/usr/lib/firefox-?.?" % get.installDIR())[0].replace(get.installDIR(), "") # pisitools.rename(realdir, "MozillaFirefox") pisitools.rename("/usr/lib/firefox-20.0", "MozillaFirefox") pisitools.remove("/usr/bin/firefox") # Additional file will replace that #install locales #for locale in locales: # pisitools.copytree("dist/xpi-stage/locale-%s" % locale, "%s/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]" % (get.installDIR(), locale)) # pisitools.removeDir("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/defaults" % locale) # pisitools.remove("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale)) # pisitools.dosym("../../../../../../browserconfig.properties", "/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale)) pisitools.dodir("/usr/lib/MozillaFirefox/dictionaries") shelltools.touch("%s%s/dictionaries/tr-TR.aff" % (get.installDIR(), "/usr/lib/MozillaFirefox")) shelltools.touch("%s%s/dictionaries/tr-TR.dic" % (get.installDIR(), "/usr/lib/MozillaFirefox")) # Create profile dir, we'll copy bookmarks.html in post-install script pisitools.dodir("/usr/lib/MozillaFirefox/defaults/profile") # Install branding icon pisitools.insinto("/usr/share/pixmaps", "browser/branding/official/default256.png", "firefox.png") # Install docs pisitools.dodoc("LEGAL", "LICENSE")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodir("/etc/pango") shelltools.touch(get.installDIR() +"/etc/pango/pango.modules") pisitools.dodoc("AUTHORS", "ChangeLog*", "COPYING", "README", "NEWS")
def setup(): pisitools.dosed("drivers.c", "RTCM2_PACKET;", "RTCM2_PACKET,") shelltools.touch("%s/ChangeLog" % get.curDIR()) autotools.autoreconf("-fi") autotools.configure("--disable-static \ --enable-dbus")
def install(): kerneltools.install() # add objtool for external module building and enabled VALIDATION_STACK option pisitools.insinto("/usr/src/linux-headers-%s/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR()) # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config pisitools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" + 'ALL_config="/etc/mkinitcpio.conf"\n'+ 'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() + "PRESETS=('default' 'fallback') \n\n" + '#default_config="/etc/mkinitcpio.conf"\n' + 'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() + '#default_options=""\n\n' + '#fallback_config="/etc/mkinitcpio.conf"\n'+ 'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() + 'fallback_options="-S autodetect"\n') pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
def setup(): shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS()) for i in ["NEWS", "AUTHORS", "COPYING"]: shelltools.touch(i) autotools.autoreconf("-fi") autotools.configure("--disable-static --prefix=/opt/enet12")
def setup(): shelltools.touch("%s/ChangeLog" % get.curDIR()) autotools.autoreconf("-fi") autotools.configure("--disable-static \ --disable-libQgpsmm \ --enable-dbus")
def install(): for datas in ["*.php", "cacti.sql"]: pisitools.insinto(dataDir, datas) pisitools.insinto(logDir, "log/*") for libs in ["rra", "scripts", "cli"]: pisitools.insinto(libDir, libs) for d in siteDirs: pisitools.insinto(dataDir, d) pisitools.domove("%s/include/config.php" % dataDir, confDir, confFile) for data in ["poller", "cmd"]: shelltools.chmod("%s%s/%s.php" % (get.installDIR(), dataDir, data), 0755) shelltools.touch("%s/%s/poller.log" % (get.installDIR(), logDir)) pisitools.dosym("%s/%s" % (confDir, confFile), "%s/include/config.php" % dataDir) pisitools.dosym("%s/rra" % libDir, "%s/rra" % dataDir) pisitools.dosym("%s/scripts" % libDir, "%s/scripts" % dataDir) pisitools.dosym("%s/cli" % libDir, "%s/cli" % dataDir) pisitools.dosym(logDir, "%s/log" % dataDir) pisitools.dosym("%s/lib" % dataDir, "%s/lib" % libDir) pisitools.dosym("%s/include" % dataDir, "%s/include" % libDir) pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "docs/*") for f in unnecFiles: pisitools.remove("%s/%s/html/%s" % (get.docDIR(), get.srcNAME(), f))
def install(): pisitools.insinto("/usr/lib/", "dist/bin", "MozillaFirefox", sym=False) pisitools.insinto("/usr/lib/MozillaFirefox", "dist/include/", "include", sym=False) pisitools.insinto("/usr/lib/MozillaFirefox", "dist/idl/", "idl", sym=False) # Ldap headers pisitools.insinto("/usr/lib/MozillaFirefox/include", "dist/public/ldap/", "ldap", sym=False) pisitools.insinto("/usr/lib/MozillaFirefox/include", "dist/public/ldap-private", "ldap-private", sym=False) # Dirty hack to get some applications using this header running pisitools.dosym("/usr/lib/MozillaFirefox/include/necko/nsIURI.h", \ "/usr/lib/MozillaFirefox/include/nsIURI.h") # Remove bookmarks pisitools.remove("/usr/lib/MozillaFirefox/defaults/profile/bookmarks.html") # Firefox is piece of crap too pisitools.dodir("/usr/lib/MozillaFirefox/dictionaries") shelltools.touch("%s/usr/lib/MozillaFirefox/dictionaries/tr-TR.aff" % get.installDIR()) shelltools.touch("%s/usr/lib/MozillaFirefox/dictionaries/tr-TR.dic" % get.installDIR()) # Remove these pisitools.remove("/usr/lib/MozillaFirefox/defaults/profile/mimeTypes.rdf") pisitools.remove("/usr/lib/MozillaFirefox/defaults/profile/bookmarks.html") # Install docs pisitools.dodoc("LEGAL", "LICENSE")
def setup(): # Fix all linkage problems :((( shelltools.export("CC", "gcc") # Change LT_VERSION to our version pisitools.dosed("libtool.m4", "@_LT_VERSION@", get.srcVERSION()) # Fetching revision info (same as "dateinfo = srcDIR/.mkstamp < srcDIR/ChangeLog") revinfo = (coreutils.cat("ChangeLog") | coreutils.grep("\s\$Revision") | coreutils.join).split() dateinfo = " (%s %s %s)" % (revinfo[1], revinfo[4], revinfo[5]) shelltools.copy("ltmain.in", "ltmain.shT") pisitools.dosed("ltmain.shT", "@VERSION@", get.srcVERSION()) pisitools.dosed("ltmain.shT", "@PACKAGE@", get.srcNAME()) pisitools.dosed("ltmain.shT", "@TIMESTAMP@", dateinfo) shelltools.move("ltmain.shT", "ltmain.sh") # Now let's run all our autotool stuff so that files we patch # below don't get regenerated on us later # Two steps just to be *really* sure :) shelltools.copy("libtool.m4", "acinclude.m4T") shelltools.move("acinclude.m4T", "acinclude.m4") for d in [".", "libltdl"]: shelltools.cd(d) shelltools.touch("acinclude.m4") autotools.aclocal() autotools.automake("-c -a") autotools.autoconf() shelltools.cd("../") autotools.configure("--enable-static=no")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # will be created by postInstall script pisitools.remove("/etc/suspend.conf") shelltools.touch("%s/etc/suspend.key" % get.installDIR())
def install(): kerneltools.install() # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config pisitools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo("linux.preset", 'ALL_config="/etc/mkinitcpio.conf"\n'+ 'ALL_kver="/boot/kernel-%s"\n'% get.srcVERSION() + 'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() + 'default_options="-S autodetect"\n') pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
def install(): pisitools.dodir("/etc") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # pisitools.removeDir("/dev") shelltools.touch("%s/etc/suspend.key" % get.installDIR())
def setup(): for filename in ["README", "NEWS", "AUTHORS"]: filename = shelltools.join_path(get.workDIR(), WorkDir, filename) shelltools.touch(filename) autotools.autoreconf("-fi") autotools.configure("--enable-static=no")
def setup(): shelltools.touch("README") libtools.libtoolize("--force --copy") autotools.autoreconf("-fi") autotools.configure("--disable-static \ --disable-gnutls \ --disable-rpath")
def install(): cmaketools.install("DESTDIR=%s" % get.installDIR()) # Remove libmysqld.a pisitools.remove("/usr/lib/mysql/libmysqld.a") # install shared object libmysqld.so.0.0.1 and create a symlink pisitools.dolib("libmysqld/work/libmysqld.so.0.0.1", "/usr/lib/mysql") pisitools.dosym("libmysqld.so.0.0.1", "/usr/lib/mysql/libmysqld.so.0") pisitools.dosym("/usr/lib/mysql/libmysqld.so.0", "/usr/lib/mysql/libmysqld.so") ############## # From Fedora: libmysqlclient_r is no more. Upstream tries to replace it # with symlinks but that really doesn't work (wrong soname in particular). # We'll keep just the devel libmysqlclient_r.so link, so that rebuilding # without any source change is enough to get rid of dependency on # libmysqlclient_r. pisitools.remove("/usr/lib/mysql/libmysqlclient_r.so*") pisitools.dosym("/usr/lib/mysql/libmysqlclient.so", "/usr/lib/mysql/libmysqlclient_r.so") # Remove meaningless directories and static libraries pisitools.removeDir("/usr/data") pisitools.removeDir("/usr/docs") pisitools.remove("/usr/lib/mysql/libmysqlclient.a") pisitools.remove("/usr/lib/mysql/libmysqlclient_r.a") pisitools.remove("/usr/lib/mysql/libmysqlservices.a") # Extra headers pisitools.insinto("/usr/include/mysql", "include/my_config.h") pisitools.insinto("/usr/include/mysql", "include/my_dir.h") # Links pisitools.dosym("mysqlcheck", "/usr/bin/mysqlanalyze") pisitools.dosym("mysqlcheck", "/usr/bin/mysqlrepair") pisitools.dosym("mysqlcheck", "/usr/bin/mysqloptimize") # Config shelltools.chmod("scripts/mysqlaccess.conf", 0644) pisitools.insinto("/etc/mysql", "scripts/mysqlaccess.conf") # Remove x bit from ini files shelltools.chmod("%s/usr/share/mysql/*.ini" % (get.installDIR()), 0644) # Data dir pisitools.dodir("/var/lib/mysql") # Logs pisitools.dodir("/var/log/mysql") shelltools.touch("%s/var/log/mysql/mysql.log" % get.installDIR()) shelltools.touch("%s/var/log/mysql/mysql.err" % get.installDIR()) pisitools.dodir("/var/lib/mysql/innodb") # Runtime data pisitools.dodir("/var/run/mysqld") # Documents pisitools.dodoc("README", "COPYING") pisitools.dodoc("support-files/my-*.cnf")
def setup(): shelltools.export("WANT_AUTOCONF", "2.5") shelltools.export("WANT_AUTOMAKE", "1.9") pisitools.dosed("libtool.m4", "@_LT_VERSION@", get.srcVERSION()) #Â Fetching revision info (same as "dateinfo = srcDIR/.mkstamp < srcDIR/ChangeLog") revinfo = (coreutils.cat("ChangeLog") | coreutils.grep("\s\$Revision") | coreutils.join).split() dateinfo = " (%s %s %s)" % (revinfo[1], revinfo[4], revinfo[5]) shelltools.copy("ltmain.in", "ltmain.shT") pisitools.dosed("ltmain.shT", "@VERSION@", get.srcVERSION()) pisitools.dosed("ltmain.shT", "@PACKAGE@", get.srcNAME()) pisitools.dosed("ltmain.shT", "@TIMESTAMP@", dateinfo) shelltools.move("ltmain.shT", "ltmain.sh") #Two steps just to be *really* sure :) shelltools.copy("libtool.m4", "acinclude.m4T") shelltools.move("acinclude.m4T", "acinclude.m4") shelltools.touch("libltdl/acinclude.m4") for d in [".", "libltdl"]: shelltools.cd(d) shelltools.touch("acinclude.m4") autotools.aclocal() autotools.automake("-c -a") autotools.autoconf() shelltools.cd("..") autotools.configure()
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodir("/etc/dhcp") pisitools.dodir("/var/run/dhcp") shelltools.touch("%s/var/lib/dhcp/dhcpd.leases" % get.installDIR()) shelltools.unlinkDir("doc/ja_JP.eucJP/") pisitools.dodoc("README", "RELNOTES", "doc/*")
def install(): pisitools.insinto("/usr/lib/", "mozilla/dist/bin", "MozillaThunderbird", sym=False) # Install language packs #for locale in locales: #pisitools.copytree("mozilla/dist/xpi-stage/locale-%s" % locale, "%s/usr/lib/MozillaThunderbird/extensions/langpack-%[email protected]" % (get.installDIR(), locale)) #install_enigmail() # Install default-prefs.js pisitools.insinto("%s/defaults/pref" % MOZAPPDIR, ".pardus-default-prefs.js", "all-pardus.js") # Empty fake files to get Turkish spell check support working pisitools.dodir("%s/extensions/[email protected]/dictionaries" % MOZAPPDIR) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.aff" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.dic" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) pisitools.removeDir("%s/dictionaries" % MOZAPPDIR) pisitools.dosym("/usr/share/hunspell", "%s/dictionaries" % MOZAPPDIR) # Remove useless file pisitools.remove("/usr/lib/MozillaThunderbird/.purgecaches") # Remove this to avoid spellchecking dictionary detection problems pisitools.remove("/usr/lib/MozillaThunderbird/defaults/pref/all-l10n.js") # Install icons pisitools.insinto("/usr/share/pixmaps", "other-licenses/branding/thunderbird/mailicon256.png", "thunderbird.png") pisitools.insinto("%s/icons" % MOZAPPDIR, "other-licenses/branding/thunderbird/mailicon16.png") for s in (16, 22, 24, 32, 48, 256): pisitools.insinto("/usr/share/icons/hicolor/%dx%d/apps" % (s,s), "other-licenses/branding/thunderbird/mailicon%d.png" % s, "thunderbird.png") # Install docs pisitools.dodoc("mozilla/LEGAL", "mozilla/LICENSE")
def setup(): shelltools.system("sed -i '39d' Makefile") shelltools.system("sed -i '1s| src/windows||g' Makefile") shelltools.system("sed -i '2 a\ CXXFLAGS := -static-libgcc -static-libstdc++ $(CXXFLAGS)' src/windows/Makefile") shelltools.touch("configure.in") autotools.autoreconf("-fi") autotools.configure('--prefix=/usr --wine-path=/usr/bin/wine --gcc-runtime-dlls="" --win32-static')
def install(): autotools.rawInstall("-f client.mk DESTDIR=%s" % get.installDIR()) # Install fix language packs pisitools.insinto("/usr/lib/thunderbird/extensions", "./langpack-tb/*") # Install default-prefs.js pisitools.insinto("%s/defaults/pref" % MOZAPPDIR, ".pisilinux-default-prefs.js", "all-pisilinux.js") # Empty fake files to get Turkish spell check support working pisitools.dodir("%s/extensions/[email protected]/dictionaries" % MOZAPPDIR) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.aff" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.dic" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) # Install icons pisitools.insinto("/usr/share/pixmaps", "other-licenses/branding/thunderbird/mailicon256.png", "thunderbird.png") pisitools.insinto("%s/icons" % MOZAPPDIR, "other-licenses/branding/thunderbird/mailicon16.png") for s in (16, 22, 24, 32, 48, 256): pisitools.insinto("/usr/share/icons/hicolor/%dx%d/apps" % (s,s), "other-licenses/branding/thunderbird/mailicon%d.png" % s, "thunderbird.png") # We don't want the development stuff pisitools.removeDir("/usr/lib/thunderbird-devel*") pisitools.removeDir("/usr/share/idl") pisitools.removeDir("/usr/include") # Install docs pisitools.dodoc("mozilla/LEGAL", "mozilla/LICENSE")
def setup(): for i in ["NEWS", "ChangeLog"]: shelltools.touch(i) autotools.autoreconf("-vfi") autotools.configure("--enable-mmx \ --disable-static \ --enable-sse")
def setup(): shelltools.system("sed -i '39d' Makefile") shelltools.system("sed -i '1s| src/windows||g' Makefile") shelltools.system("sed -i '2 a\ CXXFLAGS := -static-libgcc -static-libstdc++ $(CXXFLAGS)' src/windows/Makefile") shelltools.touch("configure.in") autotools.autoreconf("-fi") autotools.configure("--prefix=/usr --wine-path=/usr/bin/wine --win32-static") shelltools.system("tar xfvz pluginloader-prebuilt-v0.2.3.tar.xz")
def setup(): shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS()) for i in ["NEWS", "AUTHORS", "COPYING"]: shelltools.touch(i) autotools.autoreconf("-vfi") autotools.configure("--disable-dependency-tracking \ --disable-static")
def setup(): for f in ["AUTHORS", "ChangeLog", "NEWS"]: shelltools.touch(f) autotools.autoreconf("-fi") libtools.libtoolize() autotools.configure("--disable-static")
def build(): shelltools.export("FAST", "1") # Compile fix for stupid xorg's gcc.2.95 dependency shelltools.touch("programs/Xserver/hw/dmx/doc/dmx") shelltools.touch("programs/Xserver/hw/dmx/doc/dmx.ps") autotools.make('-j1 World WORLDOPTS="" MAKE="make"')
def setup(): for fl in ["NEWS", "AUTHORS", "ChangeLog"]: shelltools.touch(fl) autotools.autoreconf("-fi -Im4") libtools.libtoolize("--force --install") autotools.configure("--disable-debugging \ --disable-static")
def setup(): # getting ready for autoreconf for f in ["NEWS", "ChangeLog", "AUTHORS"]: shelltools.touch(f) shelltools.move("sq/sq.c", "sq/sq.cpp") autotools.autoreconf("-vif") autotools.configure("--disable-static")
def setup(): shelltools.export("LDFLAGS", "%s -lpthread" % get.LDFLAGS()) for files in ("AUTHORS", "NEWS", "README"): shelltools.touch(files) autotools.autoreconf("-fi") autotools.configure("--disable-static")
def setup(): # libmpeg2 comes with a52 but its quiet old, so we link against the system... shelltools.unlink("Makefile.a52") shelltools.touch("Makefile.a52") shelltools.unlinkDir("a52dec-0.7.3/") shelltools.makedirs("a52dec-0.7.3") shelltools.sym("/usr/include/a52dec", "a52dec-0.7.3/include") pisitools.dosed("Makefile", "LIBS = -lm -lpthread", "LIBS = -lm -lpthread -L/usr/lib -la52")
def setup(): for f in ["NEWS", "README", "AUTHORS"]: shelltools.touch(f) autotools.autoreconf("-fi") autotools.configure("--disable-examples \ --enable-ctrl \ --enable-platform \ --enable-freetype \ --enable-gpc \ --enable-static=no")
def setup(): shelltools.unlink("py-compile" ) shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR()) autotools.configure("--enable-thread \ --disable-docs") shelltools.touch("%s/style.css" % get.curDIR()) pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR()) pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def setup(): shelltools.touch("GNUstep.conf") shelltools.echo("GNUstep.conf", "GNUSTEP_USER_DIR=%s" % get.workDIR()) shelltools.echo("GNUstep.conf", "GNUSTEP_USER_DEFAULTS_DIR=%s/Defaults" % get.workDIR()) autotools.autoreconf("-vfi") autotools.configure("--enable-ffcall \ --enable-gnutls \ --enable-tls \ --enable-zeroconf \ --with-default-config=%s/GNUstep.conf" % WorkPath)
def build(): # Ugly hack but in order to embed splash-theme into kernel we have to make twice (second one just recreates bzImage) autotools.make() # Embed splash-theme into kernel shelltools.system( "/usr/bin/splash_geninitramfs -v -g usr/initramfs_data.cpio.gz -r 1024x768 pardus" ) shelltools.touch("%s/usr/initramfs_data.cpio.gz" % get.curDIR()) autotools.make()
def setup(): shelltools.system("sed -i '39d' Makefile") shelltools.system("sed -i '1s| src/windows||g' Makefile") shelltools.system( "sed -i '2 a\ CXXFLAGS := -static-libgcc -static-libstdc++ $(CXXFLAGS)' src/windows/Makefile" ) shelltools.touch("configure.in") autotools.autoreconf("-fi") autotools.configure( '--prefix=/usr --wine-path=/usr/bin/wine --gcc-runtime-dlls="" --win32-static' )
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE()=="emul32": shelltools.move("pango/.libs/pango-querymodules", "pango/.libs/pango-querymodules-32") pisitools.dobin("pango/.libs/pango-querymodules-32") return pisitools.dodir("/etc/pango") shelltools.touch(get.installDIR() +"/etc/pango/pango.modules") pisitools.dodoc("AUTHORS", "ChangeLog*", "COPYING", "README", "NEWS")
def setup(): shelltools.system("sed -i '39d' Makefile") shelltools.system("sed -i '1s| src/windows||g' Makefile") shelltools.system( "sed -i '2 a\ CXXFLAGS := -static-libgcc -static-libstdc++ $(CXXFLAGS)' src/windows/Makefile" ) shelltools.touch("configure.in") autotools.autoreconf("-fi") autotools.configure( "--prefix=/usr --wine-path=/usr/bin/wine --win32-static") shelltools.system("tar xfvz pluginloader-prebuilt-v0.2.3.tar.xz")
def setup(): shelltools.touch("ChangeLog") autotools.autoreconf("-fi") autotools.configure("--prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --with-drivedbdir \ --with-libcap-ng=yes \ --with-smartdscriptdir=/usr/share/smartmontools \ --with-smartdplugindir=/usr/share/smartmontools/smartd_warning.d \ --with-systemdsystemunitdir=no")
def install(): pisitools.insinto("/usr/lib/", "mozilla/dist/bin", "MozillaThunderbird", sym=False) # Install language packs for locale in locales: pisitools.copytree( "mozilla/dist/xpi-stage/locale-%s" % locale, "%s/usr/lib/MozillaThunderbird/extensions/langpack-%[email protected]" % (get.installDIR(), locale)) #install_enigmail() # Install default-prefs.js pisitools.insinto("%s/defaults/pref" % MOZAPPDIR, ".pardus-default-prefs.js", "all-pardus.js") # Empty fake files to get Turkish spell check support working pisitools.dodir( "%s/extensions/[email protected]/dictionaries" % MOZAPPDIR) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.aff" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) shelltools.touch("%s/%s/%s/dictionaries/tr-TR.dic" % (get.installDIR(), MOZAPPDIR, "extensions/[email protected]")) pisitools.removeDir("%s/dictionaries" % MOZAPPDIR) pisitools.dosym("/usr/share/hunspell", "%s/dictionaries" % MOZAPPDIR) # Remove useless file pisitools.remove("/usr/lib/MozillaThunderbird/.purgecaches") # Remove this to avoid spellchecking dictionary detection problems pisitools.remove("/usr/lib/MozillaThunderbird/defaults/pref/all-l10n.js") # Install icons pisitools.insinto("/usr/share/pixmaps", "other-licenses/branding/thunderbird/mailicon256.png", "thunderbird.png") pisitools.insinto("%s/icons" % MOZAPPDIR, "other-licenses/branding/thunderbird/mailicon16.png") for s in (16, 22, 24, 32, 48, 256): pisitools.insinto( "/usr/share/icons/hicolor/%dx%d/apps" % (s, s), "other-licenses/branding/thunderbird/mailicon%d.png" % s, "thunderbird.png") # Install docs pisitools.dodoc("mozilla/LEGAL", "mozilla/LICENSE")
def install(): autotools.rawInstall("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR()) # Extra headers pisitools.insinto("/usr/include/mysql", "include/my_config.h") pisitools.insinto("/usr/include/mysql", "include/my_dir.h") # Links pisitools.dosym("mysqlcheck", "/usr/bin/mysqlanalyze") pisitools.dosym("mysqlcheck", "/usr/bin/mysqlrepair") pisitools.dosym("mysqlcheck", "/usr/bin/mysqloptimize") # Cleanup pisitools.remove("/usr/bin/make*distribution") pisitools.remove("/usr/share/mysql/make_*_distribution") pisitools.remove("/usr/share/mysql/mysql.server") pisitools.remove("/usr/share/mysql/binary-configur") pisitools.remove("/usr/share/mysql/mysql-log-rotate") pisitools.remove("/usr/share/mysql/postinstall") pisitools.remove("/usr/share/mysql/preinstall") pisitools.remove("/usr/share/mysql/mi_test*") pisitools.remove("/usr/share/mysql/*.spec") pisitools.remove("/usr/share/mysql/*.plist") pisitools.remove("/usr/share/mysql/my-*.cnf") # Move libs to /usr/lib pisitools.domove("/usr/lib/mysql/libmysqlclient*.so*", "/usr/lib") # Links to libs pisitools.dosym("../libmysqlclient.so", "/usr/lib/mysql/libmysqlclient.so") pisitools.dosym("../libmysqlclient_r.so", "/usr/lib/mysql/libmysqlclient_r.so") # No tests pisitools.removeDir("/usr/share/mysql/mysql-test") # Config pisitools.insinto("/etc/mysql", "scripts/mysqlaccess.conf") # Data dir pisitools.dodir("/var/lib/mysql") # Logs pisitools.dodir("/var/log/mysql") shelltools.touch("%s/var/log/mysql/mysql.log" % get.installDIR()) shelltools.touch("%s/var/log/mysql/mysql.err" % get.installDIR()) # Runtime data pisitools.dodir("/var/run/mysqld") # Documents pisitools.dodoc("README", "COPYING", "ChangeLog", "EXCEPTIONS-CLIENT", "INSTALL-SOURCE") pisitools.dodoc("Docs/manual.txt," "Docs/manual.ps") pisitools.dodoc("support-files/my-*.cnf")
def setup(): shelltools.touch("README") autotools.autoreconf("-fi") autotools.configure("--disable-static \ --disable-gnutls \ --enable-openssl \ --enable-cypher \ --enable-signature \ --disable-coverage \ --enable-old-eet-file-format \ ")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dosym("/usr/sbin/alsactl", "/sbin/alsactl") pisitools.dosym("/lib/alsa/init", "/usr/share/alsa/init") pisitools.dodir("/etc") shelltools.touch("%s/etc/asound.state" % get.installDIR()) pisitools.dodoc("ChangeLog", "README", "TODO", "seq/aconnect/README.aconnect", "seq/aseqnet/README.aseqnet")
def setup(): pisitools.removeDir("test/unit") pisitools.dosed("test/Makefile.am", " unit", "") pisitools.dosed("configure.ac", "test/unit/Makefile", "") for filename in ["README", "NEWS", "AUTHORS"]: filename = shelltools.join_path(get.workDIR(), WorkDir, filename) shelltools.touch(filename) autotools.autoreconf() libtools.libtoolize("--copy --force") autotools.configure("--enable-static=no")
def install(): pisitools.dobin("src/slocate") pisitools.newman("doc/slocate.1", "/usr/share/man/man1/slocate.1") pisitools.dodir("/var/lib/slocate") shelltools.touch("%s/var/lib/slocate/slocate.db" % get.installDIR()) pisitools.dosym("slocate", "/usr/bin/locate") pisitools.dosym("slocate", "/usr/bin/updatedb") pisitools.dosym("slocate.1.gz", "/usr/share/man/man1/locate.1.gz") pisitools.dodoc("AUTHORS", "README", "ChangeLog")
def setup(): shelltools.touch("ecryptfs.conf") shelltools.echo("ecryptfs.conf", "# ecryptfs module is needed before ecryptfs mount, so mount helper can \n# check for file name encryption support\necryptfs") autotools.autoreconf("-fiv") autotools.configure("--prefix=/usr --sbindir=/usr/bin --enable-nss --enable-pkcs11-helper --enable-tests PYTHON=python2.7") pisitools.dosed("src/desktop/ecryptfs-mount-private.desktop.in", "Type=Application", "Type=Application\nEncoding=UTF-8\nIcon=/usr/share/pixmaps/ecryptfs-mount-private.png") pisitools.dosed("src/desktop/ecryptfs-setup-private.desktop.in", "Type=Application", "Type=Application\nEncoding=UTF-8\nIcon=/usr/share/pixmaps/ecryptfs-mount-private.png") #disable rpath shelltools.system("sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool") shelltools.system("sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool")
def setup(): # Patch compressed PPDs for patch in sorted(os.listdir("ppd-patches")): shelltools.system("./patch-ppds ppd-patches/%s" % patch) for f in ("NEWS", "INSTALL", "README", "AUTHORS", "ChangeLog"): shelltools.touch(f) pisitools.dosed("Makefile.am", "^rulesdir = .*$", "rulesdir = /lib/udev/rules.d") # Migrate device ids from hpcups drv to hpijs drv shelltools.system( "./copy-deviceids prnt/drv/hpcups.drv.in prnt/drv/hpijs.drv.in > hpijs.drv.in.new" ) shelltools.move("hpijs.drv.in.new", "prnt/drv/hpijs.drv.in") # Strip duplex constraints from hpcups pisitools.dosed("prnt/drv/hpcups.drv.in", "(UIConstraints.* \*Duplex)", "//\\1") # Change python shebang shelltools.system( "find -name '*.py' -print0 | xargs -0 sed -i 's,^#!/usr/bin/env python,#!/usr/bin/python,'" ) # These are barely the defaults except: # --enable-foomatic-drv-install (default=no) (respected by Fedora, enabled by Ubuntu) autotools.autoreconf("-fi") autotools.configure("--with-cupsbackenddir=/usr/lib/cups/backend \ --with-drvdir=/usr/share/cups/drv \ --with-hpppddir=/usr/share/cups/model/hplip \ --with-docdir=/usr/share/doc/hplip \ --with-htmldir=/usr/share/doc/hplip/html \ --with-mimedir=/usr/share/cups/mime \ --with-cupsfilterdir=/usr/lib/cups/filter \ --enable-libusb01_build \ --enable-pp-build \ --enable-foomatic-ppd-install \ --disable-foomatic-drv-install \ --enable-cups-ppd-install \ --disable-cups-drv-install \ --enable-policykit \ --enable-doc-build \ --enable-new-hpcups \ --enable-udev_sysfs_rules ") # Remove hardcoded rpaths pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"") pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
def install(): cmaketools.rawInstall("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR()) # Extra headers pisitools.insinto("/usr/include/mysql", "include/my_config.h") pisitools.insinto("/usr/include/mysql", "include/my_dir.h") # Links pisitools.dosym("mysqlcheck", "/usr/bin/mysqlanalyze") pisitools.dosym("mysqlcheck", "/usr/bin/mysqlrepair") pisitools.dosym("mysqlcheck", "/usr/bin/mysqloptimize") # Cleanup pisitools.remove("/usr/share/mysql/mysql.server") pisitools.remove("/usr/share/mysql/binary-configure") pisitools.remove("/usr/share/mysql/mysql-log-rotate") pisitools.remove("/usr/share/mysql/my-*.cnf") pisitools.remove("/usr/share/mysql/config.*") #pisitools.removeDir("/usr/share/aclocal") # Move libs to /usr/lib #pisitools.domove("/usr/lib/mysql/libmysqlclient*.so*", "/usr/lib") # Links to libs pisitools.dosym("../libmysqlclient.so", "/usr/lib/mysql/libmysqlclient.so") pisitools.dosym("../libmysqlclient_r.so", "/usr/lib/mysql/libmysqlclient_r.so") # No tests, benchs pisitools.removeDir("/usr/mysql-test") pisitools.removeDir("/usr/data") pisitools.removeDir("/usr/sql-bench") # Config pisitools.insinto("/etc/mysql", "scripts/mysqlaccess.conf") # Data dir pisitools.dodir("/var/lib/mysql") # Logs pisitools.dodir("/var/log/mysql") shelltools.touch("%s/var/log/mysql/mysql.log" % get.installDIR()) shelltools.touch("%s/var/log/mysql/mysql.err" % get.installDIR()) pisitools.dodir("/var/lib/mysql/innodb") # Runtime data pisitools.dodir("/run/mysqld") # Documents pisitools.dodoc("README", "COPYING") pisitools.dodoc("support-files/my-*.cnf")
def install(): pisitools.dodoc("debian/copyright", "debian/changelog", "README") pisitools.dobin("os-prober") pisitools.dobin("linux-boot-prober") pisitools.insinto("/usr/lib/os-prober", "newns") pisitools.insinto("/usr/share/os-prober", "common.sh") for d in ("os-probes", "os-probes/mounted", "os-probes/init", "linux-boot-probes", "linux-boot-probes/mounted"): pisitools.insinto("/usr/lib/%s" % d, "%s/common/*" % d) if shelltools.isDirectory("%s/x86" % d): pisitools.insinto("/usr/lib/%s" % d, "%s/x86/*" % d) shelltools.touch("labels") pisitools.insinto("/var/lib/os-prober/", "labels")
def build(): shelltools.touch("include/linux/autoconf.h") shelltools.sym("asm-i386", "include/asm") shelltools.export( "HOSTCFLAGS", "-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Iinclude/") shelltools.export("MOPT", "ARCH=i386 CROSS_COMPILE=i686-pc-linux-gnu-") autotools.make("defconfig HOSTCFLAGS=\"${HOSTCFLAGS}\" ${MOPT}") autotools.make("prepare HOSTCFLAGS=\"${HOSTCFLAGS}\" ${MOPT}") autotools.make("prepare-all HOSTCFLAGS=\"${HOSTCFLAGS}\" ${MOPT}")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodir("/run/clamav") pisitools.dodir("/var/lib/clamav") pisitools.dodir("/var/log/clamav") shelltools.touch(get.installDIR() + "/var/log/clamav/freshclam.log") shelltools.chmod(get.installDIR() + "/var/log/clamav/freshclam.log", 0600) shelltools.chown("%s/var/log/clamav/freshclam.log" % get.installDIR(), "clamav", "clamav") pisitools.dodoc("AUTHORS", "BUGS", "COPYING*", "NEWS", "README", "ChangeLog", "FAQ")
def install(): autotools.rawInstall("INSTALL_ROOT=%s" % get.installDIR()) autotools.rawInstall( "includedir=/usr/include/gdbm INSTALL_ROOT=%s" % get.installDIR(), "install-compat") pisitools.dodoc("ChangeLog", "NEWS", "README") #temp backwards support if shelltools.can_access_file("/usr/lib/libgdbm.so.2"): shelltools.copy("/usr/lib/libgdbm.so.2", "%s/usr/lib/" % get.installDIR()) shelltools.touch("%s/usr/lib/libgdbm.so.2" % get.installDIR())
def setup(): for f in ["ABOUT-NLS", "NEWS"]: shelltools.touch(f) autotools.autoreconf("-vfi") autotools.configure("--enable-openssl \ --enable-ipv6 \ --disable-rpath \ --enable-threads=posix \ --disable-xft \ --enable-shm \ --disable-textfe \ --enable-spell=libsexy")
def setup(): # we are using different paths pisitools.dosed("cupshelpers/cupshelpers.py", "\/lib64\/", "\/lib\/") pisitools.dosed("troubleshoot/CheckUSBPermissions.py", "\/usr\/bin\/getfacl", "\/bin\/getfacl") pisitools.dosed("Makefile.am", "xmlto man", "xmlto --skip-validation man") for i in ["README", "ChangeLog"]: shelltools.touch(i) autotools.autoreconf("-fi") autotools.configure("--with-udev-rules \ --with-systemdsystemunitdir=no \ --sysconfdir=/etc")
def setup(): shelltools.sym(".", "m4") shelltools.sym("LICENSE", "COPYING") for i in ["NEWS", "AUTHORS", "ChangeLog"]: shelltools.touch(i) pisitools.dosed("configure.in", "^ppl_minor_version=.*", "ppl_minor_version=11") autotools.autoreconf("-vfi") autotools.configure("--disable-static \ --enable-shared \ --with-ppl")
def setup(): shelltools.system( 'sed -i "s:mdds >= 0.12.0:mdds-1.0 >= 0.12.0:g" configure.ac') shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir) shelltools.export("LO_PREFIX", "/usr") shelltools.export("PYTHON", "python3.6") shelltools.cd(OurWorkDir) shelltools.touch("autogen.lastrun") shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in') #shelltools.system('sed -e "/ustrbuf/a #include <algorithm>" \ ###-i svl/source/misc/gridprinter.cxx') shelltools.system('./autogen.sh \ --prefix=/usr \ --sysconfdir=/etc \ --with-vendor="Lime Linux" \ --with-lang="ALL" \ --enable-gtk3 \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --with-java \ --without-system-dicts \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-curl \ --with-system-cairo \ --with-system-expat \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-zlib \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-odk \ --enable-ext-wiki-publisher \ --enable-ext-nlpsolver \ --disable-firebird-sdbc \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-gdrive-client-id=413772536636.apps.googleusercontent.com \ --with-gdrive-client-secret=0ZChLK6AxeA3Isu96MkwqDR4 \ --with-parallelism=%s' % (get.makeJOBS().replace("-j", "")))
def setup(): for f in ["NEWS", "README", "AUTHORS"]: shelltools.touch(f) # fix building against automake-1.12 pisitools.dosed("configure.in", "^AM_C_PROTOTYPES") autotools.autoreconf("-vfi") autotools.configure("--disable-examples \ --enable-ctrl \ --enable-platform \ --enable-freetype \ --enable-gpc \ --enable-static=no")
def setup(): # make sure system fribidi is used shelltools.unlinkDir("src/fribidi") shelltools.touch("NEWS") autotools.autoreconf("-vfi") # allow glewx usage autotools.configure("--disable-dependency-tracking \ --disable-executables \ --disable-static \ --without-doc \ --with-fribidi \ --without-glew")
def install(): shelltools.cd("build") pisitools.dodir("/etc/ld.so.conf.d") shelltools.touch("%s/etc/ld.so.conf" % get.installDIR()) autotools.rawInstall("install_root=%s" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2") shelltools.echo( "%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(), ldconf32bit) pisitools.removeDir("/tmp32") # Prevent overwriting of the /etc/localtime symlink if shelltools.isFile("%s/etc/localtime" % get.installDIR()): pisitools.remove("/etc/localtime") # Nscd needs this to work pisitools.dodir("/var/run/nscd") pisitools.dodir("/var/db/nscd") # remove zoneinfo files since they are coming from timezone packages # we disable timezone build with a patch, keeping these lines for easier maintenance if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()): pisitools.removeDir("/usr/share/zoneinfo") shelltools.cd("..") pisitools.insinto("/etc", "nscd/nscd.conf") pisitools.insinto("/usr/lib/tmpfiles.d", "nscd/nscd.tmpfiles", "nscd.conf") pisitools.insinto("/etc", "posix/gai.conf") pisitools.insinto("/etc", "locale.gen") shelltools.system( "sed -e '1,3d' -e 's|/| |g' -e 's|\\\| |g' -e 's|^|#|g' %s/%s/localedata/SUPPORTED >> %s/etc/locale.gen" % (get.workDIR(), get.srcDIR(), get.installDIR())) pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES") # We'll take care of the cache ourselves if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()): pisitools.remove("/etc/ld.so.cache") pisitools.remove("/etc/ld.so.conf")
def setup(): shelltools.export("CFLAGS", "%s -D_GNU_SOURCE" % get.CFLAGS()) autotools.aclocal("-I gnulib/m4 -I m4") autotools.automake() shelltools.touch("configure") shelltools.touch("config.h") autotools.configure("--enable-nls \ --without-included-regex \ --disable-rpath \ --disable-assert \ --with-fts \ --enable-leaf-optimisation \ --enable-d_type-optimization")