Jelajahi Sumber

* Remove obsoleted dirs private/ misc/ pack/

Bryan Drewery 17 tahun lalu
induk
melakukan
88c9a0eb31
7 mengubah file dengan 2 tambahan dan 84 penghapusan
  1. 2 2
      Makefile.in
  2. 0 5
      autotools/Makefile
  3. 0 1
      autotools/README
  4. 0 2
      misc/grep
  5. 0 46
      pack/pack.cfg.sample
  6. 0 2
      private/.gitignore
  7. 0 26
      private/replace_lang.sh

+ 2 - 2
Makefile.in

@@ -15,8 +15,8 @@ BINEXEC = wraith@EXEEXT@
 STATICMAKEFILES = lib/Makefile src/mod/Makefile src/crypto/Makefile src/compat/Makefile src/Makefile Makefile
 CONFIGFILES = config.cache config.log config.status config.h src/buildinfo.h
 
-DISTROFILES = README LICENSE config.h.in autotools doc scripts lib Makefile.in build.sh configure pack src
-EXCLUDES = pack/pack.cfg $(CONFIGFILES) $(STATICMAKEFILES)
+DISTROFILES = README LICENSE config.h.in autotools doc scripts lib Makefile.in build.sh configure src
+EXCLUDES = $(CONFIGFILES) $(STATICMAKEFILES)
 
 COMMIT_FULL 	:= $(shell git log -1 --pretty=format:%H HEAD)
 COMMIT_SHORT 	:= $(shell git log -1 --pretty=format:%h HEAD)

+ 0 - 5
autotools/Makefile

@@ -10,11 +10,6 @@ autoheader:
 	@rm -rf ../config.h.in
 	@echo "Autoheader..."
 	@autoheader
-	@echo "" >> config.h.in
-	@echo "/* Defines for pack features */" >> config.h.in
-	@(for define in `sed -n -e 's/^[\+|\-] \([^ ]*\) .*/\1/ p' ../pack/pack.cfg`; do \
-	echo "#undef S_$$define" >> config.h.in; \
-	done)
 	@mv -f config.h.in ../config.h.in
 	@ls -al ../config.h.in
 

+ 0 - 1
autotools/README

@@ -2,5 +2,4 @@ Type 'make' whenever one of these conditions are met:
 
 - Any files in autotools/ are modified.
 - Any Makefiles are added or removed (Editting of includes/depend.m4 required)
-- Any defines are added/removed from pack/pack.cfg
 

+ 0 - 2
misc/grep

@@ -1,2 +0,0 @@
-#!/bin/sh
-grep "$@" | egrep -v "(configure|bdlib|Binary|src/_|tmp|help\..*:|\.deps.*\.Po|\.c~:|tags:|\.orig:)"

+ 0 - 46
pack/pack.cfg.sample

@@ -1,46 +0,0 @@
-/* The < && > indicates the area you must change!
- * Do not leave the <>
- */
-
-/* PACKNAME: name of the pack (no spaces) */
-PACKNAME <name>
-
-/* HASHES 
- * These must remain 100% secure/private, these keys can retrieve the salts, and
- * the entire botnet could be hijacked, a pass 8 chars or more is suggested
- */
-
-/* SHELLHASH: SHA1 hash
- * Use this URL to generate: http://www.shatow.net/crypt/
- * example: SHELLHASH 637d1f5c6e6d1be22ed907eb3d223d858ca396d8
- */
-SHELLHASH <sha1hash>
-
-/* DCCPREFIX: 1 char cmd prefix for dcc. (ie, .cmd or !cmd) */
-DCCPREFIX <.>
-
-/* The settings below can each be defined multiple times */
-
-/* OWNER <nick password host> 
- * Multiple OWNER lines may be defined, each will be added as a +a perm owner.
- * nick: nickname what else?
- * password: initial password for user
- */
-OWNER <YourNick FirstTimePass>
-
-/* OWNEREMAIL: email addresses that status/errors will be sent to when needed 
- * list as many as needed
- */
-OWNEREMAIL <some@email.com>
-
-/* HUB <nick host port>
- * Hubs are ranked by the order they are listed
- * nick: nick of hub
- * host: hostname or ip of hub (A 'dynamic' OR 'changeable' HOSTNAME IS RECOMMENDED)
- * port: port the hub listens on
- *
- * Your hub hosts should NOT be vhosts. They need to be changable dns.
- * Use a domain you OWN/CONTROL, or a friends.
- */
-HUB <hub1 hub1.domain.tld 1234>
-HUB <hub2 hub2.domain.tld 1235>

+ 0 - 2
private/.gitignore

@@ -1,2 +0,0 @@
-/help.bak
-/cp.sh

+ 0 - 26
private/replace_lang.sh

@@ -1,26 +0,0 @@
-#! /bin/bash
-
-langfile="$1"
-for define in $(grep "#define.*\"" $langfile|awk '{print $2}'); do
-  str="$(grep "#define \<${define}\>.*\"" $langfile|grep -v STR|sed -e 's/.*"\(.*\)"/\1/')"
-  # Cleanup newline
-  str="$(echo "$str"|sed -e 's/\\n/\\\\n/g')"
-  # Cleanup /
-#  str="$(echo "$str"|sed -e 's:/:\/:g')"
-  str=${str/\//\\/}
-  str=${str/(/\\(}
-  str=${str/)/\\)}
-  str=${str/]/\\]}
-  str=${str/[/\\[}
-  replaced=0
-  echo "$define -> $str"
-  for file in $(find src -type f \! -name $(basename $langfile) -name "*.c"|grep -v svn); do 
-    grep "\<$define\>" $file > /dev/null 2>&1 && sed -i -e "s/\<$define\>/\"${str}\"/g" $file && echo "replace $define in $file" && replaced=1
-    #grep "[,(?:]*\<$define\>" $file > /dev/null 2>&1 && sed -i -e "s/\([,(?:]\) *\<$define\>/\1 \"${str}\"/g" $file && echo "replace $define in $file" && replaced=1
-  done
-
-  if [ $replaced -eq 1 ]; then
-    cp $langfile tmp
-    grep -v "#define \<${define}\>" tmp > $langfile
-  fi
-done