Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 5ae7f72

Browse files
Jeff GarzikJeff Garzik
authored andcommitted
Initial skeleton revision
0 parents  commit 5ae7f72

File tree

10 files changed

+172
-0
lines changed

10 files changed

+172
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# directories
3+
.deps
4+
autom4te.cache
5+
6+
*.o
7+
8+
aclocal.m4
9+
Makefile
10+
Makefile.in
11+
INSTALL
12+
config.log
13+
config.status
14+
configure
15+
depcomp
16+
install-sh
17+
missing
18+
push
19+
stamp-h1
20+
21+
# app-specific
22+
picocoin
23+
picocoin*.tar.gz
24+
picocoin-config.h*
25+

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Jeff Garzik <[email protected]>

COPYING

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Permission is hereby granted, free of charge, to any person obtaining a copy
3+
of this software and associated documentation files (the "Software"), to deal
4+
in the Software without restriction, including without limitation the rights
5+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6+
copies of the Software, and to permit persons to whom the Software is
7+
furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in
10+
all copies or substantial portions of the Software.
11+
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
18+
THE SOFTWARE.
19+

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See git

Makefile.am

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
##
2+
## Toplevel Makefile.am
3+
##
4+
5+
INCLUDES = @GLIB_CFLAGS@
6+
7+
bin_PROGRAMS = picocoin
8+
9+
picocoin_SOURCES= main.c
10+
11+
picocoin_LDADD = @GLIB_LIBS@ @EVENT_LIBS@
12+
13+
EXTRA_DIST = autogen.sh
14+

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
No news is good news.

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tiny bitcoin client

autogen.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# You need autoconf 2.5x, preferably 2.57 or later
4+
# You need automake 1.7 or later. 1.6 might work.
5+
6+
set -e
7+
8+
aclocal
9+
autoheader
10+
automake --gnu --add-missing --copy
11+
autoconf

configure.ac

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
dnl Process this file with autoconf 2.52+ to produce a configure script.
2+
dnl
3+
dnl Copyright (C) 2001 Philipp Rumpf
4+
dnl Copyright (C) 2004 Henrique de Moraes Holschuh <[email protected]>
5+
dnl
6+
dnl This program is free software; you can redistribute it and/or modify
7+
dnl it under the terms of the GNU General Public License as published by
8+
dnl the Free Software Foundation; either version 2 of the License, or
9+
dnl (at your option) any later version.
10+
dnl
11+
dnl This program is distributed in the hope that it will be useful,
12+
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
dnl GNU General Public License for more details.
15+
dnl
16+
dnl You should have received a copy of the GNU General Public License
17+
dnl along with this program; if not, write to the Free Software
18+
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19+
20+
AC_INIT(picocoin, 0.1git, [Jeff Garzik <[email protected]>])
21+
AC_PREREQ(2.52)
22+
AC_CONFIG_SRCDIR([main.c])
23+
AM_INIT_AUTOMAKE([gnu])
24+
AC_CONFIG_HEADERS([picocoin-config.h])
25+
26+
dnl Make sure anyone changing configure.ac/Makefile.am has a clue
27+
AM_MAINTAINER_MODE
28+
29+
dnl Checks for programs
30+
AC_PROG_CC
31+
AC_PROG_RANLIB
32+
AC_PROG_GCC_TRADITIONAL
33+
34+
dnl Checks for header files.
35+
AC_HEADER_STDC
36+
dnl AC_CHECK_HEADERS(sys/ioctl.h unistd.h)
37+
38+
dnl Checks for typedefs, structures, and compiler characteristics.
39+
AC_TYPE_SIZE_T
40+
dnl AC_TYPE_PID_T
41+
42+
dnl -----------------------------
43+
dnl Checks for required libraries
44+
dnl -----------------------------
45+
dnl AC_CHECK_LIB(gssrpc, gssrpc_svc_register, GSSRPC_LIBS=-lgssrpc, exit 1)
46+
47+
dnl AC_CHECK_LIB(db-4.3, db_create, DB4_LIBS=-ldb-4.3)
48+
dnl AC_CHECK_LIB(db-4.4, db_create, DB4_LIBS=-ldb-4.4)
49+
dnl AC_CHECK_LIB(db-4.5, db_create, DB4_LIBS=-ldb-4.5)
50+
dnl AC_CHECK_LIB(db-4.6, db_create, DB4_LIBS=-ldb-4.6)
51+
dnl AC_CHECK_LIB(db-4.7, db_create, DB4_LIBS=-ldb-4.7)
52+
dnl AC_CHECK_LIB(db-4.8, db_create, DB4_LIBS=-ldb-4.8)
53+
dnl AC_CHECK_LIB(db-4.9, db_create, DB4_LIBS=-ldb-4.9)
54+
dnl AC_CHECK_LIB(db-5.0, db_create, DB4_LIBS=-ldb-5.0)
55+
dnl AC_CHECK_LIB(db-5.1, db_create, DB4_LIBS=-ldb-5.1)
56+
dnl AC_CHECK_LIB(db-5.2, db_create, DB4_LIBS=-ldb-5.2)
57+
58+
dnl if test "x$DB4_LIBS" = x; then
59+
dnl AC_MSG_ERROR([Missing required libdb 4.x])
60+
dnl fi
61+
62+
AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent,
63+
[AC_MSG_ERROR([Missing required libevent])])
64+
65+
dnl -------------------------------------
66+
dnl Checks for optional library functions
67+
dnl -------------------------------------
68+
AC_CHECK_FUNCS(fdatasync)
69+
70+
dnl -----------------
71+
dnl Configure options
72+
dnl -----------------
73+
74+
dnl --------------------------
75+
dnl autoconf output generation
76+
dnl --------------------------
77+
78+
AM_PATH_GLIB_2_0(2.0.0, , exit 1)
79+
80+
dnl AC_SUBST(GSSRPC_LIBS)
81+
dnl AC_SUBST(DB4_LIBS)
82+
AC_SUBST(EVENT_LIBS)
83+
dnl AC_SUBST(ARGP_LIBS)
84+
85+
AC_CONFIG_FILES([Makefile])
86+
AC_OUTPUT

main.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
#include "picocoin-config.h"
3+
4+
#include <stdio.h>
5+
#include <glib.h>
6+
7+
int main (int argc, char *argv[])
8+
{
9+
printf("picocoin\n");
10+
11+
return 0;
12+
}
13+

0 commit comments

Comments
 (0)