diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-24 19:17:51 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-24 19:17:51 +0200 |
commit | 0f8469e5c7f3477b3c521fb7f672fca8c294c0f3 (patch) | |
tree | cbfe4e4615efcaf6c401e63d6b180459a448afd9 /package | |
parent | d50d57eada12d4a6eb4dfd7130fb6f56cb784431 (diff) |
some work on lemote
- add new package bzip2
- make subpackage libblkid needed for swapon utility
- enable hibernation on lemote
Diffstat (limited to 'package')
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/Depends.mk | 1 | ||||
-rw-r--r-- | package/Makefile | 2 | ||||
-rw-r--r-- | package/bzip2/Config.in | 6 | ||||
-rw-r--r-- | package/bzip2/Makefile | 27 | ||||
-rw-r--r-- | package/bzip2/patches/patch-Makefile | 34 | ||||
-rw-r--r-- | package/bzip2/patches/patch-Makefile.orig | 34 | ||||
-rw-r--r-- | package/cryptinit/src/cryptinit.c | 26 | ||||
-rw-r--r-- | package/e2fsprogs/Config.in | 10 | ||||
-rw-r--r-- | package/e2fsprogs/Makefile | 15 | ||||
-rw-r--r-- | package/e2fsprogs/patches/patch-misc_Makefile_in | 12 | ||||
-rw-r--r-- | package/util-linux-ng/Config.in | 1 | ||||
-rw-r--r-- | package/util-linux-ng/Makefile | 3 |
13 files changed, 137 insertions, 35 deletions
diff --git a/package/Config.in b/package/Config.in index f9ea0273b..7dfe05a9d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -70,6 +70,7 @@ source "package/vilistextum/Config.in" endmenu menu "Misc" +source "package/bzip2/Config.in" source "package/collectd/Config.in" source "package/deco/Config.in" source "package/digitemp/Config.in" diff --git a/package/Depends.mk b/package/Depends.mk index 46fab2a02..539317f19 100644 --- a/package/Depends.mk +++ b/package/Depends.mk @@ -225,6 +225,7 @@ tor-compile: libevent-compile openssl-compile zlib-compile trafshow: ncurses-compile libpcap-compile usbutils-compile: libusb-compile ussp-push-compile: openobex-compile +util-linux-ng-compile: e2fsprogs-compile ncurses-compile vilistextum-compile: libiconv-compile vim-compile: ncurses-compile vnc-reflector-compile: jpeg-compile zlib-compile diff --git a/package/Makefile b/package/Makefile index 40850c724..cb1877374 100644 --- a/package/Makefile +++ b/package/Makefile @@ -32,6 +32,7 @@ package-$(ADK_COMPILE_AVAHI) += avahi package-$(ADK_COMPILE_AXTLS) += axtls package-$(ADK_PACKAGE_BASH) += bash package-$(ADK_COMPILE_BC) += bc +package-$(ADK_PACKAGE_BZIP2) += bzip2 package-$(ADK_PACKAGE_CA_CERTS) += ca-certificates package-$(ADK_PACKAGE_CFGFS) += cfgfs package-$(ADK_PACKAGE_CRYPTINIT) += cryptinit @@ -73,6 +74,7 @@ package-$(ADK_PACKAGE_DROPBEAR) += dropbear package-$(ADK_PACKAGE_DSNIFF) += dsniff package-$(ADK_PACKAGE_E2FSPROGS) += e2fsprogs package-$(ADK_PACKAGE_LIBUUID) += e2fsprogs +package-$(ADK_PACKAGE_LIBBLKID) += e2fsprogs package-$(ADK_PACKAGE_ELINKS) += elinks package-$(ADK_PACKAGE_ESOUND) += esound package-$(ADK_PACKAGE_ETHER_WAKE) += ether-wake diff --git a/package/bzip2/Config.in b/package/bzip2/Config.in new file mode 100644 index 000000000..713b79569 --- /dev/null +++ b/package/bzip2/Config.in @@ -0,0 +1,6 @@ +config ADK_PACKAGE_BZIP2 + prompt "bzip2.............................. bzip2 compression utility" + tristate + default n + help + http://www.bzip.org diff --git a/package/bzip2/Makefile b/package/bzip2/Makefile new file mode 100644 index 000000000..e5c690ea7 --- /dev/null +++ b/package/bzip2/Makefile @@ -0,0 +1,27 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= bzip2 +PKG_VERSION:= 1.0.5 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 3c15a0c8d1d3ee1c46a1634d00617b1a +PKG_DESCR:= bzip2 compression utility +PKG_SECTION:= utils +PKG_URL:= http://www.bzip.org +PKG_SITES:= http://www.bzip.org/1.0.5/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,BZIP2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +XAKE_FLAGS+= PREFIX=${WRKINST}/usr +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/bzip2 ${IDIR_BZIP2}/usr/bin + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/bzip2/patches/patch-Makefile b/package/bzip2/patches/patch-Makefile new file mode 100644 index 000000000..0d15eab68 --- /dev/null +++ b/package/bzip2/patches/patch-Makefile @@ -0,0 +1,34 @@ +--- bzip2-1.0.5.orig/Makefile 2008-02-14 13:39:18.000000000 +0100 ++++ bzip2-1.0.5/Makefile 2009-08-23 20:18:12.000000000 +0200 +@@ -15,16 +15,16 @@ + SHELL=/bin/sh + + # To assist in cross-compiling +-CC=gcc +-AR=ar +-RANLIB=ranlib +-LDFLAGS= ++CC?=gcc ++AR?=ar ++RANLIB?=ranlib ++LDFLAGS?= + + BIGFILES=-D_FILE_OFFSET_BITS=64 +-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) ++CFLAGS?=-Wall -Winline -O2 -g $(BIGFILES) + + # Where you want it installed when you do 'make install' +-PREFIX=/usr/local ++PREFIX?=/usr + + + OBJS= blocksort.o \ +@@ -35,7 +35,7 @@ OBJS= blocksort.o \ + decompress.o \ + bzlib.o + +-all: libbz2.a bzip2 bzip2recover test ++all: libbz2.a bzip2 bzip2recover + + bzip2: libbz2.a bzip2.o + $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2 diff --git a/package/bzip2/patches/patch-Makefile.orig b/package/bzip2/patches/patch-Makefile.orig new file mode 100644 index 000000000..4884c38ee --- /dev/null +++ b/package/bzip2/patches/patch-Makefile.orig @@ -0,0 +1,34 @@ +--- bzip2-1.0.5.orig/Makefile 2008-02-14 13:39:18.000000000 +0100 ++++ bzip2-1.0.5/Makefile 2009-08-23 20:16:24.000000000 +0200 +@@ -15,16 +15,16 @@ + SHELL=/bin/sh + + # To assist in cross-compiling +-CC=gcc +-AR=ar +-RANLIB=ranlib +-LDFLAGS= ++CC?=gcc ++AR?=ar ++RANLIB?=ranlib ++LDFLAGS?= + + BIGFILES=-D_FILE_OFFSET_BITS=64 +-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) ++CFLAGS?=-Wall -Winline -O2 -g $(BIGFILES) + + # Where you want it installed when you do 'make install' +-PREFIX=/usr/local ++PREFIX=/usr + + + OBJS= blocksort.o \ +@@ -35,7 +35,7 @@ OBJS= blocksort.o \ + decompress.o \ + bzlib.o + +-all: libbz2.a bzip2 bzip2recover test ++all: libbz2.a bzip2 bzip2recover + + bzip2: libbz2.a bzip2.o + $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2 diff --git a/package/cryptinit/src/cryptinit.c b/package/cryptinit/src/cryptinit.c index b0d570846..98f7a5a19 100644 --- a/package/cryptinit/src/cryptinit.c +++ b/package/cryptinit/src/cryptinit.c @@ -56,8 +56,7 @@ #define DEF_KERN_ROOT_SRC "/dev/mapper/root" #define DEF_KERN_ROOT_TGT "/mnt" #define DEF_KERN_ROOT_FS "xfs" -#define DEF_KERN_INIT "/start" -#define DEF_KERN_RUNLEVEL "3" +#define DEF_KERN_INIT "/init" #ifndef MS_MOVE #define MS_MOVE 8192 @@ -76,7 +75,6 @@ struct commandline { struct mntopts root; char *init; char *resume; - char *runlevel; ushort do_resume; ushort debug; }; @@ -116,7 +114,7 @@ static void cmdLineLog(int class, char *msg) { } } -int switch_root(char *console, char *newroot, char *init, char *initarg) { +int switch_root(char *console, char *newroot, char *init) { if (chdir(newroot)) { fprintf(stderr,"bad newroot %s\n",newroot); @@ -203,11 +201,6 @@ int parse_cmdline(char *line) { } else if(!strncmp(tmpstr, "debug", 5)) { cmdline.debug=1; - } else if(strlen(tmpstr) == 1) { - tmpnum = (int)strtol(tmpstr, invchars, 10); - if(**invchars == '\0' && tmpnum >= 0) { - cmdline.runlevel = tmpstr; - } } else { if(cmdline.debug) printf("unknown bootparam flag %s\n",tmpstr); @@ -217,8 +210,8 @@ int parse_cmdline(char *line) { debug_printf("\n Bootparams scanned:\n"); debug_printf("root\t%s\nrootfstype\t%s\ninit\t%s\nresume\t%s\ndo_resume\t%i\n", cmdline.root.source,cmdline.root.fstype,cmdline.init,cmdline.resume,cmdline.do_resume); - debug_printf("debug\t%i\nrunlevel\t%s\n\n", - cmdline.debug,cmdline.runlevel); + debug_printf("debug\t%i\n\n", + cmdline.debug); return 0; } @@ -234,7 +227,6 @@ int get_cmdline() { cmdline.resume = DEF_KERN_SWAP; cmdline.do_resume = 1; cmdline.debug = 0; - cmdline.runlevel = DEF_KERN_RUNLEVEL; /* read out cmdline from /proc */ str = read_cmdline(); @@ -261,11 +253,11 @@ void kmsg_log(int level) { void do_resume(void) { FILE *fd; - debug_msg("Running tuxonice-resume\n"); - if((fd = fopen("/sys/power/tuxonice/do_resume", "a")) == NULL) { + debug_msg("Trying to resume\n"); + if((fd = fopen("/sys/power/resume", "a")) == NULL) { return; } - fprintf(fd, "1\n"); + fprintf(fd, "254:0\n"); fclose(fd); } @@ -338,7 +330,7 @@ int main(void) { ret = uname(&info); if (ret < 0) - fprintf(stderr, "Error calling uname\n"); + fprintf(stderr, "Error calling uname function\n"); /* security by obscurity */ printf("This is %s.%s (Linux %s %s)\n", hostname, domainname, info.machine, info.release); @@ -413,7 +405,7 @@ int main(void) { memset(pass, 0, strlen(pass)*sizeof(char)); debug_msg("Switching root\n"); - switch_root(DEF_KERN_CONS, cmdline.root.target, cmdline.init, cmdline.runlevel); + switch_root(DEF_KERN_CONS, cmdline.root.target, cmdline.init); return(0); } diff --git a/package/e2fsprogs/Config.in b/package/e2fsprogs/Config.in index 0dff689d1..011b3b257 100644 --- a/package/e2fsprogs/Config.in +++ b/package/e2fsprogs/Config.in @@ -1,9 +1,10 @@ config ADK_PACKAGE_E2FSPROGS - prompt "e2fsprogs......................... Ext2/3 filesystem utilities" + prompt "e2fsprogs......................... Ext2/3/4 filesystem utilities" tristate default n select ADK_PACKAGE_LIBUUID select ADK_PACKAGE_LIBCOM_ERR + select ADK_PACKAGE_LIBBLKID help This package contains essential ext2 filesystem utilities which consists of e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2 @@ -18,6 +19,13 @@ config ADK_PACKAGE_LIBUUID default n help +config ADK_PACKAGE_LIBBLKID + prompt "libblkid........................ BlockID library" + depends on ADK_PACKAGE_E2FSPROGS + tristate + default n + help + config ADK_PACKAGE_LIBCOM_ERR prompt "libcom_err...................... Common error library" depends on ADK_PACKAGE_E2FSPROGS diff --git a/package/e2fsprogs/Makefile b/package/e2fsprogs/Makefile index fad66f179..c6d924b84 100644 --- a/package/e2fsprogs/Makefile +++ b/package/e2fsprogs/Makefile @@ -4,9 +4,9 @@ include ${TOPDIR}/rules.mk PKG_NAME:= e2fsprogs -PKG_VERSION:= 1.41.5 +PKG_VERSION:= 1.41.9 PKG_RELEASE:= 1 -PKG_MD5SUM:= e218df6c84fc17c1126d31de9472a76c +PKG_MD5SUM:= 52f60a9e19a02f142f5546f1b5681927 PKG_DESCR:= Ext2/3/4 filesystem utilities PKG_SECTION:= admin PKG_URL:= http://e2fsprogs.sourceforge.net @@ -16,19 +16,22 @@ PKG_DESCR_1:= UUID library PKG_SECTION_1:= libs PKG_DESCR_2:= Common error library PKG_SECTION_2:= libs +PKG_DESCR_3:= Libblkid +PKG_SECTION_3:= libs include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION_1})) $(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION_2})) +$(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION_3})) CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= --enable-elf-shlibs \ --disable-tls \ --enable-dynamic-e2fsck BUILD_STYLE= auto -INSTALL_STYLE= auto confprog +INSTALL_STYLE= auto INSTALL_TARGET+= install-libs pre-build: @@ -44,8 +47,12 @@ post-install: ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSPROGS}/usr/sbin/ ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_E2FSPROGS}/usr/sbin/ ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_E2FSPROGS}/usr/sbin/ - ${CP} ${WRKINST}/usr/lib/lib{blkid,e2p,ext2fs}.so.* \ + ${CP} ${WRKINST}/usr/lib/lib{e2p,ext2fs}.so.* \ ${IDIR_E2FSPROGS}/usr/lib/ + # subpackage libblkid + ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib + ${CP} ${WRKINST}/usr/lib/libblkid.so.* \ + ${IDIR_LIBBLKID}/usr/lib/ # subpackage libcom_err ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib ${CP} ${WRKINST}/usr/lib/libcom_err.so.* \ diff --git a/package/e2fsprogs/patches/patch-misc_Makefile_in b/package/e2fsprogs/patches/patch-misc_Makefile_in deleted file mode 100644 index f79bd78d7..000000000 --- a/package/e2fsprogs/patches/patch-misc_Makefile_in +++ /dev/null @@ -1,12 +0,0 @@ -$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ ---- e2fsprogs-1.41.3.orig/misc/Makefile.in 2008-10-07 16:22:39.000000000 +0200 -+++ e2fsprogs-1.41.3/misc/Makefile.in 2009-01-13 14:16:03.661864854 +0100 -@@ -113,7 +113,7 @@ tune2fs.static: $(TUNE2FS_OBJS) $(STATIC - blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS) - @echo " LD $@" - @$(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \ -- $(LIBEXT2FS) -+ $(LIBEXT2FS) $(LIBCOM_ERR) - - e2image: $(E2IMAGE_OBJS) $(DEPLIBS) - @echo " LD $@" diff --git a/package/util-linux-ng/Config.in b/package/util-linux-ng/Config.in index 8c39f0a55..afb5d5104 100644 --- a/package/util-linux-ng/Config.in +++ b/package/util-linux-ng/Config.in @@ -25,6 +25,7 @@ config ADK_PACKAGE_SWAP_UTILS tristate default n select ADK_COMPILE_UTIL_LINUX_NG + select ADK_PACKAGE_LIBBLKID help A collection of tools to manage swap space : * mkswap diff --git a/package/util-linux-ng/Makefile b/package/util-linux-ng/Makefile index 397fdd572..4df74bf10 100644 --- a/package/util-linux-ng/Makefile +++ b/package/util-linux-ng/Makefile @@ -14,13 +14,14 @@ PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/util-linux-ng/v2.15/} PKG_DESCR_1:= Partition table manipulation utility PKG_DESCR_2:= Swap space management utilities +PKG_DEPENDS_SWAP:= libblkid PKG_DESCR_3:= Loop devices setup and control utility PKG_DEPENDS_3:= kmod-loop include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION})) -$(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION})) +$(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_SWAP},${PKG_DESCR_2},${PKG_SECTION})) $(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_3},${PKG_DESCR_3},${PKG_SECTION})) CONFIGURE_STYLE:= gnu |