package: add sredird
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 10 Jun 2011 12:15:48 +0000 (14:15 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 10 Jun 2011 12:15:48 +0000 (14:15 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/sredird/Config.in [new file with mode: 0644]
package/sredird/sredird.mk [new file with mode: 0644]

index 40f523de25493e7fbbd6e5201f7d0970e2bd711e..a03896a6bf9c944495a7b2c548df035ef34bdf63 100644 (file)
@@ -202,6 +202,7 @@ endif
 source "package/smartmontools/Config.in"
 source "package/squashfs/Config.in"
 source "package/squashfs3/Config.in"
+source "package/sredird/Config.in"
 source "package/sshfs/Config.in"
 source "package/sysstat/Config.in"
 source "package/udev/Config.in"
diff --git a/package/sredird/Config.in b/package/sredird/Config.in
new file mode 100644 (file)
index 0000000..463269a
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_SREDIRD
+       bool "sredird"
+       help
+         Sredird is a serial port redirector that is compliant with
+         the RFC 2217 "Telnet Com Port Control Option" protocol. This
+         protocol lets you share a serial port through the network.
diff --git a/package/sredird/sredird.mk b/package/sredird/sredird.mk
new file mode 100644 (file)
index 0000000..ad91f6a
--- /dev/null
@@ -0,0 +1,27 @@
+#############################################################
+#
+# sredird
+#
+#############################################################
+
+SREDIRD_VERSION = 2.2.1-1.1
+SREDIRD_SOURCE = sredird_$(SREDIRD_VERSION).tar.gz
+SREDIRD_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/s/sredird
+
+define SREDIRD_BUILD_CMDS
+       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define SREDIRD_INSTALL_TARGET_CMDS
+       $(INSTALL) -D -m 0755 $(@D)/sredird $(TARGET_DIR)/usr/sbin/sredird
+endef
+
+define SREDIRD_UNINSTALL_TARGET_CMDS
+       rm -f $(TARGET_DIR)/usr/sbin/sredird
+endef
+
+define SREDIRD_CLEAN_CMDS
+       rm -f $(@D)/sredird
+endef
+
+$(eval $(call GENTARGETS,package,sredird))