]> git.draconx.ca Git - rarpd-dx.git/blobdiff - src/rarpd.c
Get rid of IPUTILS_VERSION macro.
[rarpd-dx.git] / src / rarpd.c
index 21cf99a518016a6f16bc322dd7d5644f85bec247..2943942b7fa69cc32525ff7ba0e44bcb70786f39 100644 (file)
@@ -7,6 +7,8 @@
  *             2 of the License, or (at your option) any later version.
  *
  * Authors:    Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
+ *
+ * Extricated from iputils by Nick Bowler (2023-07).
  */
 
 #include <stdio.h>
@@ -94,6 +96,14 @@ void usage(void)
        exit(1);
 }
 
+static void print_version(void)
+{
+       printf("rarpd (%s) %s\n", PACKAGE, PACKAGE_VERSION);
+       puts("License GPLv2+: GNU GPL version 2 or any later version");
+       puts("This is free software: you are free to change and redistribute it.");
+       puts("There is NO WARRANTY, to the extent permitted by law.");
+}
+
 void load_db(void)
 {
 }
@@ -608,7 +618,7 @@ int main(int argc, char **argv)
                        tftp_dir = optarg;
                        break;
                case 'V':
-                       printf(IPUTILS_VERSION("rarpd"));
+                       print_version();
                        return 0;
                default:
                        usage();