summaryrefslogtreecommitdiff
path: root/misc/dync
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-08-13 15:48:03 +0000
committeragc <agc@pkgsrc.org>1998-08-13 15:48:03 +0000
commit609dbf8d2507e6740befe25c28a24c82faf232ae (patch)
tree25cf6ab7a21731b1935f62ea5ed0a6930d713d8f /misc/dync
parent21ea0ec9dd70eff7925e08eb8b1fd6f4fe44f78c (diff)
downloadpkgsrc-609dbf8d2507e6740befe25c28a24c82faf232ae.tar.gz
Initial addition of dync, an awk-like utility which uses C as a
language, to the NetBSD packages collection.
Diffstat (limited to 'misc/dync')
-rw-r--r--misc/dync/Makefile13
-rw-r--r--misc/dync/files/md53
-rw-r--r--misc/dync/pkg/COMMENT1
-rw-r--r--misc/dync/pkg/DESCR30
-rw-r--r--misc/dync/pkg/PLIST3
5 files changed, 50 insertions, 0 deletions
diff --git a/misc/dync/Makefile b/misc/dync/Makefile
new file mode 100644
index 00000000000..3498b7a11e4
--- /dev/null
+++ b/misc/dync/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 1998/08/13 15:48:03 agc Exp $
+#
+
+DISTNAME= dync-1.1
+CATEGORIES= misc
+MASTER_SITES= http://www.westley.demon.co.uk/src/
+
+MAINTAINER= agc@netbsd.org
+
+GNU_CONFIGURE= yes
+ALL_TARGET= tst
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/dync/files/md5 b/misc/dync/files/md5
new file mode 100644
index 00000000000..38624165b77
--- /dev/null
+++ b/misc/dync/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/13 15:48:04 agc Exp $
+
+MD5 (dync-1.1.tar.gz) = 0fcdd7ea7a02d1d722ac15fe6d9ab0be
diff --git a/misc/dync/pkg/COMMENT b/misc/dync/pkg/COMMENT
new file mode 100644
index 00000000000..d4a3a82cc33
--- /dev/null
+++ b/misc/dync/pkg/COMMENT
@@ -0,0 +1 @@
+awk-like utility with C as language
diff --git a/misc/dync/pkg/DESCR b/misc/dync/pkg/DESCR
new file mode 100644
index 00000000000..c3c5727cc2f
--- /dev/null
+++ b/misc/dync/pkg/DESCR
@@ -0,0 +1,30 @@
+The dync utility is a small, but quite useful utility, which allows
+the use of C as a scripting language. This can be quite useful
+****SOMETIMES****, allowing access to system calls and library functions
+from the command line. For example, there are occasions when I want
+to see the struct stat for a directory entry, and want to be able to
+access st_mtime values, without having to parse output from "ls -l".
+A simple:
+
+int main(int argc, char **argv)
+{
+ struct stat st;
+ if (stat(argv[1], &st) == 0) {
+ printf("%lld\n", st.st_mtime);
+ }
+ exit(0);
+}
+
+will do the job. If I was to try this by other means, I would either
+have to install all of Perl, and then learn its idiosyncratic syntax,
+or write a custom C program, which I would then have to compile on
+each architecture I need.
+
+This utility relies on there being a C compiler on the target machine,
+and a working dlopen(3).
+
+This has only, as yet, been tested on NetBSD/i386.
+
+Alistair G. Crooks
+agc@uts.amdahl.com
+Thu Aug 13 15:26:56 BST 1998
diff --git a/misc/dync/pkg/PLIST b/misc/dync/pkg/PLIST
new file mode 100644
index 00000000000..d65839d88fa
--- /dev/null
+++ b/misc/dync/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/13 15:48:05 agc Exp $
+bin/dync
+man/man1/dync.1