def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": # Remove duplicated header files pisitools.removeDir("/usr/lib32/%s" % get.srcDIR()) # Fix emul32 includedir pisitools.dosym("/usr/lib/%s/include" % get.srcDIR(), "/usr/lib32/%s/include" % get.srcDIR()) pisitools.dodoc("ChangeLog*", "LICENSE", "README*")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("ChangeLog*", "LICENSE", "README*") # Remove duplicated header files if get.buildTYPE() == "emul32": pisitools.removeDir("/usr/lib32/%s" % get.srcDIR()) # Fix emul32 includedir if get.buildTYPE() == "emul32": pisitools.dosym("/usr/lib/%s/include" % get.srcDIR(), "/usr/lib32/%s/include" % get.srcDIR())
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd(get.workDIR() + "/" + get.srcDIR() + "/filefuncs") autotools.rawInstall("DESTDIR=%s AWKINCDIR=%s LIBDIR=/lib" % (get.installDIR(), get.workDIR() + "/" + get.srcDIR())) shelltools.cd(get.workDIR() + "/" + get.srcDIR()) pisitools.dodir("/usr/bin") binpath, d, ver = "", get.installDIR() + "/", get.srcVERSION() for i in ["gawk", "pgawk", "igawk"]: if i == "gawk": binpath = "/bin/" else: binpath = "/usr/bin/" if shelltools.can_access_file(d + "bin/" + i) and not shelltools.can_access_file(d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i, binpath, i + "-" + ver) elif shelltools.can_access_file(d + "bin/" + i + "-") and not shelltools.can_access_file(d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i + "-", binpath, i + "-" + ver) elif binpath is "/usr/bin/" and shelltools.can_access_file(d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i + "-" + ver, binpath, i + "-" + ver) if shelltools.can_access_file(d + "bin/" + i): pisitools.remove("/bin/" + i) pisitools.dosym(i + "-" + ver, binpath + i) if binpath is "/usr/bin/": pisitools.dosym("/usr/bin/" + i + "-" + ver, "/bin/" + i) pisitools.dosym("igawk-" + ver, "/usr/bin/igawk") pisitools.dosym("/bin/gawk-" + ver, "/usr/bin/awk") pisitools.dosym("/bin/gawk-" + ver, "/usr/bin/gawk") pisitools.dodir("/usr/include/awk") for h in shelltools.ls(get.workDIR() + "/" + get.srcDIR() + "/*.h"): pisitools.insinto("/usr/include/awk/", h) if shelltools.can_access_file(d + "/usr/include/awk/acconfig.h"): pisitools.remove("/usr/include/awk/acconfig.h") pisitools.dosym("gawk.1", "/usr/share/man/man1/awk.1") pisitools.dodoc("AUTHORS", "ChangeLog", "FUTURES", "LIMITATIONS", "NEWS", "PROBLEMS", "POSIX.STD", "README") for f in shelltools.ls("README_d/"): pisitools.newdoc("README_d/%s" % f, "README_d/%s" % f) pisitools.newdoc("awklib/ChangeLog", "awklib/ChangeLog") pisitools.newdoc("pc/ChangeLog", "pc/ChangeLog") pisitools.newdoc("posix/ChangeLog", "posix/ChangeLog")
def install(): pisitools.dobin("antiword") docnames = ("COPYING", "ChangeLog", "ReadMe") for docs in docnames: pisitools.dodoc("%s/%s/Docs/%s" % (get.workDIR(), get.srcDIR(), docs)) shelltools.makedirs("%s/usr/share/antiword" % get.installDIR()) resourcefiles = listdir("%s/%s/Resources" % (get.workDIR(), get.srcDIR())) for resource in resourcefiles: pisitools.insinto("/usr/share/antiword", "%s/%s/Resources/%s" % (get.workDIR(), \ get.srcDIR(), resource)) pisitools.doman("%s/%s/Docs/antiword.1" % (get.workDIR(), get.srcDIR()))
def setup(): # For 32bit machines: # * It get compiled with the normal options below. The emul32 are ignored # on 32bit machines. Nothing is added to options variable. # # For 64bit machines: # * First we compile for 64bit with the option --enable-win64. These build # files are stored in the normal "work" dir # * In the second run (for emul32 buildType), the 32bit part is compiled # with the spesific libdir and the --with-wine64 options that is pointing # to the 64bit files that was compiled in the first step (files in the work) # # More info can be obtained here: http://wiki.winehq.org/Wine64 autotools.autoreconf("-vif") options = "--without-capi \ --with-curses \ --without-esd \ --with-opengl \ --with-pulse \ --with-x" if get.buildTYPE() == "emul32": options += ( "--libdir=/usr/lib32 \ --with-wine64=%s/work/%s" % (get.pkgDIR(), get.srcDIR()) ) elif get.ARCH() == "x86_64": options += " --enable-win64" autotools.configure(options)
def build(): shelltools.cd("src/libXNVCtrl") autotools.make('CDEBUGFLAGS="-fPIC %s" CC="%s" libXNVCtrl.a' % (get.CFLAGS(), get.CC())) shelltools.cd("%s/%s" % (get.workDIR(), get.srcDIR())) autotools.make('CC="%s" STRIP_CMD="/bin/true"' % get.CC())
def install(): pisitools.dobin("gvtray") pisitools.dodir("/usr/share/%s/gvtray_about" % get.srcNAME()) for i in os.listdir("%s/%s/gvtray_about/" % (get.workDIR(), get.srcDIR())): pisitools.insinto("usr/share/%s/gvtray_about" % get.srcNAME(), "gvtray_about/%s" % i) pisitools.insinto("usr/share/%s" % get.srcNAME(), "gvtray.py")
def build(): shelltools.cd("src/libXNVCtrl") autotools.make('clean') autotools.make('CDEBUGFLAGS="-fPIC %s" CC="%s" libXNVCtrl.a' % (get.CFLAGS(), get.CC())) shelltools.cd("%s/%s" % (get.workDIR(), get.srcDIR())) autotools.make('CC="%s" LD="%s" STRIP_CMD="/bin/true" NV_VERBOSE=1' % (get.CC(), get.LDFLAGS()))
def setup(): # For 32bit machines: # * It get compiled with the normal options below. The emul32 are ignored # on 32bit machines. Nothing is added to options variable. # # For 64bit machines: # * First we compile for 64bit with the option --enable-win64. These build # files are stored in the normal "work" dir # * In the second run (for emul32 buildType), the 32bit part is compiled # with the spesific libdir and the --with-wine64 options that is pointing # to the 64bit files that was compiled in the first step (files in the work) # # More info can be obtained here: http://wiki.winehq.org/Wine64 autotools.autoreconf("-vif") options = "--without-capi \ --with-curses \ --without-esd \ --with-opengl \ --with-pulse \ --with-x" if get.buildTYPE() == "emul32": options += "--libdir=/usr/lib32 \ --with-wine64=%s/work/%s" % (get.pkgDIR(), get.srcDIR()) elif get.ARCH() == "x86_64": options += " --enable-win64" autotools.configure(options)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Remove versioned copy pisitools.remove("/bin/%s" % (get.srcDIR())) pisitools.doman("Doc/*.1") pisitools.dodoc("ChangeLog", "FEATURES", "LICENCE", "META-FAQ", "NEWS", "README")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("ChangeLog*", "LICENSE", "README*") # Remove duplicated header files if get.buildTYPE() == "emul32": pisitools.removeDir("/usr/lib32/%s" % get.srcDIR())
def build(): autotools.make() shelltools.export( "LD_LIBRARY_PATH", "%s/%s/Source/obj:${LD_LIBRARY_PATH}" % (get.workDIR(), get.srcDIR())) autotools.make("-C Documentation \ GNUSTEP_CONFIG_FILE=%s/GNUstep.conf" % WorkPath)
def build(): shelltools.export("VARTEXFONTS", "%s/fonts" % get.curDIR()) autotools.make() shelltools.export("VARTEXFONTS", "%s/fonts" % get.curDIR()) shelltools.export("TEXMFHOME", "%s" % get.srcDIR()) shelltools.system( "env -u TEXINPUTS fmtutil --cnffile texmf/fmtutil/format.jadetex.cnf --fmtdir texmf-var/web2c --all" )
def setup(): pisitools.dosed("drivers/Makefile", "SUBDIRS=\$(shell pwd)", "SUBDIRS=%s/drivers" % get.srcDIR()) pisitools.dosed("drivers/Makefile", "SUBDIRS=", "M=") pisitools.dosed("modem/Makefile", " -O") pisitools.dosed("modem/Makefile", "LFLAGS", "LDFLAGS") pisitools.dosed("modem/Makefile", "^slmodemd: -lasound$")
def setup(): autotools.autoreconf("-vif") shelltools.export("PLUGIN_CFLAGS", "%s/plugin/include" % get.srcDIR()) autotools.configure("--disable-static") pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build(): scons.make('CC="%s" \ CCFLAGS="%s" \ LINK="%s" \ LINKFLAGS="%s" \ shared=1 ' % (get.CC(), get.CFLAGS(), get.CC(), get.LDFLAGS())) # Remove static libraries shelltools.unlink(get.workDIR() + '/' + get.srcDIR() + '/lib/*.a')
def setup(): shelltools.unlink("%s/%s/doc/auctex.info" % (get.workDIR(), get.srcDIR())) autotools.configure("EMACS_NAME=emacs EMACS_FLAVOUR=emacs econf --disable-build-dir-test \ --with-auto-dir='/var/lib/auctex' \ --with-lispdir='/usr/share/emacs/site-lisp/%s' \ --with-packagelispdir='/usr/share/emacs/site-lisp/%s' \ --with-packagedatadir='/usr/share/emacs/etc/%s'" \ % (get.srcNAME(),get.srcNAME(),get.srcNAME()))
def install(): shelltools.export("HOME", get.workDIR()) work_dir = get.workDIR() + "/" + get.srcDIR() # shelltools.system("find %s -name '*.cgi' ;find %s -name '*.pl' | perl %s/perlpath.pl /usr/bin/perl -" % (work_dir, work_dir, work_dir)) shelltools.system( "sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' **/*.cgi") shelltools.system( "sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' *.cgi") shelltools.system( "sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' **/*.pl") shelltools.system( "sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' *.pl") pisitools.dodir("/usr/share/webmin-1.550") pisitools.dodir("/etc/webmin") pisitools.dodir("/var/log/webmin") pisitools.dodir("/tmp/.webmin") shelltools.export("config_dir", "%s/etc/webmin" % get.installDIR()) shelltools.export("var_dir", "%s/var/log/webmin" % get.installDIR()) shelltools.export("perl", "/usr/bin/perl") shelltools.export("autoos", "1") shelltools.export("port", "10000") shelltools.export("login", "root") shelltools.export("crypt", "XXX") shelltools.export("host", "$HOSTNAME") shelltools.export("ssl", "1") shelltools.export("atboot", "1") shelltools.export("nostart", "1") shelltools.export("nochown", "1") shelltools.export("autothird", "1") shelltools.export("nouninstall", "1") shelltools.export("noperlpath", "1") shelltools.export("nopostinstall", "") shelltools.export("tempdir", "%s/tmp/.webmin" % get.installDIR()) shelltools.system("./setup.sh %s/usr/share/webmin-1.620" % get.installDIR()) pisitools.dosed("%s/etc/webmin/install-dir" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/miniserv.conf" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/reload" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/restart" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/start" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/stop" % get.installDIR(), get.installDIR() + "/", "/") pisitools.dosed("%s/etc/webmin/var-path" % get.installDIR(), get.installDIR() + "/", "/") file = open("/etc/shadow", "r") shadow = file.readline() file.close() shadow = shadow.split(":") pisitools.dosed("%s/etc/webmin/miniserv.users" % get.installDIR(), "root:XXX", "root:%s" % shadow[1])
def build(): scons.make('CC="%s" \ CCFLAGS="%s" \ LINK="%s" \ LINKFLAGS="%s" \ shared=1 ' % (get.CC(), get.CFLAGS(), get.CC(), get.LDFLAGS())) # Remove static libraries shelltools.unlink(get.workDIR()+'/'+get.srcDIR()+'/lib/*.a')
def setup(): # https://bugs.freedesktop.org/show_bug.cgi?id=70366 #shelltools.export("ac_cv_func_fdatasync", "no") shelltools.copy("../xdgmime-*/*", "xdgmime") autotools.make("-C xdgmime") mesontools.configure("-Dupdate-mimedb=false -D xdgmime-path=%s/xdgmime" % get.srcDIR())
def setup(): shelltools.chmod("%s/%s/configure" % (get.workDIR(), get.srcDIR()), 0755) autotools.autoreconf("-fi") # Static libs should be enabled for mono compiler autotools.configure("--enable-parallel-mark \ --with-profile4=yes \ --with-tls=pthread \ --with-jit=yes")
def install(): cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR()) # Config pisitools.insinto("/etc/mysql", "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(), "my.cnf") pisitools.insinto("/etc/mysql", "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR())) pisitools.insinto("/usr/bin", "%s/%s/scripts/mysql_config" % (get.workDIR(), get.srcDIR())) # Data dir pisitools.dodir("/var/lib/mysql") # Documents pisitools.dodoc("%s/%s/support-files/my-*.cnf" % (get.workDIR(), get.srcDIR())) pisitools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION") # Remove not needed files pisitools.removeDir("/usr/data") pisitools.removeDir("/usr/mysql-test") pisitools.removeDir("/usr/sql-bench") pisitools.remove("/usr/share/man/man1/mysql-test-run.pl.1")
def setup(): pisitools.dosed( "%s/%s/include/ldap_defaults.h" % (get.workDIR(), get.srcDIR()), "(#define LDAPI_SOCK).*", '\\1 "/var/run/openldap/slapd.sock"') shelltools.export("CFLAGS", "%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) shelltools.export("CPPFLAGS", "%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) autotools.configure("--prefix=/usr \ --enable-bdb \ --enable-ldbm-api=berkeley \ --enable-hdb=mod \ --enable-slapd \ --enable-slurpd \ --enable-ldbm \ --enable-passwd=mod \ --enable-phonetic=mod \ --enable-dnssrv=mod \ --enable-ldap \ --enable-wrappers \ --enable-meta=mod \ --enable-monitor=mod \ --enable-null=mod \ --enable-shell=mod \ --enable-rewrite \ --enable-rlookups \ --enable-aci \ --enable-modules \ --enable-cleartext \ --enable-lmpasswd \ --enable-spasswd \ --enable-slapi \ --enable-dynlist=mod \ --enable-accesslog=mod \ --enable-auditlog=mod \ --enable-memberof=mod \ --enable-refint=mod \ --enable-syncprov=mod \ --enable-proxycache \ --enable-perl \ --enable-syslog \ --enable-dynamic \ --enable-local \ --enable-proctitle \ --enable-overlays=mod \ --with-tls \ --with-pic \ --with-cyrus-sasl \ --enable-crypt \ --with-ssl=openssl \ --enable-ipv6 \ --localstatedir=/var/lib")
def setup(): shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) pisitools.dosed("drivers/Makefile", "SUBDIRS=\$(shell pwd)", "SUBDIRS=%s/drivers" % get.srcDIR()) pisitools.dosed("drivers/Makefile", "SUBDIRS=", "M=") pisitools.dosed("drivers/Makefile", "\$\(shell uname -r\)", KDIR) pisitools.dosed("Makefile", "\$\(shell uname -r\)", KDIR)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodir("/usr/bin") binpath, d, ver = "", get.installDIR() + "/", get.srcVERSION() for i in ["gawk", "pgawk", "igawk"]: if i == "gawk": binpath = "/bin/" else: binpath = "/usr/bin/" if shelltools.can_access_file(d + "bin/" + i) and not shelltools.can_access_file( d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i, binpath, i + "-" + ver) elif shelltools.can_access_file( d + "bin/" + i + "-") and not shelltools.can_access_file(d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i + "-", binpath, i + "-" + ver) elif binpath is "/usr/bin/" and shelltools.can_access_file(d + "bin/" + i + "-" + ver): pisitools.domove("/bin/" + i + "-" + ver, binpath, i + "-" + ver) if shelltools.can_access_file(d + "bin/" + i): pisitools.remove("/bin/" + i) pisitools.dosym(i + "-" + ver, binpath + i) if binpath is "/usr/bin/": pisitools.dosym("/usr/bin/" + i + "-" + ver, "/bin/" + i) pisitools.dosym("igawk-" + ver, "/usr/bin/igawk") pisitools.dosym("/bin/gawk-" + ver, "/usr/bin/awk") pisitools.dosym("/bin/gawk-" + ver, "/usr/bin/gawk") pisitools.dodir("/usr/include/awk") for h in shelltools.ls(get.workDIR() + "/" + get.srcDIR() + "/*.h"): pisitools.insinto("/usr/include/awk/", h) if shelltools.can_access_file(d + "/usr/include/awk/acconfig.h"): pisitools.remove("/usr/include/awk/acconfig.h") pisitools.dosym("gawk.1", "/usr/share/man/man1/awk.1") pisitools.dodoc("AUTHORS", "ChangeLog", "FUTURES", "LIMITATIONS", "NEWS", "PROBLEMS", "POSIX.STD", "README") for f in shelltools.ls("README_d/"): pisitools.newdoc("README_d/%s" % f, "README_d/%s" % f) pisitools.newdoc("awklib/ChangeLog", "awklib/ChangeLog") pisitools.newdoc("pc/ChangeLog", "pc/ChangeLog") pisitools.newdoc("posix/ChangeLog", "posix/ChangeLog")
def setup(): pisitools.dosed( "%s/%s/include/ldap_defaults.h" % (get.workDIR(), get.srcDIR()), "(#define LDAPI_SOCK).*", '\\1 "/var/run/openldap/slapd.sock"' ) shelltools.export("CFLAGS","%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) shelltools.export("CPPFLAGS","%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) autotools.configure("--prefix=/usr \ --enable-bdb \ --enable-ldbm-api=berkeley \ --enable-hdb=mod \ --enable-slapd \ --enable-slurpd \ --enable-ldbm \ --enable-passwd=mod \ --enable-phonetic=mod \ --enable-dnssrv=mod \ --enable-ldap \ --enable-wrappers \ --enable-meta=mod \ --enable-monitor=mod \ --enable-null=mod \ --enable-shell=mod \ --enable-rewrite \ --enable-rlookups \ --enable-aci \ --enable-modules \ --enable-cleartext \ --enable-lmpasswd \ --enable-spasswd \ --enable-slapi \ --enable-dynlist=mod \ --enable-accesslog=mod \ --enable-auditlog=mod \ --enable-memberof=mod \ --enable-refint=mod \ --enable-syncprov=mod \ --enable-proxycache \ --enable-perl \ --enable-syslog \ --enable-dynamic \ --enable-local \ --enable-proctitle \ --enable-overlays=mod \ --with-tls \ --with-pic \ --with-cyrus-sasl \ --enable-crypt \ --with-ssl=openssl \ --enable-ipv6 \ --localstatedir=/var/lib")
def install(): cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR()) # Config pisitools.insinto("/etc/mysql", "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(), "my.cnf") pisitools.insinto( "/etc/mysql", "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR())) # Data dir pisitools.dodir("/var/lib/mysql") # Runtime data pisitools.dodir("/run/mysqld") # Documents pisitools.dodoc("%s/%s/support-files/my-*.cnf" % (get.workDIR(), get.srcDIR())) pisitools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION")
def setup(): # xchat sourcecode ships with po/Makefile.in.in from gettext-0.17 # which fails with >= gettext-0.18 shelltools.system("cp /usr/share/gettext/po/Makefile.in.in %s/%s/po" % (get.workDIR(), get.srcDIR())) autotools.autoreconf("-vif") autotools.configure("--enable-shm \ --enable-ipv6 \ --enable-openssl \ --disable-rpath \ --enable-spell=libsexy")
def install(): shelltools.cd("src") autotools.make("DESTDIR=%s prefix=/usr install-bin" % (get.installDIR())) shelltools.chmod("%s/usr/lib/%s/clisp-link" % (get.installDIR(), get.srcDIR()), 0755) shelltools.cd("..") pisitools.dohtml("doc/impnotes.css","doc/impnotes.html","doc/_clisp.html","doc/clisp.png") pisitools.dodoc("doc/editors.txt","doc/CLOS-guide.txt","doc/LISP-tutorial.txt") pisitools.doman("doc/_clisp.1") pisitools.rename("/usr/share/man/man1/_clisp.1", "clisp.1")
def install(): # Insert our executables and global config pisitools.dobin("grc") pisitools.dobin("grcat") pisitools.insinto("/etc", "grc.conf") # Insert our syntax files conffiles = glob.glob("%s/%s/conf.*" % (get.workDIR(), get.srcDIR())) for conf in conffiles: pisitools.insinto("/usr/share/grc", "%s" % conf) pisitools.doman("grc.1", "grcat.1") pisitools.dodoc("COPYING", "CREDITS", "README")
def install(): #Insert our executables and global config pisitools.dobin("grc") pisitools.dobin("grcat") pisitools.insinto("/etc", "grc.conf") #Insert our syntax files conffiles = glob.glob('%s/%s/conf.*' % (get.workDIR(), get.srcDIR())) for conf in conffiles: pisitools.insinto("/usr/share/grc", "%s" % conf) pisitools.doman("grc.1", "grcat.1") pisitools.dodoc("COPYING", "CREDITS", "README")
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 install(): cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR()) # Config pisitools.insinto("/etc/mysql", "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(), "my.cnf") pisitools.insinto("/etc/mysql", "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR())) # Data dir pisitools.dodir("/var/lib/mysql") # Runtime data pisitools.dodir("/run/mysqld") # Documents pisitools.dodoc("%s/%s/support-files/my-*.cnf" % (get.workDIR(), get.srcDIR())) pisitools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION")
def install(): shelltools.cd("src") autotools.make("DESTDIR=%s prefix=/usr install-bin" % (get.installDIR())) shelltools.chmod( "%s/usr/lib/%s/clisp-link" % (get.installDIR(), get.srcDIR()), 0755) shelltools.cd("..") pisitools.dohtml("doc/impnotes.css", "doc/impnotes.html", "doc/_clisp.html", "doc/clisp.png") pisitools.dodoc("doc/Symbol-Table.text", "doc/CLOS-guide.txt", "doc/LISP-tutorial.txt") pisitools.doman("doc/_clisp.1") pisitools.rename("/usr/share/man/man1/_clisp.1", "clisp.1")
def setup(): shelltools.chmod("%s/%s/configure" % (get.workDIR(), get.srcDIR()), 0755) # Static libs should be enabled for mono compiler autotools.configure("--enable-parallel-mark \ --with-static-mono=yes \ --with-moonlight=yes \ --with-glib=system \ --with-gc=included \ --with-ikvm-native=yes \ --with-tls=__thread \ --with-jit=yes \ --with-xen_opt=yes \ --with-sigaltstack=no \ --with-preview=yes \ --with-libgdiplus=installed")
def install(): autotools.rawInstall( "DESTDIR=%s -j1\ ppddir=/usr/share/cups/model/hplip" % get.installDIR() ) # Uncompress ppd files for a better lzma compression (~1.5MB with level -9) for ppd in shelltools.ls("%s/usr/share/cups/model/hplip" % get.installDIR()): if ppd.endswith(".gz"): mygunzip("%s/usr/share/cups/model/hplip/%s" % (get.installDIR(), ppd)) # Add Device ID for # HP LaserJet 1200 # HP LaserJet 1320 series # HP LaserJet 2300 # HP LaserJet P2015 Series # HP LaserJet 4250 # HP Color LaserJet 2605dn # HP Color LaserJet 3800 # HP Color LaserJet 2840 shelltools.system( "patch -d %s/usr/share/cups/model/hplip -p3 < %s/%s/deviceids.patch" % (get.installDIR(), get.workDIR(), get.srcDIR()) ) # Create a compatibility symlink for foomatic-rip-hplip pisitools.dosym("/usr/lib/cups/filter/foomatic-rip", "/usr/lib/cups/filter/foomatic-rip-hplip") # Remove the hal preprobe rules as they were causing breakage (bug #479648). # Remove hal directory as well. pisitools.removeDir("/usr/share/hal/") # Do not mess with sane, init, foomatic etc. pisitools.removeDir("/etc/sane.d") # Create empty plugins directory pisitools.dodir("/usr/share/hplip/prnt/plugins") # This notifies user through libnotify when the printer requires a firmware # Should port it to KNotify if possible, argh. pisitools.remove("/lib/udev/rules.d/56-hpmud_support.rules") # --disable-doc-build used. It doesn't go to the true directory. pisitools.dohtml("doc/*")
def install(): autotools.rawInstall("DESTDIR=%s -j1\ ppddir=/usr/share/cups/model/hplip" % get.installDIR()) # Uncompress ppd files for a better lzma compression (~1.5MB with level -9) for ppd in shelltools.ls("%s/usr/share/cups/model/hplip" % get.installDIR()): if ppd.endswith(".gz"): mygunzip("%s/usr/share/cups/model/hplip/%s" % (get.installDIR(), ppd)) # Add Device ID for # HP LaserJet 1200 # HP LaserJet 1320 series # HP LaserJet 2300 # HP LaserJet P2015 Series # HP LaserJet 4250 # HP Color LaserJet 2605dn # HP Color LaserJet 3800 # HP Color LaserJet 2840 shelltools.system( "patch -d %s/usr/share/cups/model/hplip -p3 < %s/%s/deviceids.patch" % (get.installDIR(), get.workDIR(), get.srcDIR())) # Create a compatibility symlink for foomatic-rip-hplip pisitools.dosym("/usr/lib/cups/filter/foomatic-rip", "/usr/lib/cups/filter/foomatic-rip-hplip") # Remove the hal preprobe rules as they were causing breakage (bug #479648). # Remove hal directory as well. pisitools.removeDir("/usr/share/hal/") # Do not mess with sane, init, foomatic etc. pisitools.removeDir("/etc/sane.d") # Create empty plugins directory pisitools.dodir("/usr/share/hplip/prnt/plugins") # This notifies user through libnotify when the printer requires a firmware # Should port it to KNotify if possible, argh. pisitools.remove("/lib/udev/rules.d/56-hpmud_support.rules") # --disable-doc-build used. It doesn't go to the true directory. pisitools.dohtml("doc/*")
def install(): pisitools.dodir("/usr/sbin") pisitools.dodir("/var/spool/mqueue") pisitools.dodir("/var/spool/clientmqueue") pisitools.dodir("/usr/share/man/man8") pisitools.dodir("/usr/share/sendmail/cf") pisitools.dodir("/usr/share/sendmail/devtools") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.move("/%s/%s/sendmail/sendmail.8" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/man/man8" % get.installDIR()) shelltools.move("/%s/%s/makemap/makemap.8" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/man/man8" % get.installDIR()) shelltools.move("/%s/%s/editmap/editmap.8" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/man/man8" % get.installDIR()) shelltools.move("/%s/%s/doc/op/op.ps" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/sendmail/guide" % get.installDIR()) shelltools.move("/%s/%s/cf/cf/sendmail.cf" % (get.workDIR(),get.srcDIR()),"/%s/etc/mail/sendmail.cf" % get.installDIR()) shelltools.move("/%s/%s/cf/*" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/sendmail/cf" % get.installDIR()) shelltools.move("/%s/%s/devtools/*" % (get.workDIR(),get.srcDIR()),"/%s/usr/share/sendmail/devtools" % get.installDIR())
def setup(): pisitools.dosed( "%s/%s/include/ldap_defaults.h" % (get.workDIR(), get.srcDIR()), "(#define LDAPI_SOCK).*", '\\1 "/var/run/openldap/slapd.sock"', ) autotools.configure( "--prefix=/usr \ --enable-bdb \ --enable-ldbm-api=berkeley \ --enable-hdb=mod \ --enable-slapd \ --enable-slurpd \ --enable-ldbm \ --enable-passwd=mod \ --enable-phonetic=mod \ --enable-dnssrv=mod \ --enable-ldap \ --enable-wrappers \ --enable-meta=mod \ --enable-monitor=mod \ --enable-null=mod \ --enable-shell=mod \ --enable-rewrite \ --enable-rlookups \ --enable-aci \ --enable-modules \ --enable-cleartext \ --enable-lmpasswd \ --enable-spasswd \ --enable-slapi \ --enable-dyngroup \ --enable-proxycache \ --enable-perl \ --enable-syslog \ --enable-dynamic \ --enable-local \ --enable-proctitle \ --enable-overlays=mod \ --with-tls \ --with-cyrus-sasl \ --enable-crypt \ --enable-ipv6" )
def install(): shelltools.export("HOME",get.workDIR()) work_dir = get.workDIR()+"/"+get.srcDIR() # shelltools.system("find %s -name '*.cgi' ;find %s -name '*.pl' | perl %s/perlpath.pl /usr/bin/perl -" % (work_dir, work_dir, work_dir)) shelltools.system("sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' **/*.cgi") shelltools.system("sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' *.cgi") shelltools.system("sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' **/*.pl") shelltools.system("sed -i -e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/g' *.pl") pisitools.dodir("/usr/share/webmin-1.550") pisitools.dodir("/etc/webmin") pisitools.dodir("/var/log/webmin") pisitools.dodir("/tmp/.webmin") shelltools.export("config_dir", "%s/etc/webmin" % get.installDIR()) shelltools.export("var_dir", "%s/var/log/webmin" % get.installDIR()) shelltools.export("perl", "/usr/bin/perl") shelltools.export("autoos", "1") shelltools.export("port", "10000") shelltools.export("login", "root") shelltools.export("crypt", "XXX") shelltools.export("host", "$HOSTNAME") shelltools.export("ssl", "1") shelltools.export("atboot", "1") shelltools.export("nostart", "1") shelltools.export("nochown", "1") shelltools.export("autothird","1") shelltools.export("nouninstall", "1") shelltools.export("noperlpath","1") shelltools.export("nopostinstall","") shelltools.export("tempdir", "%s/tmp/.webmin" % get.installDIR()) shelltools.system("./setup.sh %s/usr/share/webmin-1.550" % get.installDIR()) pisitools.dosed("%s/etc/webmin/install-dir" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/miniserv.conf" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/reload" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/restart" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/start" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/stop" % get.installDIR(),get.installDIR()+"/", "/") pisitools.dosed("%s/etc/webmin/var-path" % get.installDIR(),get.installDIR()+"/", "/") file=open("/etc/shadow", "r") shadow=file.readline() file.close() shadow=shadow.split(":") pisitools.dosed("%s/etc/webmin/miniserv.users" % get.installDIR(), "root:XXX","root:%s" % shadow[1])
def setup(): pisitools.dosed( "%s/%s/include/ldap_defaults.h" % (get.workDIR(), get.srcDIR()), "(#define LDAPI_SOCK).*", '\\1 "/var/run/openldap/slapd.sock"' ) autotools.configure("--prefix=/usr \ --enable-bdb \ --enable-ldbm-api=berkeley \ --enable-hdb=mod \ --enable-slapd \ --enable-slurpd \ --enable-ldbm \ --enable-passwd=mod \ --enable-phonetic=mod \ --enable-dnssrv=mod \ --enable-ldap \ --enable-wrappers \ --enable-meta=mod \ --enable-monitor=mod \ --enable-null=mod \ --enable-shell=mod \ --enable-rewrite \ --enable-rlookups \ --enable-aci \ --enable-modules \ --enable-cleartext \ --enable-lmpasswd \ --enable-spasswd \ --enable-slapi \ --enable-dyngroup \ --enable-proxycache \ --enable-perl \ --enable-syslog \ --enable-dynamic \ --enable-local \ --enable-proctitle \ --enable-overlays=mod \ --with-tls \ --with-cyrus-sasl \ --enable-crypt \ --enable-ipv6")
def setup(): shelltools.makedirs("../build/") shelltools.cd("../build/") cmaketools.configure("-DCMAKE_SKIP_RPATH:BOOL=YES \ -DGDCM_BUILD_APPLICATIONS:BOOL=ON \ -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \ -DSWIG_DIR:PATH=/usr \ -DSWIG_EXECUTABLE:FILEPATH=/usr/bin/swig \ -DGDCM_DOCUMENTATION:BOOL=ON \ -DGDCM_BUILD_EXAMPLES:BOOL=ON \ -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \ -DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \ -DGDCM_WRAP_JAVA:BOOL=OFF \ -DGDCM_WRAP_PYTHON:BOOL=ON \ -DGDCM_USE_VTK:BOOL=ON \ -DVTK_DIR:PATH=/usr/lib/vtk-5.2 \ -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \ -DOPENJPEG_INCLUDE_DIR:PATH=/usr/include/openjpeg/ \ -DGDCM_USE_WXWIDGETS:BOOL=ON \ -DGDCM_PDF_DOCUMENTATION:BOOL=OFF", sourceDir="../%s" % get.srcDIR())
def setup(): options = "--disable-static \ --disable-gtk-doc-html \ --enable-zlib \ --disable-gtk-test \ --enable-poppler-qt4 \ --disable-poppler-qt5 \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg \ --enable-libopenjpeg \ --enable-poppler-glib \ --with-testdatadir=%s/%s/test" % (get.workDIR(), get.srcDIR()) if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --disable-utils \ --disable-gtk-test \ --disable-poppler-cpp \ --disable-poppler-qt4" autotools.configure(options)
def install(): if get.buildTYPE() != "emul32": shelltools.system("DESTDIR=%s ninja -C build install" % get.installDIR()) if get.buildTYPE() == "emul32": shelltools.cd("build/src") pisitools.insinto("/usr/lib32/cmake", "../*.cmake") pisitools.insinto("/usr/lib32/pkgconfig", "../*.pc") pisitools.dolib_so("libpulsecommon-15.0.so", "/usr/lib32/pulseaudio") pisitools.dolib_so("libpulsecommon-15.0.so", "/usr/lib32") pisitools.dolib_so("utils/libpulsedsp.so", "/usr/lib32/pulseaudio") shelltools.cd("pulse") for t in [ "libpulse.so", "libpulse.so.0", "libpulse.so.0.24.0", "libpulse-simple.so", "libpulse-simple.so.0", "libpulse-simple.so.0.1.1", "libpulse-mainloop-glib.so", "libpulse-mainloop-glib.so.0", "libpulse-mainloop-glib.so.0.0.6", ]: pisitools.insinto("/usr/lib32", t) shelltools.cd("%s/%s" % (get.workDIR(), get.srcDIR())) # Disable autospawn by default shelltools.system( "sed -e '/autospawn/iautospawn= yes' -i '%s/etc/pulse/client.conf'" % get.installDIR()) # Needed for service.py pisitools.dodir("/run/pulse") pisitools.dodir("/var/lib/pulse") pisitools.dodoc("NEWS", "README") pisitools.dohtml("build/doxygen/html/*")
def install(): pisitools.dodir("/opt/google/talkplugin") shelltools.copy("%s/%s/*" % (get.workDIR(), get.srcDIR()), "%s/opt/google/talkplugin" % get.installDIR()) pisitools.dosym("/opt/google/talkplugin/libnpgoogletalk64.so", "/usr/lib/browser-plugins/libnpgoogletalk64.so") pisitools.dosym("/opt/google/talkplugin/libnpgtpo3dautoplugin.so", "/usr/lib/browser-plugins/libnpgtpo3dautoplugin.so")
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import shelltools from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get WorkDir = "%s-stable" % get.srcDIR() def setup(): autotools.autoreconf("-fi") autotools.configure("--enable-dynamic-pcre \ --enable-zlib \ --with-user=privoxy \ --with-group=privoxy \ --without-docbook \ --without-db2html") def build(): autotools.make() def install(): pisitools.insinto("/usr/sbin", "privoxy") pisitools.doman("privoxy.1") pisitools.dodir("/etc/privoxy/templates") pisitools.insinto("/etc/privoxy", "*.action")
def build(): autotools.make() shelltools.export("LD_LIBRARY_PATH", "%s/%s/Source/obj:${LD_LIBRARY_PATH}" % (get.workDIR(), get.srcDIR())) autotools.make("-C Documentation \ GNUSTEP_CONFIG_FILE=%s/GNUstep.conf" % WorkPath)
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2008 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import get from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools WorkDir = "%s-alpha-src" % get.srcDIR() def setup(): shelltools.system("lrelease-qt4 qwit.pro") shelltools.system("qmake-qt4") # Change C/XXFLAGS pisitools.dosed("Makefile", "CFLAGS = -pipe -O2", "CFLAGS = %s" % get.CFLAGS()) pisitools.dosed("Makefile", "CXXFLAGS = -pipe -O2", "CXXFLAGS = %s" % get.CXXFLAGS()) def build(): autotools.make() def install(): pisitools.dobin("qwit") pisitools.insinto("/usr/share/pixmaps", "images/qwit.png") pisitools.dodoc("AUTHORS", "COPYING", "README")
def setup(): pisitools.dosed( "%s/%s/include/ldap_defaults.h" % (get.workDIR(), get.srcDIR()), "(#define LDAPI_SOCK).*", '\\1 "/var/run/openldap/slapd.sock"' ) shelltools.export("CFLAGS","%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) shelltools.export("CPPFLAGS","%s -D_REENTRANT -D_GNU_SOURCE -fPIC" % get.CFLAGS()) options = "--prefix=/usr \ --enable-bdb \ --enable-ldbm-api=berkeley \ --enable-hdb=mod \ --enable-slapd \ --enable-slurpd \ --enable-ldbm \ --enable-passwd=mod \ --enable-phonetic=mod \ --enable-dnssrv=mod \ --enable-ldap \ --enable-wrappers \ --enable-meta=mod \ --enable-monitor=mod \ --enable-null=mod \ --enable-shell=mod \ --enable-rewrite \ --enable-rlookups \ --enable-aci \ --enable-modules \ --enable-cleartext \ --enable-lmpasswd \ --enable-spasswd \ --enable-slapi \ --enable-dyngroup \ --enable-proxycache \ --enable-perl \ --enable-syslog \ --enable-dynamic \ --enable-local \ --enable-proctitle \ --enable-overlays=mod \ --with-tls \ --with-pic \ --with-cyrus-sasl \ --enable-crypt \ --with-ssl=openssl \ --enable-ipv6 \ --localstatedir=/var/lib" if get.buildTYPE() == "emul32": options += " --prefix=/emul32 \ --libdir=/usr/lib32 \ --libexecdir=/emul32/libexec \ --disable-bdb \ --disable-hdb \ --disable-wrappers \ --disable-spasswd \ --disable-perl \ --without-cyrus-sasl" shelltools.export("CC", "%s -m32" % get.CC()) shelltools.export("CXX", "%s -m32" % get.CXX()) autotools.configure(options)
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get shelltools.export("HOME", get.workDIR()) WorkPath="%s/%s" % (get.workDIR(), get.srcDIR()) 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(): autotools.make() shelltools.export("LD_LIBRARY_PATH", "%s/%s/Source/obj:${LD_LIBRARY_PATH}" % (get.workDIR(), get.srcDIR())) autotools.make("-C Documentation \
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc(get.workDIR() + "/" + get.srcDIR() +"/share/doc/*")