diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-03 17:56:02 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-03 17:56:02 +0000 |
commit | aa820102c854fc2be9d9fe58b12611e0b5acea54 (patch) | |
tree | 8161237234a8fd925799faa36a624c8cea8d6d72 /meta/packages/bzip2 | |
parent | 575235fc0371eb13ea9c4632028f7cb7766a9880 (diff) | |
download | poky-aa820102c854fc2be9d9fe58b12611e0b5acea54.tar.gz |
bzip2: Drop 1.0.2 version
Diffstat (limited to 'meta/packages/bzip2')
-rw-r--r-- | meta/packages/bzip2/bzip2-1.0.2/installpaths.patch | 103 | ||||
-rw-r--r-- | meta/packages/bzip2/bzip2_1.0.2.bb | 41 |
2 files changed, 0 insertions, 144 deletions
diff --git a/meta/packages/bzip2/bzip2-1.0.2/installpaths.patch b/meta/packages/bzip2/bzip2-1.0.2/installpaths.patch deleted file mode 100644 index e7d09a71c5..0000000000 --- a/meta/packages/bzip2/bzip2-1.0.2/installpaths.patch +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- bzip2-1.0.2/Makefile~installpaths | ||
7 | +++ bzip2-1.0.2/Makefile | ||
8 | @@ -12,8 +12,12 @@ | ||
9 | CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES) | ||
10 | |||
11 | # Where you want it installed when you do 'make install' | ||
12 | -PREFIX=/usr | ||
13 | - | ||
14 | +DESTDIR= | ||
15 | +prefix=/usr | ||
16 | +bindir=$(prefix)/bin | ||
17 | +mandir=$(prefix)/man | ||
18 | +includedir=$(prefix)/include | ||
19 | +libdir=$(prefix)/lib | ||
20 | |||
21 | OBJS= blocksort.o \ | ||
22 | huffman.o \ | ||
23 | @@ -58,43 +62,43 @@ | ||
24 | @cat words3 | ||
25 | |||
26 | install: bzip2 bzip2recover | ||
27 | - if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi | ||
28 | - if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi | ||
29 | - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi | ||
30 | - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi | ||
31 | - if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi | ||
32 | - cp -f bzip2 $(PREFIX)/bin/bzip2 | ||
33 | - cp -f bzip2 $(PREFIX)/bin/bunzip2 | ||
34 | - cp -f bzip2 $(PREFIX)/bin/bzcat | ||
35 | - cp -f bzip2recover $(PREFIX)/bin/bzip2recover | ||
36 | - chmod a+x $(PREFIX)/bin/bzip2 | ||
37 | - chmod a+x $(PREFIX)/bin/bunzip2 | ||
38 | - chmod a+x $(PREFIX)/bin/bzcat | ||
39 | - chmod a+x $(PREFIX)/bin/bzip2recover | ||
40 | - cp -f bzip2.1 $(PREFIX)/man/man1 | ||
41 | - chmod a+r $(PREFIX)/man/man1/bzip2.1 | ||
42 | - cp -f bzlib.h $(PREFIX)/include | ||
43 | - chmod a+r $(PREFIX)/include/bzlib.h | ||
44 | - cp -f libbz2.a $(PREFIX)/lib | ||
45 | - chmod a+r $(PREFIX)/lib/libbz2.a | ||
46 | - cp -f bzgrep $(PREFIX)/bin/bzgrep | ||
47 | - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep | ||
48 | - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep | ||
49 | - chmod a+x $(PREFIX)/bin/bzgrep | ||
50 | - cp -f bzmore $(PREFIX)/bin/bzmore | ||
51 | - ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless | ||
52 | - chmod a+x $(PREFIX)/bin/bzmore | ||
53 | - cp -f bzdiff $(PREFIX)/bin/bzdiff | ||
54 | - ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp | ||
55 | - chmod a+x $(PREFIX)/bin/bzdiff | ||
56 | - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 | ||
57 | - chmod a+r $(PREFIX)/man/man1/bzgrep.1 | ||
58 | - chmod a+r $(PREFIX)/man/man1/bzmore.1 | ||
59 | - chmod a+r $(PREFIX)/man/man1/bzdiff.1 | ||
60 | - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1 | ||
61 | - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1 | ||
62 | - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 | ||
63 | - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 | ||
64 | + if ( test ! -d $(DESTDIR)$(bindir) ) ; then mkdir -p $(DESTDIR)$(bindir) ; fi | ||
65 | + if ( test ! -d $(DESTDIR)$(libdir) ) ; then mkdir -p $(DESTDIR)$(libdir) ; fi | ||
66 | + if ( test ! -d $(DESTDIR)$(mandir) ) ; then mkdir -p $(DESTDIR)$(mandir) ; fi | ||
67 | + if ( test ! -d $(DESTDIR)$(mandir)/man1 ) ; then mkdir -p $(DESTDIR)$(mandir)/man1 ; fi | ||
68 | + if ( test ! -d $(DESTDIR)$(includedir) ) ; then mkdir -p $(DESTDIR)$(includedir) ; fi | ||
69 | + cp -f bzip2 $(DESTDIR)$(bindir)/bzip2 | ||
70 | + cp -f bzip2 $(DESTDIR)$(bindir)/bunzip2 | ||
71 | + cp -f bzip2 $(DESTDIR)$(bindir)/bzcat | ||
72 | + cp -f bzip2recover $(DESTDIR)$(bindir)/bzip2recover | ||
73 | + chmod a+x $(DESTDIR)$(bindir)/bzip2 | ||
74 | + chmod a+x $(DESTDIR)$(bindir)/bunzip2 | ||
75 | + chmod a+x $(DESTDIR)$(bindir)/bzcat | ||
76 | + chmod a+x $(DESTDIR)$(bindir)/bzip2recover | ||
77 | + cp -f bzip2.1 $(DESTDIR)$(mandir)/man1 | ||
78 | + chmod a+r $(DESTDIR)$(mandir)/man1/bzip2.1 | ||
79 | + cp -f bzlib.h $(DESTDIR)$(includedir) | ||
80 | + chmod a+r $(DESTDIR)$(includedir)/bzlib.h | ||
81 | + cp -f libbz2.a $(DESTDIR)$(libdir) | ||
82 | + chmod a+r $(DESTDIR)$(libdir)/libbz2.a | ||
83 | + cp -f bzgrep $(DESTDIR)$(bindir)/bzgrep | ||
84 | + ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzegrep | ||
85 | + ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzfgrep | ||
86 | + chmod a+x $(DESTDIR)$(bindir)/bzgrep | ||
87 | + cp -f bzmore $(DESTDIR)$(bindir)/bzmore | ||
88 | + ln $(DESTDIR)$(bindir)/bzmore $(DESTDIR)$(bindir)/bzless | ||
89 | + chmod a+x $(DESTDIR)$(bindir)/bzmore | ||
90 | + cp -f bzdiff $(DESTDIR)$(bindir)/bzdiff | ||
91 | + ln $(DESTDIR)$(bindir)/bzdiff $(DESTDIR)$(bindir)/bzcmp | ||
92 | + chmod a+x $(DESTDIR)$(bindir)/bzdiff | ||
93 | + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(DESTDIR)$(mandir)/man1 | ||
94 | + chmod a+r $(DESTDIR)$(mandir)/man1/bzgrep.1 | ||
95 | + chmod a+r $(DESTDIR)$(mandir)/man1/bzmore.1 | ||
96 | + chmod a+r $(DESTDIR)$(mandir)/man1/bzdiff.1 | ||
97 | + echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1 | ||
98 | + echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1 | ||
99 | + echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1 | ||
100 | + echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1 | ||
101 | |||
102 | distclean: clean | ||
103 | clean: | ||
diff --git a/meta/packages/bzip2/bzip2_1.0.2.bb b/meta/packages/bzip2/bzip2_1.0.2.bb deleted file mode 100644 index 1e1cb8e539..0000000000 --- a/meta/packages/bzip2/bzip2_1.0.2.bb +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | DESCRIPTION = "Very high-quality data compression program." | ||
2 | SECTION = "console/utils" | ||
3 | PR = "r1" | ||
4 | |||
5 | LICENSE = "bzip2" | ||
6 | SRC_URI = "ftp://sources.redhat.com/pub/bzip2/v102/bzip2-${PV}.tar.gz \ | ||
7 | file://installpaths.patch;patch=1" | ||
8 | |||
9 | CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64" | ||
10 | |||
11 | do_compile () { | ||
12 | oe_runmake -f Makefile-libbz2_so | ||
13 | ln -sf libbz2.so.1.0.2 libbz2.so.1.0 | ||
14 | ln -sf libbz2.so.1.0.2 libbz2.so.1 | ||
15 | ln -sf libbz2.so.1.0.2 libbz2.so | ||
16 | oe_runmake libbz2.a bzip2 bzip2recover | ||
17 | } | ||
18 | |||
19 | do_stage () { | ||
20 | install -m 0644 bzlib.h ${STAGING_INCDIR}/ | ||
21 | oe_libinstall -a -so libbz2 ${STAGING_LIBDIR} | ||
22 | } | ||
23 | |||
24 | do_install () { | ||
25 | oe_runmake 'DESTDIR=${D}' install | ||
26 | oe_libinstall -a -so libbz2 ${D}${libdir} | ||
27 | mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN} | ||
28 | mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN} | ||
29 | } | ||
30 | |||
31 | |||
32 | pkg_postinst_${PN} () { | ||
33 | update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100 | ||
34 | update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100 | ||
35 | } | ||
36 | |||
37 | |||
38 | pkg_prerm_${PN} () { | ||
39 | update-alternatives --remove bunzip2 bunzip2.${PN} | ||
40 | update-alternatives --remove bzcat bzcat.${PN} | ||
41 | } | ||