Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: Makefile
===================================================================
--- Makefile	(nonexistent)
+++ Makefile	(revision 5)
@@ -0,0 +1,56 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url         = $(DOWNLOAD_SERVER)/sources/packages/n/maxmind/geoipupdate
+
+versions    = 4.8.0
+pkgname     = geoipupdate
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+patches     = $(CURDIR)/patches/geoipupdate-4.8.0-config.patch
+
+.NOTPARALLEL: $(patches)
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======" ; \
+	 for tarball in $(tarballs) ; do \
+	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+	 done ; wait
+
+$(sha1s): $(tarballs)
+	@for sha in $@ ; do \
+	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+	   touch $$sha ; \
+	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+	   sha1sum --check $$sha ; ret="$$?" ; \
+	   if [ "$$ret" == "1" ]; then \
+	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+	     exit 1 ; \
+	   fi ; \
+	 done
+
+$(patches): $(sha1s)
+	@echo -e "\n======= Create Patches =======\n" ; \
+	 ( cd create-4.8.0-config-patch ; ./create.patch.sh ) ; \
+	 echo -e "\n"
+
+download_clean:
+	@rm -f $(tarballs) $(sha1s) $(patches)
Index: create-4.8.0-config-patch/create.patch.sh
===================================================================
--- create-4.8.0-config-patch/create.patch.sh	(nonexistent)
+++ create-4.8.0-config-patch/create.patch.sh	(revision 5)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=4.8.0
+
+tar --files-from=file.list -xJvf ../geoipupdate-$VERSION.tar.xz
+mv geoipupdate-$VERSION geoipupdate-$VERSION-orig
+
+cp -rf ./geoipupdate-$VERSION-new ./geoipupdate-$VERSION
+
+diff --unified -Nr  geoipupdate-$VERSION-orig  geoipupdate-$VERSION > geoipupdate-$VERSION-config.patch
+
+mv geoipupdate-$VERSION-config.patch ../patches
+
+rm -rf ./geoipupdate-$VERSION
+rm -rf ./geoipupdate-$VERSION-orig

Property changes on: create-4.8.0-config-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-4.8.0-config-patch/file.list
===================================================================
--- create-4.8.0-config-patch/file.list	(nonexistent)
+++ create-4.8.0-config-patch/file.list	(revision 5)
@@ -0,0 +1,2 @@
+geoipupdate-4.8.0/Makefile
+geoipupdate-4.8.0/cmd/geoipupdate/main.go
Index: create-4.8.0-config-patch/geoipupdate-4.8.0-new/Makefile
===================================================================
--- create-4.8.0-config-patch/geoipupdate-4.8.0-new/Makefile	(nonexistent)
+++ create-4.8.0-config-patch/geoipupdate-4.8.0-new/Makefile	(revision 5)
@@ -0,0 +1,67 @@
+ifndef BUILDDIR
+BUILDDIR=build
+endif
+
+ifndef CONFFILE
+ifeq ($(OS),Windows_NT)
+CONFFILE=%SystemDrive%\ProgramData\MaxMind\GeoIPUpdate\GeoIP.conf
+else
+CONFFILE=/etc/GeoIP.conf
+endif
+endif
+
+ifndef DATADIR
+ifeq ($(OS),Windows_NT)
+DATADIR=%SystemDrive%\ProgramData\MaxMind\GeoIPUpdate\GeoIP
+else
+DATADIR=/usr/share/GeoIP
+endif
+endif
+
+ifeq ($(OS),Windows_NT)
+MAYBE_CR=\r
+endif
+
+ifndef VERSION
+VERSION=4.8.0
+endif
+
+all: \
+	$(BUILDDIR)/geoipupdate \
+	data
+
+data: \
+	$(BUILDDIR)/GeoIP.conf \
+	$(BUILDDIR)/GeoIP.conf.md \
+	$(BUILDDIR)/geoipupdate.md \
+	$(BUILDDIR)/GeoIP.conf.5 \
+	$(BUILDDIR)/geoipupdate.1
+
+$(BUILDDIR):
+	mkdir -p $(BUILDDIR)
+
+$(BUILDDIR)/geoipupdate: $(BUILDDIR)
+	(cd cmd/geoipupdate && go build -compiler gccgo -gccgoflags '$(GCCGOFLAGS)')
+	cp cmd/geoipupdate/geoipupdate $(BUILDDIR)
+
+$(BUILDDIR)/GeoIP.conf: $(BUILDDIR) conf/GeoIP.conf.default
+	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' -e 's|$$|$(MAYBE_CR)|g' conf/GeoIP.conf.default > $(BUILDDIR)/GeoIP.conf
+
+$(BUILDDIR)/GeoIP.conf.md: $(BUILDDIR) doc/GeoIP.conf.md
+	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' -e 's|$$|$(MAYBE_CR)|g' doc/GeoIP.conf.md > $(BUILDDIR)/GeoIP.conf.md
+
+$(BUILDDIR)/geoipupdate.md: $(BUILDDIR) doc/geoipupdate.md
+	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' -e 's|$$|$(MAYBE_CR)|g' doc/geoipupdate.md > $(BUILDDIR)/geoipupdate.md
+
+$(BUILDDIR)/GeoIP.conf.5: $(BUILDDIR)/GeoIP.conf.md  $(BUILDDIR)/geoipupdate.md
+	dev-bin/make-man-pages.pl "$(BUILDDIR)"
+
+$(BUILDDIR)/geoipupdate.1: $(BUILDDIR)/GeoIP.conf.5
+
+clean:
+	rm -rf $(BUILDDIR)/GeoIP.conf \
+		   $(BUILDDIR)/GeoIP.conf.md \
+		   $(BUILDDIR)/geoipupdate \
+		   $(BUILDDIR)/geoipupdate.md \
+		   $(BUILDDIR)/GeoIP.conf.5 \
+		   $(BUILDDIR)/geoipupdate.1
Index: create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate/main.go
===================================================================
--- create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate/main.go	(nonexistent)
+++ create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate/main.go	(revision 5)
@@ -0,0 +1,78 @@
+package main
+
+import (
+	"fmt"
+	"log"
+	"net/http"
+	"os"
+	"path/filepath"
+
+	"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
+	"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/database"
+	"github.com/pkg/errors"
+)
+
+var (
+	version                  = "4.8.0"
+	defaultConfigFile        = "/etc/GeoIP.conf"
+	defaultDatabaseDirectory = "/usr/share/GeoIP"
+)
+
+func main() {
+	log.SetFlags(0)
+
+	if defaultConfigFile == "" {
+		defaultConfigFile = geoipupdate.DefaultConfigFile
+	}
+	if defaultDatabaseDirectory == "" {
+		defaultDatabaseDirectory = geoipupdate.DefaultDatabaseDirectory
+	}
+
+	args := getArgs()
+	fatalLogger := func(message string, err error) {
+		if args.StackTrace {
+			log.Print(fmt.Sprintf("%s: %+v", message, err))
+		} else {
+			log.Print(fmt.Sprintf("%s: %s", message, err))
+		}
+		os.Exit(1)
+	}
+
+	config, err := geoipupdate.NewConfig(
+		args.ConfigFile, defaultDatabaseDirectory, args.DatabaseDirectory, args.Verbose)
+	if err != nil {
+		fatalLogger(fmt.Sprintf("error loading configuration file %s", args.ConfigFile), err)
+	}
+
+	if config.Verbose {
+		log.Printf("geoipupdate version %s", version)
+		log.Printf("Using config file %s", args.ConfigFile)
+		log.Printf("Using database directory %s", config.DatabaseDirectory)
+	}
+
+	client := geoipupdate.NewClient(config)
+
+	if err = run(client, config); err != nil {
+		fatalLogger("error retrieving updates", err)
+	}
+}
+
+func run(client *http.Client, config *geoipupdate.Config) error {
+	dbReader := database.NewHTTPDatabaseReader(client, config)
+
+	for _, editionID := range config.EditionIDs {
+		filename, err := geoipupdate.GetFilename(config, editionID, client)
+		if err != nil {
+			return errors.Wrapf(err, "error retrieving filename for %s", editionID)
+		}
+		filePath := filepath.Join(config.DatabaseDirectory, filename)
+		dbWriter, err := database.NewLocalFileDatabaseWriter(filePath, config.LockFile, config.Verbose)
+		if err != nil {
+			return errors.Wrapf(err, "error creating database writer for %s", editionID)
+		}
+		if err := dbReader.Get(dbWriter, editionID); err != nil {
+			return errors.WithMessagef(err, "error while getting database for %s", editionID)
+		}
+	}
+	return nil
+}
Index: create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate
===================================================================
--- create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate	(nonexistent)
+++ create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate	(revision 5)

Property changes on: create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd/geoipupdate
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd
===================================================================
--- create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd	(nonexistent)
+++ create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd	(revision 5)

Property changes on: create-4.8.0-config-patch/geoipupdate-4.8.0-new/cmd
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: create-4.8.0-config-patch/geoipupdate-4.8.0-new
===================================================================
--- create-4.8.0-config-patch/geoipupdate-4.8.0-new	(nonexistent)
+++ create-4.8.0-config-patch/geoipupdate-4.8.0-new	(revision 5)

Property changes on: create-4.8.0-config-patch/geoipupdate-4.8.0-new
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: create-4.8.0-config-patch
===================================================================
--- create-4.8.0-config-patch	(nonexistent)
+++ create-4.8.0-config-patch	(revision 5)

Property changes on: create-4.8.0-config-patch
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: patches/README
===================================================================
--- patches/README	(nonexistent)
+++ patches/README	(revision 5)
@@ -0,0 +1,6 @@
+
+/* begin *
+
+   TODO: Leave some comment here.
+
+ * end */
Index: patches
===================================================================
--- patches	(nonexistent)
+++ patches	(revision 5)

Property changes on: patches
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~