]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
dialog: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Nov 2011 21:42:14 +0000 (22:42 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Nov 2011 21:42:14 +0000 (22:42 +0100)
dialog/dialog.nm [new file with mode: 0644]
dialog/patches/dialog-incdir.patch [new file with mode: 0644]
dialog/patches/dialog-libs.patch [new file with mode: 0644]
dialog/patches/dialog-multilib.patch [new file with mode: 0644]

diff --git a/dialog/dialog.nm b/dialog/dialog.nm
new file mode 100644 (file)
index 0000000..00fefbf
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = dialog
+version    = 1.1
+svn_ver    = 20111020
+release    = 1.%{svn_ver}
+thisapp    = %{name}-%{version}-%{svn_ver}
+
+groups     = Applications/System
+url        = http://invisible-island.net/dialog/dialog.html
+license    = LGPLv2
+summary    = A utility for creating TTY dialog boxes.
+
+description
+       Dialog is a utility that allows you to show dialog boxes (containing
+       questions or messages) in TTY (text mode) interfaces.  Dialog is called
+       from within a shell script.  The following dialog boxes are implemented:
+       yes/no, menu, input, message, text, info, checklist, radiolist, and
+       gauge.
+end
+
+source_dl  = ftp://invisible-island.net/dialog/
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               findutils
+               gettext
+               libtool
+               ncurses-devel
+       end
+
+       configure_options += \
+               --enable-nls \
+               --with-libtool \
+               --with-ncursesw \
+               --includedir=/usr/include/dialog \
+               --mandir=/usr/share/man
+
+       install_cmds
+               chmod -v 755 %{BUILDROOT}/usr/lib/libdialog.so.*.*.*
+       end
+end
+
+quality-agent
+       whitelist_rpath
+               /usr/lib
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+end
diff --git a/dialog/patches/dialog-incdir.patch b/dialog/patches/dialog-incdir.patch
new file mode 100644 (file)
index 0000000..f31f57b
--- /dev/null
@@ -0,0 +1,23 @@
+diff -up dialog-1.1-20110707/dialog-config.in.incdir dialog-1.1-20110707/dialog-config.in
+--- dialog-1.1-20110707/dialog-config.in.incdir        2011-01-06 10:38:03.000000000 +0100
++++ dialog-1.1-20110707/dialog-config.in       2011-07-26 13:00:02.692038027 +0200
+@@ -35,6 +35,7 @@ bindir="@bindir@"
+ libdir="@libdir@"
+ datadir="@datadir@"
+ mandir="@mandir@"
++includedir="@includedir@"
+ THIS="@PACKAGE@"
+@@ -67,10 +68,7 @@ while test $# -gt 0; do
+               ;;
+       # compile/link
+       --cflags)
+-              INCS=
+-              if test "${prefix}/include" != /usr/include ; then
+-                      INCS="-I${prefix}/include"
+-              fi
++              INCS="-I$includedir"
+               sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
+                       $INCS
+ ENDECHO
diff --git a/dialog/patches/dialog-libs.patch b/dialog/patches/dialog-libs.patch
new file mode 100644 (file)
index 0000000..8669336
--- /dev/null
@@ -0,0 +1,17 @@
+diff -up dialog-1.1-20110707/makefile.in.libs dialog-1.1-20110707/makefile.in
+--- dialog-1.1-20110707/makefile.in.libs       2011-06-25 02:27:56.000000000 +0200
++++ dialog-1.1-20110707/makefile.in    2011-07-26 13:04:50.389183890 +0200
+@@ -176,11 +176,11 @@ dialog$o \
+ $(OBJECTS) : $(srcdir)/dialog.h $(srcdir)/dlg_keys.h dlg_config.h VERSION
+ $(LIB) : $(LIB_OBJECT)
+-      $(LIBTOOL_CREATE) $(LIB) $(LIB_OBJECT)
++      $(LIBTOOL_CREATE) $(LIB) $(LIB_OBJECT) $(LIBS)
+       $(RANLIB) $@
+ dialog$x : $(LIB) dialog$o @INTLDIR_MAKE@ @INTLLIBS@
+-      $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(LDFLAGS) $(LIBS)
++      $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(LDFLAGS)
+ clean \
+ distclean \
diff --git a/dialog/patches/dialog-multilib.patch b/dialog/patches/dialog-multilib.patch
new file mode 100644 (file)
index 0000000..fc35c76
--- /dev/null
@@ -0,0 +1,32 @@
+diff -up dialog-1.1-20110707/dialog-config.in.multilib dialog-1.1-20110707/dialog-config.in
+--- dialog-1.1-20110707/dialog-config.in.multilib      2011-07-26 13:01:29.929082616 +0200
++++ dialog-1.1-20110707/dialog-config.in       2011-07-26 13:01:29.932082618 +0200
+@@ -32,7 +32,7 @@ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ bindir="@bindir@"
+-libdir="@libdir@"
++libdir=
+ datadir="@datadir@"
+ mandir="@mandir@"
+ includedir="@includedir@"
+@@ -75,7 +75,7 @@ ENDECHO
+               ;;
+       --libs)
+               sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
+-                      -L${exec_prefix}/lib -l${THIS} @LIBS@
++                      -l${THIS}
+ ENDECHO
+               ;;
+       # identification
+diff -up dialog-1.1-20110707/headers-sh.in.multilib dialog-1.1-20110707/headers-sh.in
+--- dialog-1.1-20110707/headers-sh.in.multilib 2011-01-06 10:38:25.000000000 +0100
++++ dialog-1.1-20110707/headers-sh.in  2011-07-26 13:02:44.177120225 +0200
+@@ -127,6 +127,7 @@ EOF
+               echo "s,#include <${pkgname}_,#include <${PACKAGE}/${pkgname}_," >>$TMPSED
+       fi
++      echo '/_FILE_OFFSET_BITS/d' >>$TMPSED
+       # reduce the count if possible, since some old sed's limit is 100 lines
+       sort -u $TMPSED >headers.tmp
+       mv headers.tmp $TMPSED