1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License, Version 1.0 only
   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at COPYING
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at COPYING.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright (c) 2013, Joyent, Inc.  All rights reserved.
  22 #
  23 
  24 VER =   openlldp-0.4alpha
  25 
  26 PATCHES =       Patches/*
  27 
  28 include ../Makefile.defs
  29 include ../Makefile.targ
  30 
  31 all: all_autoconf
  32 
  33 install: all
  34         mkdir -p $(DESTDIR)/usr/sbin
  35         rm -f $(DESTDIR)/usr/sbin/lldpd
  36         rm -f $(DESTDIR)/usr/sbin/lldpneighbors
  37         rm -f $(DESTDIR)/lib/svc/manifest/network/lldpd.xml
  38         install -s -m 555 -f $(DESTDIR)/usr/sbin $(VER.32)/src/lldpd
  39         install -s -m 555 -f $(DESTDIR)/usr/sbin $(VER.32)/src/lldpneighbors
  40         install -s -m 444 -f $(DESTDIR)/lib/svc/manifest/network lldpd.xml