summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-28 13:21:57 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-28 13:21:57 +0100
commit6c13003e4b90fb96f91c9010b98ae833af38b991 (patch)
tree23e90c283ed58f7dfc119ca0fb271d9596426af6 /config.def.h
parent64a479c75322d78faf4f9bef26ba1d5e3f95dd85 (diff)
downloadpaccache-6c13003e4b90fb96f91c9010b98ae833af38b991.tar.gz
paccache-6c13003e4b90fb96f91c9010b98ae833af38b991.tar.zst
move configuration to config.h
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..1863fb4
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,45 @@
+/*
+ * (C) 2013 by Christian Hesse <mail@eworm.de>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ *
+ * This is an example code skeleton provided by vim-skeleton.
+ */
+
+#ifndef _CONFIG_H
+#define _CONFIG_H
+
+/* the binary needs to know its own architecture */
+#if defined __x86_64__
+# define ARCH "x86_64"
+#elif defined __i386__
+# define ARCH "i686"
+#else
+# error Unknown architecture!
+#endif
+
+/* This is used for default documents. Usually you will not see this anyway. */
+#define PAGE307 "<html><head><title>307 temporary redirect</title>" \
+ "</head><body>307 temporary redirect: " \
+ "<a href=\"%s\">%s</a></body></html>"
+#define PAGE404 "<html><head><title>404 Not Found</title>" \
+ "</head><body>404 Not Found: %s</body></html>"
+
+/* the port pacredir listens to */
+#define PORT 7077
+
+/* avahi service names */
+#define PACSERVE "_pacserve._tcp"
+#define PACDBSERVE "_pacdbserve_" ARCH "._tcp"
+
+/* this is where pacman stores its local copy of db files */
+#define SYNCPATH "/var/lib/pacman/sync"
+
+/* This defines when a host is queried again after a bad request
+ * default is 600 seconds (10 minutes) */
+#define BADTIME 60 * 10
+
+#endif /* _CONFIG_H */
+
+// vim: set syntax=c: