{ "name": "Aiccu", "description": "Automatic IPv6 Connectivity Client Utility", "url": "https://deb.debian.org/debian/pool/main/a/aiccu/aiccu_20070115.orig.tar.gz", "mirror": null, "homepage": "https://www.sixxs.net/tools/aiccu/", "depends": [], "resource": [], "conflicts": [], "patches": [ { "url": null, "data": [ "diff --git a/Makefile b/Makefile\n", "index 0e96136..78609bd 100644\n", "--- a/Makefile\n", "+++ b/Makefile\n", "@@ -36,10 +36,11 @@ export DESTDIR\n", " CFLAGS=${RPM_OPT_FLAGS}\n", "\n", " # Destination Paths (relative to DESTDIR)\n", "-dirsbin=/usr/sbin/\n", "-dirbin=/usr/bin/\n", "-diretc=/etc/\n", "-dirdoc=/usr/share/doc/${PROJECT}/\n", "+prefix=\n", "+dirsbin=${prefix}/sbin/\n", "+dirbin=${prefix}/bin/\n", "+diretc=${prefix}/etc/\n", "+dirdoc=${prefix}/share/doc/${PROJECT}/\n", "\n", " # Make sure the lower makefile also knows these\n", " export PROJECT\n", "@@ -79,21 +80,13 @@ install: aiccu\n", "\t@echo \"Configuration...\"\n", "\t@mkdir -p ${DESTDIR}${diretc}\n", " ifeq ($(shell echo \"A${RPM_BUILD_ROOT}\"),A)\n", "-\t$(shell [ -f ${DESTDIR}${diretc}${PROJECT}.conf ] || cp -R doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf)\n", "\t@echo \"Documentation...\"\n", "+\t@cp doc/${PROJECT}.conf ${DESTDIR}${dirdoc}\n", "\t@cp doc/README ${DESTDIR}${dirdoc}\n", "\t@cp doc/LICENSE ${DESTDIR}${dirdoc}\n", "\t@cp doc/HOWTO ${DESTDIR}${dirdoc}\n", "-\t@echo \"Installing Debian-style init.d\"\n", "-\t@mkdir -p ${DESTDIR}${diretc}init.d\n", "-\t@cp doc/${PROJECT}.init.debian ${DESTDIR}${diretc}init.d/${PROJECT}\n", "-else\n", "-\t@echo \"Installing Redhat-style init.d\"\n", "-\t@mkdir -p ${DESTDIR}${diretc}init.d\n", "-\t@cp doc/${PROJECT}.init.rpm ${DESTDIR}${diretc}init.d/${PROJECT}\n", "-\t@cp doc/${PROJECT}.conf ${DESTDIR}${diretc}${PROJECT}.conf\n", " endif\n", "-\t@echo \"Installation into ${DESTDIR}/ completed\"\n", "+\t@echo \"Installation into ${DESTDIR}${prefix}/ completed\"\n", "\n", " help:\n", "\t@echo \"$(PROJECT) - $(PROJECT_DESC)\"\n", "diff --git a/common/aiccu.h b/common/aiccu.h\n", "index ef65000..5b2eb43 100755\n", "--- a/common/aiccu.h\n", "+++ b/common/aiccu.h\n", "@@ -65,17 +65,17 @@\n", " * the data. Could be useful in the event\n", " * where we can't make contact to the main server\n", " */\n", "-#define AICCU_CACHE\t\"/var/cache/aiccu.cache\"\n", "+#define AICCU_CACHE\t\"HOMEBREW_PREFIX/var/cache/aiccu.cache\"\n", "\n", " /* The PID we are running as when daemonized */\n", "-#define AICCU_PID\t\"/var/run/aiccu.pid\"\n", "+#define AICCU_PID\t\"HOMEBREW_PREFIX/var/run/aiccu.pid\"\n", "\n", " /* AICCU Configuration file */\n", " #ifdef _WIN32\n", " /* GetWindowsDirectory() is used to figure out the directory to store the config */\n", " #define AICCU_CONFIG\t\"aiccu.conf\"\n", " #else\n", "-#define AICCU_CONFIG\t\"/etc/aiccu.conf\"\n", "+#define AICCU_CONFIG\t\"HOMEBREW_PREFIX/etc/aiccu.conf\"\n", " #endif\n", "\n", " /* Inbound listen queue */\n" ] } ], "install": [ "inreplace \"doc/aiccu.conf\", \"daemonize true\", \"daemonize false\"", "system \"make\", \"prefix=#{prefix}\"", "system \"make\", \"install\", \"prefix=#{prefix}\"", "etc.install \"doc/aiccu.conf\"" ], "version": "20070115", "file": "aiccu.rb" }