From: Alexander Barton Date: Wed, 1 May 2019 15:17:48 +0000 (+0200) Subject: sendfile: Update syntax of inline patch X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=c757e0c5393b88b9737a4e0a87d314799cb2d032;p=homebrew-alex.git sendfile: Update syntax of inline patch See . Closes #2. --- diff --git a/Formula/sendfile.rb b/Formula/sendfile.rb index 5acefe4..b5d6139 100644 --- a/Formula/sendfile.rb +++ b/Formula/sendfile.rb @@ -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|