diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-ftp/linksys-tftp |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-ftp/linksys-tftp')
-rw-r--r-- | net-ftp/linksys-tftp/Manifest | 7 | ||||
-rw-r--r-- | net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-Makefile.patch | 28 | ||||
-rw-r--r-- | net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-header.patch | 52 | ||||
-rw-r--r-- | net-ftp/linksys-tftp/linksys-tftp-1.2.1-r3.ebuild | 29 | ||||
-rw-r--r-- | net-ftp/linksys-tftp/metadata.xml | 9 |
5 files changed, 125 insertions, 0 deletions
diff --git a/net-ftp/linksys-tftp/Manifest b/net-ftp/linksys-tftp/Manifest new file mode 100644 index 000000000000..db6a1dfa651f --- /dev/null +++ b/net-ftp/linksys-tftp/Manifest @@ -0,0 +1,7 @@ +AUX linksys-tftp-1.2.1-r1-Makefile.patch 734 SHA256 c4e0a048d5c0808ee1c88b3c7e662f397d528fe2204b55df1119e996b516cea5 SHA512 ebb5288cf4774550f7bcc090efd43873c631ff6a029e17fcbaffe9150d71b37a4f3f317744958c3a8864f0e64042f4bfcd144aecd6ee6bf245d8c34a63c875a3 WHIRLPOOL 536835213d08fd881632311db2630611e2ceb61d4768ff941850f62ec4d464a6cf45ffb21156469da347289d5cc85bcde9d5e2f346cb8d67e515c62d4e0b83da +AUX linksys-tftp-1.2.1-r1-header.patch 959 SHA256 e042e698d2443cc029a9064bbb02e2199f05e49f6d70cd4e6ee8ae73edce3d74 SHA512 8d59f13f16b9b512488d5773904ac0f617d2bbbff567040e009e8033012435c713d0ebac5ea145add5adb8881a66eefef4926a8aab2adc6590826744549356f7 WHIRLPOOL 62663d233360512e371b42927dc1fc6cd99624bd599f72a7e69c5773ab7befef73509ebfb2b278f27a4d22293f118bec75506b23fded612d85e0d992e380bf2a +DIST linksys-tftp-1.2.1.tar.bz2 11124 SHA256 872e9e58d0673d14ca00edfc1d2680a77c9737ba5a4654540182e5e5ffc7f16f SHA512 7d99cd7cc2144396fe008ed0fbc21053ef4e614021d6d2e24adca799d8eabd1b3c177b4bee20e14034170bc234d36e9eeaaf8e825513ef6f37e73643b91667fc WHIRLPOOL 52823f9dde9b4069b4ff6e0c742fcad8651e3206b4145e909a950dc5e24dbebbb393827e84a317b5a445e26f24f0245df11fee35cfc623964da7f23029cb4bf3 +EBUILD linksys-tftp-1.2.1-r3.ebuild 616 SHA256 c88ef7b755f4c0faec6b7a5cfc7a4a581f838435ecd38e2b3b94a01e9fb83aaa SHA512 e116e13d1ed342dbfae4ebb2f8e4288ea35990bf7ac08738958e8b177398fb09ab5b87724d2ab9791a03bdd11e6743e48885ce52db18fbeea27f051adf3e03d1 WHIRLPOOL 1e392712722376779a15628739029b8009095fd31ddd93f41e08c92016881842f4fe98b0767cdc1e15ae813106180ebdf94f1637e62139386b01a24031253bb9 +MISC ChangeLog 2926 SHA256 387728efde3a435dd46317d642fa416891054d9513d4c93356e1584fc31cb048 SHA512 b469224d122dc1fde02e37d1bf75a861fd41cf0ac1c95ce7c7a50454122371a468a30ce220eabcb49f45b7e7470d5a3b427dfd334de01fa58d4b71e5c54aa289 WHIRLPOOL 2bb49a936742f634ecc485ebea5344dd2842893267879bc9d2ecf03d00cf05abb018b5edc5a7c45b0cbfd2a7e90119d79bc261f77769a2ea7612b157f6c8941d +MISC ChangeLog-2015 2846 SHA256 5464b15dbed45e7407b459c1567019cfef17e9ce2ef93ff1cc0b1b84aaf4cca2 SHA512 0504fee8d964ce548d9298bc22e3ab605a7f9b9421a3d9500143453ec2733a85d1a935db7145ea72a1aa9402ff1ac0c6ee682e3280d67b8e3b09d39f37b85cd2 WHIRLPOOL 449e5ec3bb39dbd204b4d9be46c33451a59f864d1dcc757eb9a31a32a61a8caf1fd1e90d55cced087c5213475a8989be9e8b3f053113b992c3c8dc5cfe5eeaf6 +MISC metadata.xml 341 SHA256 dce3246eaba00b1424c806bae267b3db0c411ba01177fe25f92c90a77c92645f SHA512 2a53ba435993e13fadce62e4aaed9f5cb635cf86a0793ed8ad06aa25ee1f7622ecad595c1952760bdfd3573c19a8a0296ba46b6db3200357e80a70da50eb22bb WHIRLPOOL 0a954392cfced59a06d3a138361385e6993281a01dd7d2ed615b00561a4a0028d7032e63c2acacf1ddc4c94b5e027d7e7770b9cb6a25f45ff97870dc591bd8d7 diff --git a/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-Makefile.patch b/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-Makefile.patch new file mode 100644 index 000000000000..b374e808ece2 --- /dev/null +++ b/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-Makefile.patch @@ -0,0 +1,28 @@ +Fix LDFLAGS (bug http://bugs.gentoo.org/336956 ) and +CFLAGS (bug http://bugs.gentoo.org/240894 ) by +Michael Weber <xmw@gentoo.org> + +--- linksys-tftp-1.2.1/Makefile ++++ linksys-tftp-1.2.1/Makefile +@@ -19,18 +19,18 @@ + # We override /usr/include/arpa/tftp.h with our own because + # we want tu_block to be unsigned short, not short as on most platforms + # +-CFLAGS= -I. -O2 -Dsin=sin_x ++CFLAGS += -I. -Dsin=sin_x + #DEBUG + # CFLAGS= -I. -Wall -ggdb -Dsin=sin_x + SRCS= main.c tftp.c tftpsubs.c + OBJS= main.o tftp.o tftpsubs.o + DOBJS= tftpsubs.o +-CC= gcc ++CC?= gcc + + all: linksys-tftp + + linksys-tftp: ${OBJS} +- ${CC} -o $@ ${CFLAGS} ${OBJS} ++ ${CC} -o $@ ${CFLAGS} ${OBJS} ${LDFLAGS} + + clean: + rm -f ${OBJS} ${DOBJS} *core linksys-tftp diff --git a/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-header.patch b/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-header.patch new file mode 100644 index 000000000000..9944f3c059bc --- /dev/null +++ b/net-ftp/linksys-tftp/files/linksys-tftp-1.2.1-r1-header.patch @@ -0,0 +1,52 @@ +--- linksys-tftp-1.2.1/main.c ++++ linksys-tftp-1.2.1/main.c +@@ -40,6 +40,10 @@ + #include <setjmp.h> + #include <ctype.h> + #include <netdb.h> ++#include <stdlib.h> ++#include <string.h> ++#include <unistd.h> ++#include <sys/sendfile.h> + + #define TIMEOUT 5 /* secs between rexmt's */ + +@@ -110,7 +112,7 @@ + char *index(); + char *rindex(); + +-main(argc, argv) ++int main(argc, argv) + char *argv[]; + { + struct sockaddr_in sin; +--- a/tftp.c ++++ b/tftp.c +@@ -36,8 +36,8 @@ + #include <stdio.h> + #include <errno.h> + #include <setjmp.h> +- +-extern int errno; ++#include <string.h> ++#include <unistd.h> + + extern struct sockaddr_in sin; /* filled in by main */ + extern int f; /* the opened socket */ +@@ -69,16 +69,6 @@ void timer(int sig) + longjmp(timeoutbuf, 1); + } + +-strnlen(s, n) +- char *s; +- int n; +-{ +- int i = 0; +- +- while (n-- > 0 && *s++) i++; +- return(i); +-} +- + /* + * Parse an OACK package and set blocksize accordingly + */ diff --git a/net-ftp/linksys-tftp/linksys-tftp-1.2.1-r3.ebuild b/net-ftp/linksys-tftp/linksys-tftp-1.2.1-r3.ebuild new file mode 100644 index 000000000000..b265bc6ee05c --- /dev/null +++ b/net-ftp/linksys-tftp/linksys-tftp-1.2.1-r3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="TFTP client suitable for uploading to the Linksys WRT54G Wireless Router" +HOMEPAGE="https://www.redsand.net/solutions/linksys_tftp.html" +SRC_URI="https://www.redsand.net/solutions/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-r1-header.patch + epatch "${FILESDIR}"/${P}-r1-Makefile.patch +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin linksys-tftp + dodoc README +} diff --git a/net-ftp/linksys-tftp/metadata.xml b/net-ftp/linksys-tftp/metadata.xml new file mode 100644 index 000000000000..b2a49e29541c --- /dev/null +++ b/net-ftp/linksys-tftp/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>embedded@gentoo.org</email> + <name>Embedded Gentoo</name> + </maintainer> + <longdescription>An extended version of BSD tftp with passwords</longdescription> +</pkgmetadata> |