seafile-server: Update to 7.1.5, refresh patches
authorJeffery To <redacted>
Mon, 12 Oct 2020 20:46:04 +0000 (04:46 +0800)
committerJeffery To <redacted>
Mon, 12 Oct 2020 22:42:27 +0000 (06:42 +0800)
Signed-off-by: Jeffery To <redacted>
net/seafile-server/Makefile
net/seafile-server/patches/020-installpath.patch
net/seafile-server/patches/022-uci-conf.patch
net/seafile-server/patches/030-controller-pid-dir-permissions.patch
net/seafile-server/patches/120-recent-libevhtp.patch

index 3af2de0c2c0090c156db4fc3e07d10945faec61f..c34a2f2d4235967a6cd8621583ff811594b7d7f6 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=seafile-server
-PKG_VERSION:=7.1.4
-PKG_RELEASE:=2
+PKG_VERSION:=7.1.5
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/haiwen/seafile-server/tar.gz/v$(PKG_VERSION)-server?
-PKG_HASH:=cc5aaf76044f907758a75a43e321fef499482d7b57d9e61d0297a4bba66dcce4
+PKG_HASH:=407a6243f754e366ce6754a2aa643574aa7742d4e81b7cc350dea348f3063707
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=AGPL-3.0-only
index ed3710b4e7416b4a3e1c905d0e82aa02acbb66e0..3a21ca9764e3fdf5f008be5a868454f2db6f403f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/controller/seafile-controller.c
 +++ b/controller/seafile-controller.c
-@@ -257,7 +257,7 @@ init_seafile_path ()
+@@ -288,7 +288,7 @@ init_seafile_path ()
      bin_dir = g_path_get_dirname (binary);
  
      tmp = g_path_get_dirname (bin_dir);
index aa605245c025298240fec4521e6ed4d3f3dc48ec..63351bf7934b0654286c37b97c378b6434a71811 100644 (file)
@@ -1,6 +1,6 @@
 --- a/common/seaf-utils.c
 +++ b/common/seaf-utils.c
-@@ -236,7 +236,12 @@ create_ccnet_rpc_client ()
+@@ -238,7 +238,12 @@ create_ccnet_rpc_client ()
      SearpcNamedPipeClient *transport = NULL;
      char *pipe_path = NULL;
  
@@ -16,7 +16,7 @@
      if (!transport)
 --- a/controller/seafile-controller.c
 +++ b/controller/seafile-controller.c
-@@ -480,7 +480,10 @@ stop_services ()
+@@ -511,7 +511,10 @@ stop_services ()
  static void
  init_pidfile_path (SeafileController *ctl)
  {
@@ -28,7 +28,7 @@
      if (!g_file_test(pid_dir, G_FILE_TEST_EXISTS)) {
          if (g_mkdir(pid_dir, 0777) < 0) {
              seaf_warning("failed to create pid dir %s: %s", pid_dir, strerror(errno));
-@@ -492,6 +495,8 @@ init_pidfile_path (SeafileController *ct
+@@ -523,6 +526,8 @@ init_pidfile_path (SeafileController *ct
      ctl->pidfile[PID_SERVER] = g_build_filename (pid_dir, "seaf-server.pid", NULL);
      ctl->pidfile[PID_SEAFDAV] = g_build_filename (pid_dir, "seafdav.pid", NULL);
      ctl->pidfile[PID_SEAFEVENTS] = g_build_filename (pid_dir, "seafevents.pid", NULL);
@@ -37,7 +37,7 @@
  }
  
  static int
-@@ -514,7 +519,10 @@ seaf_controller_init (SeafileController
+@@ -545,7 +550,10 @@ seaf_controller_init (SeafileController
  
      if (logdir == NULL) {
          char *topdir = g_path_get_dirname(config_dir);
@@ -49,7 +49,7 @@
          if (checkdir_with_mkdir(logdir) < 0) {
              fprintf (stderr, "failed to create log folder \"%s\": %s\n",
                       logdir, strerror(errno));
-@@ -523,10 +531,15 @@ seaf_controller_init (SeafileController
+@@ -554,10 +562,15 @@ seaf_controller_init (SeafileController
          g_free (topdir);
      }
  
index dfd2bfc3e73b20f46d1097dbd2e685000f8e1538..4fd26bb53643367eec3294adc82b142f536efad8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/controller/seafile-controller.c
 +++ b/controller/seafile-controller.c
-@@ -485,7 +485,7 @@ init_pidfile_path (SeafileController *ct
+@@ -516,7 +516,7 @@ init_pidfile_path (SeafileController *ct
          pid_dir = g_build_filename (topdir, "pids", NULL);
      }
      if (!g_file_test(pid_dir, G_FILE_TEST_EXISTS)) {
index 5f2c94e0f403347a3331b3571c41cebddd2f9142..5cb8b02473bad7beedd30b199a2d14b5cd8b4d26 100644 (file)
@@ -9,7 +9,7 @@ Forwarded: no
 
 --- a/server/access-file.c
 +++ b/server/access-file.c
-@@ -661,7 +661,7 @@ do_file(evhtp_request_t *req, SeafRepo *
+@@ -665,7 +665,7 @@ do_file(evhtp_request_t *req, SeafRepo *
      /* Block any new request from this connection before finish
       * handling this request.
       */
@@ -18,7 +18,7 @@ Forwarded: no
  
      /* Kick start data transfer by sending out http headers. */
      evhtp_send_reply_start(req, EVHTP_RES_OK);
-@@ -1021,7 +1021,7 @@ do_file_range (evhtp_request_t *req, Sea
+@@ -1030,7 +1030,7 @@ do_file_range (evhtp_request_t *req, Sea
      /* Block any new request from this connection before finish
       * handling this request.
       */
@@ -27,7 +27,7 @@ Forwarded: no
  
      /* Kick start data transfer by sending out http headers. */
      evhtp_send_reply_start(req, EVHTP_RES_PARTIAL);
-@@ -1091,7 +1091,7 @@ start_download_zip_file (evhtp_request_t
+@@ -1100,7 +1100,7 @@ start_download_zip_file (evhtp_request_t
      /* Block any new request from this connection before finish
       * handling this request.
       */
@@ -36,7 +36,7 @@ Forwarded: no
  
      /* Kick start data transfer by sending out http headers. */
      evhtp_send_reply_start(req, EVHTP_RES_OK);
-@@ -1435,7 +1435,7 @@ do_block(evhtp_request_t *req, SeafRepo
+@@ -1444,7 +1444,7 @@ do_block(evhtp_request_t *req, SeafRepo
      /* Block any new request from this connection before finish
       * handling this request.
       */
git clone https://git.99rst.org/PROJECT