⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 01_install-path.dpatch

📁 Ubuntu packages of security software。 相当不错的源码
💻 DPATCH
字号:
#! /bin/sh -e#### All lines beginning with `## DP:' are a description of the patch.## DP: Changes install path according to FHS.[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-optspatch_opts="${patch_opts:--f --no-backup-if-mismatch}"if [ $# -ne 1 ]; then    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"    exit 1ficase "$1" in       -patch) patch $patch_opts -p1 < $0;;       -unpatch) patch $patch_opts -p1 -R < $0;;        *)                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"                exit 1;;esacexit 0@DPATCH@diff -urN amap-4.8.orig/amap.c amap-4.8/amap.c--- amap-4.8.orig/amap.c	2005-01-06 10:37:16.000000000 +0000+++ amap-4.8/amap.c	2005-02-05 16:49:05.000000000 +0000@@ -312,8 +312,7 @@     strcat(file_name, extension);     f = fopen(file_name, "r");   } else {-    strcpy(file_name, "./");-    strcat(file_name, AMAP_DEFAULT_FILENAME);+    strcpy(file_name, AMAP_DEFAULT_FILENAME);     strcat(file_name, extension);     if ((f = fopen(file_name, "r")) == NULL) {       strcpy(file_name, AMAP_APPDEF_PATH);diff -urN amap-4.8.orig/amap.h amap-4.8/amap.h--- amap-4.8.orig/amap.h	2005-02-01 18:07:14.000000000 +0000+++ amap-4.8/amap.h	2005-02-05 16:50:15.000000000 +0000@@ -33,7 +33,7 @@  #endif #endif -#define AMAP_APPDEF_PATH	AMAP_PREFIX"/etc"+#define AMAP_APPDEF_PATH	"/usr/bin"	 #define AMAP_BUFSIZE		1024	// standard buffer size #define AMAP_BUFSIZE_BIG	65536   // big standard buffer size #define AMAP_REGEX_OPTIONS	( PCRE_MULTILINE | PCRE_CASELESS | PCRE_DOTALL )@@ -52,7 +52,7 @@ #define AMAP_UFO		"unidentified"  /* file definitions */-#define AMAP_DEFAULT_FILENAME	"appdefs"	// default filename+#define AMAP_DEFAULT_FILENAME	"/usr/share/amap/appdefs"	// default filename #define AMAP_FILETYPE_RESPONSES	".resp"	// default extension #define AMAP_FILETYPE_TRIGGERS	".trig"	// default extension #define AMAP_FILETYPE_RPC	".rpc"	// default extension

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -