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/a/utempter
+
+versions    = 1.2.1
+pkgname     = libutempter
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+patches     = $(CURDIR)/patches/libutempter-1.2.1.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-1.2.1-patch ; ./create.patch.sh ) ; \
+	 echo -e "\n"
+
+download_clean:
+	@rm -f $(tarballs) $(sha1s) $(patches)
Index: create-1.2.1-patch/create.patch.sh
===================================================================
--- create-1.2.1-patch/create.patch.sh	(nonexistent)
+++ create-1.2.1-patch/create.patch.sh	(revision 5)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=1.2.1
+
+tar --files-from=file.list -xzvf ../libutempter-$VERSION.tar.gz
+mv libutempter-$VERSION libutempter-$VERSION-orig
+
+cp -rf ./libutempter-$VERSION-new ./libutempter-$VERSION
+
+diff --unified -Nr  libutempter-$VERSION-orig  libutempter-$VERSION > libutempter-$VERSION.patch
+
+mv libutempter-$VERSION.patch ../patches
+
+rm -rf ./libutempter-$VERSION
+rm -rf ./libutempter-$VERSION-orig

Property changes on: create-1.2.1-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: create-1.2.1-patch/file.list
===================================================================
--- create-1.2.1-patch/file.list	(nonexistent)
+++ create-1.2.1-patch/file.list	(revision 5)
@@ -0,0 +1 @@
+libutempter-1.2.1/Makefile
Index: create-1.2.1-patch/libutempter-1.2.1-new/Makefile
===================================================================
--- create-1.2.1-patch/libutempter-1.2.1-new/Makefile	(nonexistent)
+++ create-1.2.1-patch/libutempter-1.2.1-new/Makefile	(revision 5)
@@ -0,0 +1,95 @@
+#
+# Copyright (C) 2001-2005,2010  Dmitry V. Levin <ldv@altlinux.org>
+#
+# Makefile for the libutempter project.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+#
+
+PROJECT = utempter
+VERSION = $(shell sed '/^Version: */!d;s///;q' libutempter.spec)
+MAJOR = 0
+
+SHAREDLIB = lib$(PROJECT).so
+SONAME = $(SHAREDLIB).$(MAJOR)
+STATICLIB = lib$(PROJECT).a
+MAP = lib$(PROJECT).map
+
+TARGETS = $(PROJECT) $(SHAREDLIB) $(STATICLIB)
+
+INSTALL = install
+libdir ?= /usr/lib
+libexecdir ?= /usr/lib
+includedir = /usr/include
+mandir ?= /usr/share/man
+man3dir = $(mandir)/man3
+DESTDIR =
+
+WARNINGS = -W -Wall -Waggregate-return -Wcast-align -Wconversion \
+	-Wdisabled-optimization -Wmissing-declarations \
+	-Wmissing-format-attribute -Wmissing-noreturn \
+	-Wmissing-prototypes -Wpointer-arith -Wredundant-decls \
+	-Wshadow -Wstrict-prototypes -Wwrite-strings
+COMPILE_DIALECT = -std=gnu99
+COMPILE_LFS =
+COMPILE_PIC = -fPIC
+COMPILE_PIE = -fPIE
+LINK_PIE = -pie
+LINK_NOW = -Wl,-z,now
+LINK_RELRO = -Wl,-z,relro
+LINK_STATS = -Wl,-stats
+override CPPFLAGS := $(COMPILE_DIALECT) $(COMPILE_LFS) -DLIBEXECDIR=\"$(libexecdir)\" $(CPPFLAGS)
+override CFLAGS := $(WARNINGS) $(CFLAGS) $(RPM_OPT_FLAGS)
+override LDFLAGS := $(LINK_RELRO) $(LINK_STATS) $(LDFLAGS)
+LDLIBS =
+
+all: $(TARGETS)
+
+%.os: %.c
+	$(COMPILE.c) $(COMPILE_PIC) $< $(OUTPUT_OPTION)
+
+$(PROJECT): utempter.c diag.h
+	$(LINK.c) $(COMPILE_PIE) $(LINK_PIE) $(LINK_NOW) $(LDLIBS) $< $(OUTPUT_OPTION)
+
+$(SHAREDLIB): iface.os $(MAP)
+	$(LINK.o) -shared \
+		-Wl,-soname,$(SONAME),--version-script=$(MAP),-z,defs \
+		-lc $< $(OUTPUT_OPTION)
+
+$(STATICLIB): iface.o
+	$(AR) $(ARFLAGS) $@ $<
+	-ranlib $@
+
+iface.os: iface.c utempter.h diag.h
+
+iface.o: iface.c utempter.h diag.h
+
+install:
+	mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/$(PROJECT) \
+		$(DESTDIR)$(includedir) $(DESTDIR)$(man3dir)
+	$(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
+	$(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
+	$(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
+	$(INSTALL) -p -m644 $(STATICLIB) $(DESTDIR)$(libdir)/
+	ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
+	ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
+	$(INSTALL) -p -m644 $(PROJECT).3 $(DESTDIR)$(man3dir)/
+	for n in lib$(PROJECT) utempter_add_record utempter_remove_record \
+	    utempter_remove_added_record utempter_set_helper; do \
+		ln -s $(PROJECT).3 $(DESTDIR)$(man3dir)/$$n.3; \
+	done
+
+clean:
+	$(RM) $(TARGETS) iface.o iface.os core *~
Index: create-1.2.1-patch/libutempter-1.2.1-new
===================================================================
--- create-1.2.1-patch/libutempter-1.2.1-new	(nonexistent)
+++ create-1.2.1-patch/libutempter-1.2.1-new	(revision 5)

Property changes on: create-1.2.1-patch/libutempter-1.2.1-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-1.2.1-patch
===================================================================
--- create-1.2.1-patch	(nonexistent)
+++ create-1.2.1-patch	(revision 5)

Property changes on: create-1.2.1-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
+*~