]> arthur.barton.de Git - homebrew-alex.git/commitdiff
sendfile: Update syntax of inline patch
authorAlexander Barton <alex@barton.de>
Wed, 1 May 2019 15:17:48 +0000 (17:17 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 1 May 2019 15:18:13 +0000 (17:18 +0200)
See <https://docs.brew.sh/Formula-Cookbook#patches>.

Closes #2.

Formula/sendfile.rb

index 5acefe4626ec720286206d8bda7cf9bb09baa7f1..b5d613934ca88f999bf4b6722cd3e97a31633049 100644 (file)
@@ -5,13 +5,11 @@ class Sendfile < Formula
   url 'http://fex.belwue.de/download/sendfile-2.1b.tar.gz'
   sha256 'd0b4305c38e635d67bb2e316ccaf1d3afde63e67b748a104582d0ce9cf7f2a8c'
 
-  def patches
-    # source code:
-    #  - remove nested "MAXS() inside snprintf()" macros.
-    #  - disable wtmp/utmp on Mac OS X.
-    #  - only call seteuid() & setegid() when it would change user/group.
-    DATA
-  end
+  # source code:
+  #  - remove nested "MAXS() inside snprintf()" macros.
+  #  - disable wtmp/utmp on Mac OS X.
+  #  - only call seteuid() & setegid() when it would change user/group.
+  patch :DATA
 
   def install
     inreplace ["makeconfig", "etc/sfdconf", "doc/receive.1", "doc/sendfile.1", "doc/sendmsg.1", "doc/sendfiled.8" ] do |s|