SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
misc/geekcode/Makefile
Normal file
23
misc/geekcode/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
COMMENT= geek code generator
|
||||
|
||||
DISTNAME= geekcode-1.7.3
|
||||
CATEGORIES= misc
|
||||
REVISION= 2
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=geekcode/}
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/geekcode ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geekcode
|
||||
${INSTALL_DATA} ${WRKSRC}/geekcode.txt ${PREFIX}/share/doc/geekcode
|
||||
|
||||
.include <bsd.port.mk>
|
2
misc/geekcode/distinfo
Normal file
2
misc/geekcode/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (geekcode-1.7.3.tar.gz) = ckSXIUf4hVhk30l/UlMduys+a5/9Kgzi+X52JtFmSV4=
|
||||
SIZE (geekcode-1.7.3.tar.gz) = 60617
|
11
misc/geekcode/patches/patch-gc_appearance_c
Normal file
11
misc/geekcode/patches/patch-gc_appearance_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_appearance.c
|
||||
--- gc_appearance.c.orig
|
||||
+++ gc_appearance.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_dress(void)
|
11
misc/geekcode/patches/patch-gc_computers_c
Normal file
11
misc/geekcode/patches/patch-gc_computers_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_computers.c
|
||||
--- gc_computers.c.orig
|
||||
+++ gc_computers.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_computers(void)
|
11
misc/geekcode/patches/patch-gc_entertainment_c
Normal file
11
misc/geekcode/patches/patch-gc_entertainment_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_entertainment.c
|
||||
--- gc_entertainment.c.orig
|
||||
+++ gc_entertainment.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_startrek(void)
|
11
misc/geekcode/patches/patch-gc_lifestyle_c
Normal file
11
misc/geekcode/patches/patch-gc_lifestyle_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_lifestyle.c
|
||||
--- gc_lifestyle.c.orig
|
||||
+++ gc_lifestyle.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_education(void)
|
11
misc/geekcode/patches/patch-gc_politics_c
Normal file
11
misc/geekcode/patches/patch-gc_politics_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_politics.c
|
||||
--- gc_politics.c.orig
|
||||
+++ gc_politics.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_social(void)
|
11
misc/geekcode/patches/patch-gc_type_c
Normal file
11
misc/geekcode/patches/patch-gc_type_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: gc_type.c
|
||||
--- gc_type.c.orig
|
||||
+++ gc_type.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "geekcode.h"
|
||||
|
||||
int get_type(void)
|
63
misc/geekcode/patches/patch-geekcode_c
Normal file
63
misc/geekcode/patches/patch-geekcode_c
Normal file
|
@ -0,0 +1,63 @@
|
|||
Index: geekcode.c
|
||||
--- geekcode.c.orig
|
||||
+++ geekcode.c
|
||||
@@ -20,9 +20,59 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include "geekcode.h"
|
||||
+
|
||||
+/* Geek type */
|
||||
+int gc_type;
|
||||
+
|
||||
+/* Appearance section */
|
||||
+int gc_dress;
|
||||
+int gc_height;
|
||||
+int gc_weight;
|
||||
+int gc_age;
|
||||
+
|
||||
+/* Computers section */
|
||||
+int gc_computers;
|
||||
+int gc_unix_type;
|
||||
+int gc_unix;
|
||||
+int gc_perl;
|
||||
+int gc_linux;
|
||||
+int gc_emacs;
|
||||
+int gc_www;
|
||||
+int gc_usenet;
|
||||
+int gc_oracle;
|
||||
+int gc_kibo;
|
||||
+int gc_windows;
|
||||
+int gc_os2;
|
||||
+int gc_mac;
|
||||
+int gc_vms;
|
||||
+
|
||||
+/* Politics section */
|
||||
+int gc_social;
|
||||
+int gc_economic;
|
||||
+int gc_cypher;
|
||||
+int gc_pgp;
|
||||
+
|
||||
+/* Entertainment section */
|
||||
+int gc_startrek;
|
||||
+int gc_babylon5;
|
||||
+int gc_xfiles;
|
||||
+int gc_rp;
|
||||
+int gc_television;
|
||||
+int gc_books;
|
||||
+int gc_dilbert;
|
||||
+int gc_doom;
|
||||
+int gc_geekcode;
|
||||
+
|
||||
+/* Lifestyle section */
|
||||
+int gc_education;
|
||||
+int gc_housing;
|
||||
+int gc_relationships;
|
||||
+int gc_sex_type;
|
||||
+int gc_sex;
|
||||
|
||||
int readgeek(char geekcode[64][16],char *data,int *j,int *k){
|
||||
int i;
|
94
misc/geekcode/patches/patch-geekcode_h
Normal file
94
misc/geekcode/patches/patch-geekcode_h
Normal file
|
@ -0,0 +1,94 @@
|
|||
Index: geekcode.h
|
||||
--- geekcode.h.orig
|
||||
+++ geekcode.h
|
||||
@@ -34,53 +34,53 @@
|
||||
*/
|
||||
|
||||
/* Geek type - gc_type.c */
|
||||
-int get_type(void), gc_type;
|
||||
+extern int get_type(void), gc_type;
|
||||
|
||||
/* Appearance section - gc_appearance.c */
|
||||
-int get_dress(void), gc_dress;
|
||||
-int get_height(void), gc_height;
|
||||
-int get_weight(void), gc_weight;
|
||||
-int get_age(void), gc_age;
|
||||
+extern int get_dress(void), gc_dress;
|
||||
+extern int get_height(void), gc_height;
|
||||
+extern int get_weight(void), gc_weight;
|
||||
+extern int get_age(void), gc_age;
|
||||
|
||||
/* Computers section - gc_computers.c */
|
||||
-int get_computers(void), gc_computers;
|
||||
-int get_unix_type(void), gc_unix_type; /* Added in v1.1 */
|
||||
-int get_unix(int x), gc_unix;
|
||||
-int get_perl(void), gc_perl;
|
||||
-int get_linux(void), gc_linux;
|
||||
-int get_emacs(void), gc_emacs;
|
||||
-int get_www(void), gc_www;
|
||||
-int get_usenet(void), gc_usenet;
|
||||
-int get_oracle(void), gc_oracle;
|
||||
-int get_kibo(void), gc_kibo;
|
||||
-int get_windows(void), gc_windows;
|
||||
-int get_os2(void), gc_os2;
|
||||
-int get_mac(void), gc_mac;
|
||||
-int get_vms(void), gc_vms;
|
||||
+extern int get_computers(void), gc_computers;
|
||||
+extern int get_unix_type(void), gc_unix_type; /* Added in v1.1 */
|
||||
+extern int get_unix(int x), gc_unix;
|
||||
+extern int get_perl(void), gc_perl;
|
||||
+extern int get_linux(void), gc_linux;
|
||||
+extern int get_emacs(void), gc_emacs;
|
||||
+extern int get_www(void), gc_www;
|
||||
+extern int get_usenet(void), gc_usenet;
|
||||
+extern int get_oracle(void), gc_oracle;
|
||||
+extern int get_kibo(void), gc_kibo;
|
||||
+extern int get_windows(void), gc_windows;
|
||||
+extern int get_os2(void), gc_os2;
|
||||
+extern int get_mac(void), gc_mac;
|
||||
+extern int get_vms(void), gc_vms;
|
||||
|
||||
/* Politics section - gc_politics.c */
|
||||
-int get_social(void), gc_social;
|
||||
-int get_economic(void), gc_economic;
|
||||
-int get_cypher(void), gc_cypher;
|
||||
-int get_pgp(void), gc_pgp;
|
||||
+extern int get_social(void), gc_social;
|
||||
+extern int get_economic(void), gc_economic;
|
||||
+extern int get_cypher(void), gc_cypher;
|
||||
+extern int get_pgp(void), gc_pgp;
|
||||
|
||||
/* Entertainment section - gc_entertainment.c */
|
||||
-int get_startrek(void), gc_startrek;
|
||||
-int get_babylon5(void), gc_babylon5;
|
||||
-int get_xfiles(void), gc_xfiles;
|
||||
-int get_rp(void), gc_rp;
|
||||
-int get_television(void), gc_television;
|
||||
-int get_books(void), gc_books;
|
||||
-int get_dilbert(void), gc_dilbert;
|
||||
-int get_doom(void), gc_doom;
|
||||
-int get_geekcode(void), gc_geekcode;
|
||||
+extern int get_startrek(void), gc_startrek;
|
||||
+extern int get_babylon5(void), gc_babylon5;
|
||||
+extern int get_xfiles(void), gc_xfiles;
|
||||
+extern int get_rp(void), gc_rp;
|
||||
+extern int get_television(void), gc_television;
|
||||
+extern int get_books(void), gc_books;
|
||||
+extern int get_dilbert(void), gc_dilbert;
|
||||
+extern int get_doom(void), gc_doom;
|
||||
+extern int get_geekcode(void), gc_geekcode;
|
||||
|
||||
/* Lifestyle section - gc_lifestyle.c */
|
||||
-int get_education(void), gc_education;
|
||||
-int get_housing(void), gc_housing;
|
||||
-int get_relationships(void), gc_relationships;
|
||||
-int get_sex_type(void), gc_sex_type; /* Added in v1.2 */
|
||||
-int get_sex(int x), gc_sex; /* Modified in v1.2 */
|
||||
+extern int get_education(void), gc_education;
|
||||
+extern int get_housing(void), gc_housing;
|
||||
+extern int get_relationships(void), gc_relationships;
|
||||
+extern int get_sex_type(void), gc_sex_type; /* Added in v1.2 */
|
||||
+extern int get_sex(int x), gc_sex; /* Modified in v1.2 */
|
||||
char show_sex_type(int x); /* Added in v1.2 */
|
||||
|
||||
void show_geekcode(int x); /* Modified in v1.2 */
|
2
misc/geekcode/pkg/DESCR
Normal file
2
misc/geekcode/pkg/DESCR
Normal file
|
@ -0,0 +1,2 @@
|
|||
geekcode will generate your geek code block for you. All you have to
|
||||
do is to answer the questions about your geek life.
|
3
misc/geekcode/pkg/PLIST
Normal file
3
misc/geekcode/pkg/PLIST
Normal file
|
@ -0,0 +1,3 @@
|
|||
@bin bin/geekcode
|
||||
share/doc/geekcode/
|
||||
share/doc/geekcode/geekcode.txt
|
Loading…
Add table
Add a link
Reference in a new issue