Skip to content

Commit

Permalink
Divided sprunge package from lime-debug package
Browse files Browse the repository at this point in the history
Added sprunge dependency in lime-debug

Added more help
  • Loading branch information
ilario committed Jun 29, 2014
1 parent 9dc29b2 commit 2815b12
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/lime-debug/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define Package/$(PKG_NAME)
CATEGORY:=LiMe
MAINTAINER:=Gioacchino Mazzurco <gio@eigenlab.org>
URL:=http://libre-mesh.org
DEPENDS:=+batctl +curl +iwinfo +iw +mtr +ip +iputils-ping6
DEPENDS:=+batctl +iwinfo +iw +mtr +ip +iputils-ping6 +sprunge
endef

define Package/$(PKG_NAME)/description
Expand All @@ -33,8 +33,6 @@ define Build/Compile
endef

define Package/$(PKG_NAME)/install
@mkdir -p $(1)/usr/bin/ || true
$(CP) ./src/sprunge.sh $(1)/usr/bin/sprunge
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
38 changes: 38 additions & 0 deletions packages/sprunge/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#

include $(TOPDIR)/rules.mk

GIT_COMMIT_DATE:=$(shell git log -n 1 --pretty=%ad --date=short . )
GIT_COMMIT_TSTAMP:=$(shell git log -n 1 --pretty=%at . )

PKG_NAME:=sprunge
PKG_VERSION=$(GIT_COMMIT_DATE)-$(GIT_COMMIT_TSTAMP)

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
TITLE:=sprunge.us pastebin
SECTION:=utils
CATEGORY:=Utilities
MAINTAINER:=Ilario Gelmetti <ilario@eigenlab.org>
URL:=http://sprunge.us
DEPENDS:=+curl
endef

define Package/$(PKG_NAME)/description
sprunge.us command line pastebin
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/install
@mkdir -p $(1)/usr/bin/ || true
$(INSTALL_BIN) ./src/sprunge.sh $(1)/usr/bin/sprunge
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COMMAND="$0 $@"

usage()
{
echo -e "Suggested ways of using $0 are mainly 3\nyourCommand | $0\n$0 [ -c command ]\n$0 [ -f file ]" 1>&2 ; exit 0
echo -e "sprunge: command line paste bin\n\nSuggested ways of using $0 are mainly 4\nyourCommand arg1 arg2 | $0\n$0 [ -c \"yourCommand arg1 arg2\" ]\n$0 [ -f file ]\n$0; then EOF using Ctrl+D" 1>&2 ; exit 0
}

case "${1}" in
Expand Down

0 comments on commit 2815b12

Please sign in to comment.