summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------pkgthing0
-rw-r--r--pkgthing/main.mk.in32
-rw-r--r--pkgthing/pget.sh10
3 files changed, 42 insertions, 0 deletions
diff --git a/pkgthing b/pkgthing
deleted file mode 160000
-Subproject 506c0c62b3c76b8086313b3f8977b4344838fe5
diff --git a/pkgthing/main.mk.in b/pkgthing/main.mk.in
new file mode 100644
index 0000000..a2840cd
--- /dev/null
+++ b/pkgthing/main.mk.in
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+name = pkgthing
+ver =
+# Copyright (C) 2009 Luke Shumaker
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program 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
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYIN
+
+# general stuffs #####################################################
+all : pget
+.SUFFIXES :
+VPATH = $(srcdir)
+filelist = \
+ COPYING \
+ configure \
+ Makefile.in \
+ pget.sh
+
+# install ############################################################
+.PHONY : install
+install : $(DESTDIR)$(bindir)/pget
+
diff --git a/pkgthing/pget.sh b/pkgthing/pget.sh
new file mode 100644
index 0000000..c0c12fe
--- /dev/null
+++ b/pkgthing/pget.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+name='pget'
+ver='1.9.1'
+
+src=/var/srcdir
+cd $src; if [ $? -ne 0 ]; then exit 1; fi
+out="`echo "$1" | sed 's@^.*://@@'`"
+curl $@ -L -C - --create-dirs -o "$out"
+ptranslate "$out"
+